[bitbake-devel] devtool workspace creation problem

Daniel Gómez Cruces daniel.gomez at silicon-gears.com
Wed Feb 28 18:40:31 UTC 2018


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 <daniel.gomez at silicon-gears.com>
Date: Wed, 28 Feb 2018 19:35:05 +0100
Subject: [PATCH] From ce66d072ee26678f774630a0a8f6f4e69794177f Mon Sep 17 00:00:00 2001
From: Daniel Gomez <daniel.gomez at silicon-gears.com>
Date: Wed, 28 Feb 2018 19:35:05 +0100
Subject: [PATCH] Check kconfig when devtool is generating workspace

Signed-off-by: Daniel Gomez <daniel.gomez at silicon-gears.com>
---
 scripts/lib/devtool/standard.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 77a82d5..7e41bd2 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -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)
-- 
2.7.4



Signed-off-by: Daniel Gomez <daniel.gomez at silicon-gears.com>
---
 scripts/lib/devtool/standard.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 77a82d5..7e41bd2 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -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)
-- 
2.7.4









    


More information about the bitbake-devel mailing list