]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
cml1: prompt location of updated .config after do_menuconfig()
authorEnrico Jörns <ejo@pengutronix.de>
Tue, 5 Mar 2024 21:57:28 +0000 (22:57 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 30 Mar 2024 22:25:17 +0000 (22:25 +0000)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/cml1.bbclass

index 2da19cb4cf5e74687b2e8dd690b1142a68d9b650..03e5fe6f4723c58a02db84ce8ed60d9490cc6b68 100644 (file)
@@ -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"