From a4f9f6057945a9482661656805166ba5a5880d83 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Wed, 28 Apr 2021 11:29:02 +0100 Subject: [PATCH] arm-bsp/linux: guard FILESEXTRAPATHS changes in overrides Because of how the kernel class searches for files any changes to FILESEXTRAPATHS should be done in an override so it doesn't potentially impact unrelated builds. Issue spotted by running yocto-check-layer. Change-Id: Id3b741d184a024d0cc6d2d5031e150a8f0ae4b0d Signed-off-by: Ross Burton Signed-off-by: Jon Mason --- .../recipes-kernel/linux/linux-arm-platforms.inc | 12 +++++++++++- .../recipes-kernel/linux/linux-yocto-corstone700.inc | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/meta-arm-bsp/recipes-kernel/linux/linux-arm-platforms.inc b/meta-arm-bsp/recipes-kernel/linux/linux-arm-platforms.inc index 1737a05c..17a036ef 100644 --- a/meta-arm-bsp/recipes-kernel/linux/linux-arm-platforms.inc +++ b/meta-arm-bsp/recipes-kernel/linux/linux-arm-platforms.inc @@ -5,7 +5,11 @@ # in this file. Update SRC_URI and do_patch for building images with custom dts # -FILESEXTRAPATHS_prepend := "${THISDIR}:${THISDIR}/files:" +# We can't set FILESEXTRAPATHS once because of how the kernel classes search for +# config fragments. Discussion is ongoing as to whether this is the correct +# solution, or a workaround. +# https://bugzilla.yoctoproject.org/show_bug.cgi?id=14154 +ARMBSPFILESPATHS := "${THISDIR}:${THISDIR}/files:" # Arm platforms kmeta SRC_URI_KMETA = "file://arm-platforms-kmeta;type=kmeta;name=arm-platforms-kmeta;destsuffix=arm-platforms-kmeta" @@ -26,6 +30,7 @@ COMPATIBLE_MACHINE_corstone500 = "corstone500" # COMPATIBLE_MACHINE_fvp-base = "fvp-base" KMACHINE_fvp-base = "fvp" +FILESEXTRAPATHS_prepend_fvp-base := "${ARMBSPFILESPATHS}" SRC_URI_append_fvp-base = " file://fvp-base-dts.patch" # @@ -33,6 +38,7 @@ SRC_URI_append_fvp-base = " file://fvp-base-dts.patch" # COMPATIBLE_MACHINE_fvp-base-arm32 = "fvp-base-arm32" KMACHINE_fvp-base-arm32 = "fvp-arm32" +FILESEXTRAPATHS_prepend_fvp-base-arm32 := "${ARMBSPFILESPATHS}" SRC_URI_append_fvp-base-arm32 = " file://fvp-base-arm32-dts.patch \ file://0001-ARM-vexpress-enable-GICv3.patch" @@ -43,6 +49,7 @@ COMPATIBLE_MACHINE_juno = "juno" KMACHINE_juno = "juno" KBUILD_DEFCONFIG_juno = "defconfig" KCONFIG_MODE_juno = "--alldefconfig" +FILESEXTRAPATHS_prepend_juno := "${ARMBSPFILESPATHS}" SRC_URI_append_juno = " \ file://0001-mailbox-add-support-for-doorbell-signal-mode-control.patch \ file://0002-dt-bindings-mailbox-add-bindings-to-support-ARM-MHU-.patch \ @@ -68,6 +75,7 @@ KCONFIG_MODE_sgi575 = "--alldefconfig" COMPATIBLE_MACHINE_tc0 = "tc0" KMACHINE_tc0 = "tc0" KCONFIG_MODE_tc0 = "--alldefconfig" +FILESEXTRAPATHS_prepend_tc0 := "${ARMBSPFILESPATHS}" SRC_URI_append_tc0 = " \ file://defconfig \ file://0001-drm-Add-component-aware-simple-encoder.patch \ @@ -94,6 +102,7 @@ FILESEXTRAPATHS_prepend_n1sdp := "${THISDIR}/linux-yocto-5.10/n1sdp:" COMPATIBLE_MACHINE_n1sdp = "n1sdp" KBUILD_DEFCONFIG_n1sdp = "defconfig" KCONFIG_MODE_n1sdp = "--alldefconfig" +FILESEXTRAPATHS_prepend_n1sdp := "${ARMBSPFILESPATHS}" SRC_URI_append_n1sdp = " \ file://0001-pci_quirk-add-acs-override-for-PCI-devices.patch \ file://0002-pcie-Add-quirk-for-the-Arm-Neoverse-N1SDP-platform.patch \ @@ -119,4 +128,5 @@ COMPATIBLE_MACHINE_musca-s1 = "(^$)" # FVP BaseR AEMv8r64 Machine # COMPATIBLE_MACHINE_fvp-baser-aemv8r64 = "fvp-baser-aemv8r64" +FILESEXTRAPATHS_prepend_fvp-baser-aemv8r64 := "${ARMBSPFILESPATHS}" SRC_URI_append_fvp-baser-aemv8r64 = " file://fvp-baser-aemv8r64.dts;subdir=git/arch/arm64/boot/dts/arm" diff --git a/meta-arm-bsp/recipes-kernel/linux/linux-yocto-corstone700.inc b/meta-arm-bsp/recipes-kernel/linux/linux-yocto-corstone700.inc index f2a9a54c..eb584e55 100644 --- a/meta-arm-bsp/recipes-kernel/linux/linux-yocto-corstone700.inc +++ b/meta-arm-bsp/recipes-kernel/linux/linux-yocto-corstone700.inc @@ -1,4 +1,4 @@ -FILESEXTRAPATHS_prepend := "${THISDIR}/files/corstone700:" +FILESEXTRAPATHS_prepend := "${THISDIR}:${THISDIR}/files:" COMPATIBLE_MACHINE = "${MACHINE}"