mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
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 <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
45a2977b83
commit
42ce9b8751
@@ -435,6 +435,12 @@ def _extract_source(srctree, keep_temp, devbranch, d):
|
|||||||
logger.info('Adding local source files to srctree...')
|
logger.info('Adding local source files to srctree...')
|
||||||
shutil.move(os.path.join(tempdir, 'oe-local-files'), srcsubdir)
|
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)
|
shutil.move(srcsubdir, srctree)
|
||||||
finally:
|
finally:
|
||||||
|
|||||||
Reference in New Issue
Block a user