From 42ce9b8751fc68bccbd07168071f13c7fa99eda4 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Thu, 3 Dec 2015 15:54:24 +0200 Subject: 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 master rev: 3b516332e038a587685f6e0c14a7f04990bdd6cc) (From OE-Core rev: 32593f2b6a44a7bfdab55aec7e172476020fd4eb) Signed-off-by: Markus Lehtonen Signed-off-by: Ross Burton Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- scripts/lib/devtool/standard.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scripts/lib/devtool/standard.py') 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: -- cgit v1.2.3-54-g00ecf