devtool workspace creation problem
Hi,
I'm working with yocto (krogoth) and I'm having some problems with devtool while I'm doing my custom kernel recipe based on linux-yocto.inc
The problem is that .config file is not found when devtool command is creating the workspace for the custom kernel recipe and it is not able to find the .config because it has already moved it from TMP directory to the workspace directory.
So, I created a simple patch that only checks if .config still exists but what I would like to know is if I have something missing in my kernel recipe that is provoking this problem or it is a problem of the script.
Thanks,
Daniel
From ce66d072ee26678f774630a0a8f6f4e69794177f Mon Sep 17 00:00:00 2001
From: Daniel Gomez <[email protected]>
Date: Wed, 28 Feb 2018 19:35:05 +0100
Subject: [PATCH] From ce66d072ee26678f774630a0a8f6f4e69794177f Mon Sep 17 00:00:00 2001
From: Daniel Gomez <[email protected]>
Date: Wed, 28 Feb 2018 19:35:05 +0100
Subject: [PATCH] Check kconfig when devtool is generating workspace
--- scripts/lib/devtool/standard.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
scripts/lib/devtool/standard.py +3 -1
@@ -634,7 +634,9 @@ def _extract_source(srctree, keep_temp, devbranch, sync, d): if kconfig: logger.info('Copying kernel config to srctree') - shutil.copy2(kconfig, srctree) + if os.path.exists(kconfig): + logger.info('Kernel config file does not exist anymore') + shutil.copy2(kconfig, srctree) finally: bb.logger.setLevel(origlevel)
Signature · 8 lines
2.7.4 Signed-off-by: Daniel Gomez <[email protected]> --- scripts/lib/devtool/standard.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
scripts/lib/devtool/standard.py +3 -1
@@ -634,7 +634,9 @@ def _extract_source(srctree, keep_temp, devbranch, sync, d): if kconfig: logger.info('Copying kernel config to srctree') - shutil.copy2(kconfig, srctree) + if os.path.exists(kconfig): + logger.info('Kernel config file does not exist anymore') + shutil.copy2(kconfig, srctree) finally: bb.logger.setLevel(origlevel)
Signature · 11 lines
2.7.4