summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2015-12-03 13:54:24 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-09 08:48:25 (GMT)
commit34f1d819f4e08ccaad9baae7a05c744f4089345e (patch)
treea07ae40a98e20c657fdab562a92a31c1df1e64f6 /scripts
parent6650357f13a52ad6a789cd79ec283218537c4aba (diff)
downloadpoky-34f1d819f4e08ccaad9baae7a05c744f4089345e.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. (From OE-Core rev: 3b516332e038a587685f6e0c14a7f04990bdd6cc) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-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 68d6eb9..a4f3da4 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):
457 if haspatches: 457 if haspatches:
458 bb.process.run('git checkout patches', cwd=srcsubdir) 458 bb.process.run('git checkout patches', cwd=srcsubdir)
459 459
460 if bb.data.inherits_class('kernel-yocto', d):
461 # Store generate and store kernel config
462 logger.info('Generating kernel config')
463 task_executor.exec_func('do_configure', False)
464 kconfig = os.path.join(d.getVar('B', True), '.config')
465 shutil.copy2(kconfig, srcsubdir)
466
467
460 tempdir_localdir = os.path.join(tempdir, 'oe-local-files') 468 tempdir_localdir = os.path.join(tempdir, 'oe-local-files')
461 srctree_localdir = os.path.join(srctree, 'oe-local-files') 469 srctree_localdir = os.path.join(srctree, 'oe-local-files')
462 470