summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/lib/devtool/standard.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index daf18c9318..ad2c4f7235 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -577,12 +577,12 @@ def _extract_source(srctree, keep_temp, devbranch, sync, d):
577 577
578 bb.process.run('git tag -f devtool-patched', cwd=srcsubdir) 578 bb.process.run('git tag -f devtool-patched', cwd=srcsubdir)
579 579
580 kconfig = None
580 if bb.data.inherits_class('kernel-yocto', d): 581 if bb.data.inherits_class('kernel-yocto', d):
581 # Store generate and store kernel config 582 # Store generate and store kernel config
582 logger.info('Generating kernel config') 583 logger.info('Generating kernel config')
583 task_executor.exec_func('do_configure', False) 584 task_executor.exec_func('do_configure', False)
584 kconfig = os.path.join(crd.getVar('B', True), '.config') 585 kconfig = os.path.join(crd.getVar('B', True), '.config')
585 shutil.copy2(kconfig, srcsubdir)
586 586
587 587
588 tempdir_localdir = os.path.join(tempdir, 'oe-local-files') 588 tempdir_localdir = os.path.join(tempdir, 'oe-local-files')
@@ -614,6 +614,10 @@ def _extract_source(srctree, keep_temp, devbranch, sync, d):
614 614
615 shutil.move(srcsubdir, srctree) 615 shutil.move(srcsubdir, srctree)
616 616
617 if kconfig:
618 logger.info('Copying kernel config to srctree')
619 shutil.copy2(kconfig, srctree)
620
617 finally: 621 finally:
618 bb.logger.setLevel(origlevel) 622 bb.logger.setLevel(origlevel)
619 623