This makes it easier to track changes made to config.
Signed-off-by: Markus Lehtonen <[email protected]>
---
meta/classes/cml1.bbclass | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/meta/classes/cml1.bbclass b/meta/classes/cml1.bbclass
index 95cf584..a95a2bf 100644
--- a/meta/classes/cml1.bbclass
+++ b/meta/classes/cml1.bbclass
@@ -28,6 +28,11 @@ python do_menuconfig() {
oe_terminal("${SHELL} -c \"make ${KCONFIG_CONFIG_COMMAND}; if [ \$? -ne 0
]; then echo 'Command failed.'; printf 'Press any key to continue... '; read r;
fi\"", '${PN} Configuration', d)
+ # Copy .config back to source tree if externalsrc is in use
+ if (d.getVar('EXTERNALSRC', True) and
+ os.path.exists(os.path.join(d.getVar('S', True), '.config'))):
+ shutil.copy2('.config', os.path.join(d.getVar('S', True), '.config'))
+
# FIXME this check can be removed when the minimum bitbake version has
been bumped
if hasattr(bb.build, 'write_taint'):
try:
--
2.1.4
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core