[OE-core] [PATCH] devtool: modify command fails to ignore source files
Stephano Cetola
stephano.cetola at linux.intel.com
Sun Oct 2 20:55:06 UTC 2016
With recent changes to recipeutils, the list of local files returned
by get_recipe_local_files could possibly include source files. This
only happens when the recipe contains a SRC_URI using subdir= to put
files in the source tree. These files should be ignored when
populating the list of local files for oe-local-files directory.
Signed-off-by: Stephano Cetola <stephano.cetola at linux.intel.com>
---
scripts/lib/devtool/standard.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 8319145..c7a5712 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -568,8 +568,12 @@ def _extract_source(srctree, keep_temp, devbranch, sync, d):
recipe_patches = [os.path.basename(patch) for patch in
oe.recipeutils.get_recipe_patches(crd)]
local_files = oe.recipeutils.get_recipe_local_files(crd)
+
+ # Ignore local files with subdir={BP}
+ srcdirname = os.path.basename(os.path.normpath(srcsubdir))
local_files = [fname for fname in local_files if
- os.path.exists(os.path.join(workdir, fname))]
+ os.path.exists(os.path.join(workdir, fname)) and
+ srcdirname not in fname]
if local_files:
for fname in local_files:
_move_file(os.path.join(workdir, fname),
--
2.10.0
More information about the Openembedded-core
mailing list