From: Ross Burton <ross.bur...@arm.com>

It's not that unusual to want to manually review the generated .config file
after do_configure has ran.  Add a new 'showconfig' task that simply
prints the full path to the .config file, so the user can open it in an
editor.

Signed-off-by: Ross Burton <ross.bur...@arm.com>
---
 meta/classes-recipe/cml1.bbclass | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meta/classes-recipe/cml1.bbclass b/meta/classes-recipe/cml1.bbclass
index d87d8204e44..d83c636e486 100644
--- a/meta/classes-recipe/cml1.bbclass
+++ b/meta/classes-recipe/cml1.bbclass
@@ -109,3 +109,9 @@ python do_diffconfig() {
 do_diffconfig[nostamp] = "1"
 do_diffconfig[dirs] = "${KCONFIG_CONFIG_ROOTDIR}"
 addtask diffconfig
+
+do_showconfig() {
+    bbplain "Config file written to ${KCONFIG_CONFIG_ROOTDIR}/.config"
+}
+do_showconfig[nostamp] = "1"
+addtask showconfig after do_configure
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#183891): 
https://lists.openembedded.org/g/openembedded-core/message/183891
Mute This Topic: https://lists.openembedded.org/mt/99966860/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to