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 <[email protected]>
---
meta/classes-recipe/cml1.bbclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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
--
2.54.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#240359):
https://lists.openembedded.org/g/openembedded-core/message/240359
Mute This Topic: https://lists.openembedded.org/mt/120152876/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-