diff mbox series

[2/2] cml1: prompt location of updated .config after do_menuconfig()

Message ID 20240305215728.207879-2-ejo@pengutronix.de
State New
Headers show
Series [1/2] cml1: remove needless check for write_taint attribute | expand

Commit Message

Enrico Jörns March 5, 2024, 9:57 p.m. UTC
When modifying the kernel config by invoking '-c menuconfig' manually, a
sensible next step is to persist this changed configuration somewhere.

A way to do this is to copy the generated .config back to the original
config location.

For this purpose, emit a copy+pasteable printout of the saved .config
path similar to what we have for the fragment location in the
'diffconfig' task already.

Example output:

| Changed configuration saved at:
|  /path/to/bsp/build/tmp/work/my-machine-oe-linux/linux-custom/6.6.4/build/.config
| Recompile will be forced

Signed-off-by: Enrico Jörns <ejo@pengutronix.de>
---
 meta/classes-recipe/cml1.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/classes-recipe/cml1.bbclass b/meta/classes-recipe/cml1.bbclass
index 2da19cb4cf..03e5fe6f47 100644
--- a/meta/classes-recipe/cml1.bbclass
+++ b/meta/classes-recipe/cml1.bbclass
@@ -67,7 +67,7 @@  python do_menuconfig() {
         newmtime = 0
 
     if newmtime > mtime:
-        bb.note("Configuration changed, recompile will be forced")
+        bb.plain("Changed configuration saved at:\n %s\nRecompile will be forced" % config)
         bb.build.write_taint('do_compile', d)
 }
 do_menuconfig[depends] += "ncurses-native:do_populate_sysroot"