linux: Rework the reproducibility patches
PATCH 1/1 linux: Rework the reproducibility patches
It was suggested to move the reproducibility patches out of ti-kernel.inc and into the respective recipes. Take this time to also rename the variable being added to the SRC_URI to REPRODUCIBILITY_PATCHES to make it clearer about what the patches are that it lists.
This change will also make it easier for the upstream testing flow to update the mainline recipe to the new version and update the needed patches at the same time.
--- .../linux/linux-ti-mainline_git.bb | 4 ++++ .../linux/linux-ti-staging_6.12.bb | 4 ++++ .../linux/linux-ti-staging_6.6.bb | 4 ++++ meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc | 18 ++---------------- 4 files changed, 14 insertions(+), 16 deletions(-)
meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb +4 -0
@@ -19,6 +19,10 @@ PV = "6.11" SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git;protocol=https;branch=master" +REPRODUCIBILITY_PATCHES:bsp-mainline = " \ + file://0001-drivers-gpu-drm-msm-registers-improve-reproducibilit.patch \ +" + DEFCONFIG_NAME = "multi_v7_defconfig" DEFCONFIG_NAME:omapl138 = "davinci_all_defconfig" DEFCONFIG_NAME:k3 = "defconfig"
meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.12.bb +4 -0
@@ -33,6 +33,10 @@ KERNEL_GIT_PROTOCOL = "https" SRC_URI += "${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH} \ file://defconfig" +REPRODUCIBILITY_PATCHES:bsp-ti-6_12 = " \ + file://0001-drivers-gpu-drm-msm-registers-improve-reproducibilit.patch \ +" + # Special configuration for remoteproc/rpmsg IPC modules module_conf_rpmsg_client_sample = "blacklist rpmsg_client_sample" module_conf_ti_k3_r5_remoteproc = "softdep ti_k3_r5_remoteproc pre: virtio_rpmsg_bus"
meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.6.bb +4 -0
@@ -31,6 +31,10 @@ KERNEL_GIT_PROTOCOL = "https" SRC_URI += "${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH} \ file://defconfig" +REPRODUCIBILITY_PATCHES:bsp-ti-6_6 = " \ + file://0001-vt-conmakehash-improve-reproducibility.patch \ +" + # Special configuration for remoteproc/rpmsg IPC modules module_conf_rpmsg_client_sample = "blacklist rpmsg_client_sample" module_conf_ti_k3_r5_remoteproc = "softdep ti_k3_r5_remoteproc pre: virtio_rpmsg_bus"
meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc +2 -16
@@ -13,19 +13,5 @@ EXTRA_DTC_ARGS += "${@get_extra_dtc_args(d)}" KERNEL_DTBDEST = "${KERNEL_IMAGEDEST}/dtb" KERNEL_DTBVENDORED = "1" -KERNEL_PATCHES = "" - -KERNEL_PATCHES:bsp-mainline = " \ - file://0001-vt-conmakehash-improve-reproducibility-for-v6.10.patch \ - file://0001-drivers-gpu-drm-msm-registers-improve-reproducibilit.patch \ -" - -KERNEL_PATCHES:bsp-ti-6_12 = " \ - file://0001-drivers-gpu-drm-msm-registers-improve-reproducibilit.patch \ -" - -KERNEL_PATCHES:bsp-ti-6_6 = " \ - file://0001-vt-conmakehash-improve-reproducibility.patch \ -" - -SRC_URI:append = " ${KERNEL_PATCHES} " +REPRODUCIBILITY_PATCHES = "" +SRC_URI:append = " ${REPRODUCIBILITY_PATCHES}"
Signature · 1 line
2.17.1
I don't think you need bsp-overrides anymore...
Quoted 91 lines · Ryan Eatmon via lists.yoctoproject.org
It was suggested to move the reproducibility patches out of ti-kernel.inc and into the respective recipes. Take this time to also rename the variable being added to the
SRC_URItoREPRODUCIBILITY_PATCHESto make it clearer about what the patches are that it lists.This change will also make it easier for the upstream testing flow to update the mainline recipe to the new version and update the needed patches at the same time.
Signed-off-by Ryan Eatmon <[email protected]>--- .../linux/linux-ti-mainline_git.bb | 4 ++++ .../linux/linux-ti-staging_6.12.bb | 4 ++++ .../linux/linux-ti-staging_6.6.bb | 4 ++++ meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc | 18 ++---------------- 4 files changed, 14 insertions(+), 16 deletions(-)meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb +4
-0@@ -19,6 +19,10 @@ PV = "6.11" SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git;protocol=https;branch=master" +REPRODUCIBILITY_PATCHES:bsp-mainline = " \ + file://0001-drivers-gpu-drm-msm-registers-improve-reproducibilit.patch \ +" + DEFCONFIG_NAME = "multi_v7_defconfig" DEFCONFIG_NAME:omapl138 = "davinci_all_defconfig" DEFCONFIG_NAME:k3 = "defconfig"meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.12.bb +4
-0@@ -33,6 +33,10 @@ KERNEL_GIT_PROTOCOL = "https" SRC_URI += "${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH} \ file://defconfig" +REPRODUCIBILITY_PATCHES:bsp-ti-6_12 = " \ + file://0001-drivers-gpu-drm-msm-registers-improve-reproducibilit.patch \ +" + # Special configuration for remoteproc/rpmsg IPC modules module_conf_rpmsg_client_sample = "blacklist rpmsg_client_sample" module_conf_ti_k3_r5_remoteproc = "softdep ti_k3_r5_remoteproc pre: virtio_rpmsg_bus"meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.6.bb +4
-0@@ -31,6 +31,10 @@ KERNEL_GIT_PROTOCOL = "https" SRC_URI += "${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH} \ file://defconfig" +REPRODUCIBILITY_PATCHES:bsp-ti-6_6 = " \ + file://0001-vt-conmakehash-improve-reproducibility.patch \ +" + # Special configuration for remoteproc/rpmsg IPC modules module_conf_rpmsg_client_sample = "blacklist rpmsg_client_sample" module_conf_ti_k3_r5_remoteproc = "softdep ti_k3_r5_remoteproc pre: virtio_rpmsg_bus"meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc +2
-16@@ -13,19 +13,5 @@ EXTRA_DTC_ARGS += "${@get_extra_dtc_args(d)}" KERNEL_DTBDEST = "${KERNEL_IMAGEDEST}/dtb" KERNEL_DTBVENDORED = "1" -KERNEL_PATCHES = "" - -KERNEL_PATCHES:bsp-mainline = " \ - file://0001-vt-conmakehash-improve-reproducibility-for-v6.10.patch \ - file://0001-drivers-gpu-drm-msm-registers-improve-reproducibilit.patch \ -" - -KERNEL_PATCHES:bsp-ti-6_12 = " \ - file://0001-drivers-gpu-drm-msm-registers-improve-reproducibilit.patch \ -" - -KERNEL_PATCHES:bsp-ti-6_6 = " \ - file://0001-vt-conmakehash-improve-reproducibility.patch \ -" - -SRC_URI:append = " ${KERNEL_PATCHES} " +REPRODUCIBILITY_PATCHES = "" +SRC_URI:append = " ${REPRODUCIBILITY_PATCHES}"Signature · 1 line
2.17.1