[OE-core] [PATCH 4/5] cml1.bbclass: copy .config to S if externalsr is in use
Markus Lehtonen
markus.lehtonen at linux.intel.com
Fri Dec 18 08:39:44 UTC 2015
This makes it easier to track changes made to config.
Signed-off-by: Markus Lehtonen <markus.lehtonen at linux.intel.com>
---
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
More information about the Openembedded-core
mailing list