aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool/standard.py
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2015-12-03 15:54:24 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-09 08:47:28 +0000
commit3b516332e038a587685f6e0c14a7f04990bdd6cc (patch)
tree9b14c5dddbf99ac5b04a7d26a64cf659378a2216 /scripts/lib/devtool/standard.py
parent229723a20095e80bde29e4b3398047f62f972170 (diff)
downloadopenembedded-core-contrib-3b516332e038a587685f6e0c14a7f04990bdd6cc.tar.gz
devtool: extract: copy kernel config to srctree
This makes the correct kernel config to be used when building kernel from srctree (extrernalsrc). If no kernel config is present in the builddir 'do_configure' task copies .config from the srctree. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/lib/devtool/standard.py')
-rw-r--r--scripts/lib/devtool/standard.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 68d6eb98c5..a4f3da4d14 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -457,6 +457,14 @@ def _extract_source(srctree, keep_temp, devbranch, sync, d):
if haspatches:
bb.process.run('git checkout patches', cwd=srcsubdir)
+ if bb.data.inherits_class('kernel-yocto', d):
+ # Store generate and store kernel config
+ logger.info('Generating kernel config')
+ task_executor.exec_func('do_configure', False)
+ kconfig = os.path.join(d.getVar('B', True), '.config')
+ shutil.copy2(kconfig, srcsubdir)
+
+
tempdir_localdir = os.path.join(tempdir, 'oe-local-files')
srctree_localdir = os.path.join(srctree, 'oe-local-files')