]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
cml1: use KCONFIG_CONFIG_ROOTDIR in savedefconfig
authorAndreas Mützel <andreas.muetzel@emlix.com>
Tue, 7 Jul 2026 06:56:31 +0000 (08:56 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 13 Jul 2026 17:02:30 +0000 (18:02 +0100)
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 <andreas.muetzel@emlix.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/cml1.bbclass

index ac65eec4bff84bcc5bcbca231a50006df84f931c..d8bac57b774c039fc2b2a74a73ea2bed2ac360a9 100644 (file)
@@ -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