]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
cml1: add showconfig task to easily find the generated .config file
authorRoss Burton <ross.burton@arm.com>
Thu, 12 May 2022 14:11:17 +0000 (15:11 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 10 Jul 2023 10:36:06 +0000 (11:36 +0100)
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.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/cml1.bbclass

index d87d8204e44fec405c58a7485660d58c314c54d3..d83c636e48686cb3705650b3ce6805b9fa412e02 100644 (file)
@@ -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