summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp
diff options
context:
space:
mode:
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>2024-03-21 18:17:07 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-03-23 10:18:20 +0000
commit8580c232847da4e0256558a17e93161e41ce9ab0 (patch)
treee3ca3f95dc7e86e09dfa28ea3e0909bf94659143 /meta/recipes-bsp
parentf9b691150bf2e6b416319d2df9505724e7df71eb (diff)
downloadpoky-8580c232847da4e0256558a17e93161e41ce9ab0.tar.gz
u-boot: fix externalsrc not triggering do_configure on defconfig changes
externalsrc only monitors files listed in CONFIGURE_FILES environment variable to know if it should trigger a rebuild of do_configure. By default it is unset, but the defconfig from U-Boot should be listed otherwise an old defconfig may be used even though the change is technically detected by the do_compile logic later in the process. Because U-Boot recipe uses `make oldconfig` when no defconfig is passed, monitor .config for that special case. This fixes U-Boot recipes not detecting defconfig changes when devtool'ed. Reported-by: Iskander Amara <iskander.amara@theobroma-systems.com> Cc: Quentin Schulz <foss+yocto@0leil.net> (From OE-Core rev: fef517b5f978cf848b9cc40e8ce6bb2762681182) Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp')
-rw-r--r--meta/recipes-bsp/u-boot/u-boot-configure.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-bsp/u-boot/u-boot-configure.inc b/meta/recipes-bsp/u-boot/u-boot-configure.inc
index 235623d25a..378d675364 100644
--- a/meta/recipes-bsp/u-boot/u-boot-configure.inc
+++ b/meta/recipes-bsp/u-boot/u-boot-configure.inc
@@ -8,6 +8,8 @@ inherit uboot-config cml1
8 8
9DEPENDS += "kern-tools-native" 9DEPENDS += "kern-tools-native"
10 10
11CONFIGURE_FILES = "${@d.getVar('UBOOT_MACHINE') or '.config'}"
12
11do_configure () { 13do_configure () {
12 if [ -n "${UBOOT_CONFIG}" ]; then 14 if [ -n "${UBOOT_CONFIG}" ]; then
13 unset i j 15 unset i j