aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/devtool/standard.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 5464d7b1f2..1437e7c52a 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -435,6 +435,12 @@ def _extract_source(srctree, keep_temp, devbranch, d):
logger.info('Adding local source files to srctree...')
shutil.move(os.path.join(tempdir, 'oe-local-files'), 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)
shutil.move(srcsubdir, srctree)
finally: