summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Eatmon <reatmon@ti.com>2024-10-17 14:03:12 -0500
committerRyan Eatmon <reatmon@ti.com>2024-10-19 14:05:48 -0500
commitb8e108bace73ff4b87c9253d5abde169eb9ea397 (patch)
treede5c072cebf1f88a707064d27173677b951bf5ee
parent5c537ecc73f199b575f1ad79924b05324ae8340d (diff)
downloadmeta-ti-b8e108bace73ff4b87c9253d5abde169eb9ea397.tar.gz
linux: Consolidate the SRC_URI variables
It was suggested to move the reproducibility patches out of ti-kernel.inc and into the respective recipes. Taking this time to also rework all of the pieces that go into the SRC_URI and create a standardization for how all of the kernel recipes are done. Create KERNEL_GIT_URI, KERNEL_GIT_PROTOCOL, KERNEL_GIT_BRANCH, KERNEL_DEFCONFIG, and KERNEL_REPRODUCIBILITY_PATCHES. The default for the above new variables is to the git.ti.com repository and how we manage the kernel settings. The other kernel recipes that do something other than how TI does it can simply override the variables. This change will make it easier to perform the upstream testing that we do on a nightly basis. Additionally, it will simplify the auto generation of the patches to move the mainline (stable kernel) recipes since the required patches will be all done in the same recipe. Signed-off-by: Ryan Eatmon <reatmon@ti.com>
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb5
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb9
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-next_git.bb4
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb5
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.12.bb7
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.6.bb7
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc21
7 files changed, 27 insertions, 31 deletions
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb b/meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb
index cee9c7cb..ef79bfb7 100644
--- a/meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb
@@ -62,7 +62,4 @@ SRCREV:aarch64 = "977c75e082620f15c06c72bcced30f787c14b390"
62PV:aarch64 = "6.1.80+git" 62PV:aarch64 = "6.1.80+git"
63BRANCH:aarch64 = "v6.1.80-ti-arm64-r49" 63BRANCH:aarch64 = "v6.1.80-ti-arm64-r49"
64 64
65SRC_URI = " \ 65KERNEL_GIT_URI = "git://github.com/beagleboard/linux.git"
66 git://github.com/beagleboard/linux.git;protocol=https;branch=${BRANCH} \
67 file://defconfig \
68"
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb
index a9048f16..765375b0 100644
--- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb
@@ -17,7 +17,14 @@ S = "${WORKDIR}/git"
17SRCREV = "fa7818b3a6dd56c7956f515d287ed9f80c7bf59a" 17SRCREV = "fa7818b3a6dd56c7956f515d287ed9f80c7bf59a"
18PV = "6.11" 18PV = "6.11"
19 19
20SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git;protocol=https;branch=master" 20KERNEL_GIT_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git"
21BRANCH = "master"
22
23KERNEL_DEFCONFIG = ""
24
25KERNEL_REPRODUCIBILITY_PATCHES = " \
26 file://0001-drivers-gpu-drm-msm-registers-improve-reproducibilit.patch \
27"
21 28
22DEFCONFIG_NAME = "multi_v7_defconfig" 29DEFCONFIG_NAME = "multi_v7_defconfig"
23DEFCONFIG_NAME:omapl138 = "davinci_all_defconfig" 30DEFCONFIG_NAME:omapl138 = "davinci_all_defconfig"
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-next_git.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-next_git.bb
index 3c206754..1feb7564 100644
--- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-next_git.bb
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-next_git.bb
@@ -8,4 +8,6 @@ include ${@ 'recipes-kernel/linux/ti-kernel-devicetree-prefix.inc' if d.getVar('
8SRCREV = "6465e260f48790807eef06b583b38ca9789b6072" 8SRCREV = "6465e260f48790807eef06b583b38ca9789b6072"
9PV = "6.6.0-rc3+git" 9PV = "6.6.0-rc3+git"
10 10
11SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git;protocol=https;branch=master" 11KERNEL_GIT_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git"
12
13KERNEL_REPRODUCIBILITY_PATCHES = ""
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb
index 66f0b562..86851278 100644
--- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb
@@ -26,11 +26,6 @@ BRANCH ?= "ti-linux-6.1.y"
26SRCREV ?= "92ce8d7d2ab679e10c1dda309a0fb2ceae78b908" 26SRCREV ?= "92ce8d7d2ab679e10c1dda309a0fb2ceae78b908"
27PV = "6.1.105+git" 27PV = "6.1.105+git"
28 28
29KERNEL_GIT_URI ?= "git://git.ti.com/git/ti-linux-kernel/ti-linux-kernel.git"
30KERNEL_GIT_PROTOCOL = "https"
31SRC_URI += "${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH} \
32 file://defconfig"
33
34# Special configuration for remoteproc/rpmsg IPC modules 29# Special configuration for remoteproc/rpmsg IPC modules
35module_conf_rpmsg_client_sample = "blacklist rpmsg_client_sample" 30module_conf_rpmsg_client_sample = "blacklist rpmsg_client_sample"
36module_conf_ti_k3_r5_remoteproc = "softdep ti_k3_r5_remoteproc pre: virtio_rpmsg_bus" 31module_conf_ti_k3_r5_remoteproc = "softdep ti_k3_r5_remoteproc pre: virtio_rpmsg_bus"
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.12.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.12.bb
index f6f8732b..f8ce3f01 100644
--- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.12.bb
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.12.bb
@@ -28,10 +28,9 @@ BRANCH ?= "ti-linux-6.12.y"
28SRCREV ?= "9852d85ec9d492ebef56dc5f229416c925758edc" 28SRCREV ?= "9852d85ec9d492ebef56dc5f229416c925758edc"
29PV = "6.12-rc1+git" 29PV = "6.12-rc1+git"
30 30
31KERNEL_GIT_URI ?= "git://git.ti.com/git/ti-linux-kernel/ti-linux-kernel.git" 31KERNEL_REPRODUCIBILITY_PATCHES = " \
32KERNEL_GIT_PROTOCOL = "https" 32 file://0001-drivers-gpu-drm-msm-registers-improve-reproducibilit.patch \
33SRC_URI += "${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH} \ 33"
34 file://defconfig"
35 34
36# Special configuration for remoteproc/rpmsg IPC modules 35# Special configuration for remoteproc/rpmsg IPC modules
37module_conf_rpmsg_client_sample = "blacklist rpmsg_client_sample" 36module_conf_rpmsg_client_sample = "blacklist rpmsg_client_sample"
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.6.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.6.bb
index 9a906a0f..5646986a 100644
--- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.6.bb
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.6.bb
@@ -26,10 +26,9 @@ BRANCH ?= "ti-linux-6.6.y"
26SRCREV ?= "32ae7316ddc6d9b6bb0d87706cf7daa44c4c1e92" 26SRCREV ?= "32ae7316ddc6d9b6bb0d87706cf7daa44c4c1e92"
27PV = "6.6.44+git" 27PV = "6.6.44+git"
28 28
29KERNEL_GIT_URI ?= "git://git.ti.com/git/ti-linux-kernel/ti-linux-kernel.git" 29KERNEL_REPRODUCIBILITY_PATCHES = " \
30KERNEL_GIT_PROTOCOL = "https" 30 file://0001-vt-conmakehash-improve-reproducibility.patch \
31SRC_URI += "${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH} \ 31"
32 file://defconfig"
33 32
34# Special configuration for remoteproc/rpmsg IPC modules 33# Special configuration for remoteproc/rpmsg IPC modules
35module_conf_rpmsg_client_sample = "blacklist rpmsg_client_sample" 34module_conf_rpmsg_client_sample = "blacklist rpmsg_client_sample"
diff --git a/meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc b/meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc
index 09cfdb12..8c14446a 100644
--- a/meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc
+++ b/meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc
@@ -13,19 +13,16 @@ EXTRA_DTC_ARGS += "${@get_extra_dtc_args(d)}"
13KERNEL_DTBDEST = "${KERNEL_IMAGEDEST}/dtb" 13KERNEL_DTBDEST = "${KERNEL_IMAGEDEST}/dtb"
14KERNEL_DTBVENDORED = "1" 14KERNEL_DTBVENDORED = "1"
15 15
16KERNEL_PATCHES = "" 16KERNEL_GIT_URI ?= "git://git.ti.com/git/ti-linux-kernel/ti-linux-kernel.git"
17KERNEL_GIT_PROTOCOL ?= "https"
18KERNEL_GIT_BRANCH ?= "branch=${BRANCH}"
17 19
18KERNEL_PATCHES:bsp-mainline = " \ 20KERNEL_DEFCONFIG ?= "file://defconfig"
19 file://0001-vt-conmakehash-improve-reproducibility-for-v6.10.patch \
20 file://0001-drivers-gpu-drm-msm-registers-improve-reproducibilit.patch \
21"
22 21
23KERNEL_PATCHES:bsp-ti-6_12 = " \ 22KERNEL_REPRODUCIBILITY_PATCHES ?= ""
24 file://0001-drivers-gpu-drm-msm-registers-improve-reproducibilit.patch \
25"
26 23
27KERNEL_PATCHES:bsp-ti-6_6 = " \ 24SRC_URI = " \
28 file://0001-vt-conmakehash-improve-reproducibility.patch \ 25 ${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};${KERNEL_GIT_BRANCH} \
26 ${KERNEL_DEFCONFIG} \
27 ${KERNEL_REPRODUCIBILITY_PATCHES} \
29" 28"
30
31SRC_URI:append = " ${KERNEL_PATCHES} "