From: Andreas Mützel Date: Tue, 7 Jul 2026 06:56:31 +0000 (+0200) Subject: cml1: use KCONFIG_CONFIG_ROOTDIR in savedefconfig X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=46964503b6340d4244d1c19e90808f399a3c862c;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git cml1: use KCONFIG_CONFIG_ROOTDIR in savedefconfig When running do_savedefconfig with a KCONFIG_CONFIG_ROOTDIR other than B, this task runs oe_runmake in a directory different from the other config-related tasks. For example, in U-Boot with the new configuration flow from wrynose and configs defined using the UBOOT_CONFIG_* variables, the project sources and configs will be located in a subdirectory of ${B}. This will result in the following error when running do_savedefconfig: make: *** No rule to make target 'savedefconfig'. Stop. Fix the do_savedefconfig task so it runs in KCONFIG_CONFIG_ROOTDIR. Signed-off-by: Andreas Mützel Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta/classes-recipe/cml1.bbclass b/meta/classes-recipe/cml1.bbclass index ac65eec4bf..d8bac57b77 100644 --- a/meta/classes-recipe/cml1.bbclass +++ b/meta/classes-recipe/cml1.bbclass @@ -113,8 +113,8 @@ do_showconfig[nostamp] = "1" addtask showconfig after do_configure do_savedefconfig() { - bbplain "Saving defconfig to:\n${B}/defconfig" - oe_runmake -C ${B} savedefconfig + bbplain "Saving defconfig to:\n${KCONFIG_CONFIG_ROOTDIR}/defconfig" + oe_runmake -C ${KCONFIG_CONFIG_ROOTDIR} savedefconfig } do_savedefconfig[nostamp] = "1" addtask savedefconfig after do_configure