diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2016-01-23 00:59:56 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-24 09:40:33 +0000 |
commit | 477fa84390b54a83d82a9555aaba8b467c5e6446 (patch) | |
tree | 7c3ef19ec0969ec892f5163679701ec6f200532b /scripts/gen-lockedsig-cache | |
parent | 204e4abbcd6c7255828e704e249beed016fec1b9 (diff) | |
download | poky-477fa84390b54a83d82a9555aaba8b467c5e6446.tar.gz |
gen-lockedsig-cache: copy correct native sstate into ext SDK
When constructing the sstate-cache directory for the extensible SDK,
we were copying in any matching native sstate packages, and as the
signature doesn't actually change when the distro changes (since
NATIVELSBSTRING is just a path separator for the artifacts and is not
part of the signature) we ended up copying duplicated packages when the
distro changed e.g. upon host distro upgrade. Only search in the
NATIVELSBSTRING-named subdirectory for native packages and the issue
goes away.
Fixes [YOCTO #8885].
(From OE-Core rev: 6c6baf6aa1823b8b20123f505e45c2768a193ad5)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/gen-lockedsig-cache')
-rwxr-xr-x | scripts/gen-lockedsig-cache | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/gen-lockedsig-cache b/scripts/gen-lockedsig-cache index 9c16506cd6..a4e9dede01 100755 --- a/scripts/gen-lockedsig-cache +++ b/scripts/gen-lockedsig-cache | |||
@@ -13,9 +13,9 @@ def mkdir(d): | |||
13 | if e.errno != errno.EEXIST: | 13 | if e.errno != errno.EEXIST: |
14 | raise e | 14 | raise e |
15 | 15 | ||
16 | if len(sys.argv) < 3: | 16 | if len(sys.argv) < 5: |
17 | print("Incorrect number of arguments specified") | 17 | print("Incorrect number of arguments specified") |
18 | print("syntax: gen-lockedsig-cache <locked-sigs.inc> <input-cachedir> <output-cachedir>") | 18 | print("syntax: gen-lockedsig-cache <locked-sigs.inc> <input-cachedir> <output-cachedir> <nativelsbstring>") |
19 | sys.exit(1) | 19 | sys.exit(1) |
20 | 20 | ||
21 | print('Reading %s' % sys.argv[1]) | 21 | print('Reading %s' % sys.argv[1]) |
@@ -30,7 +30,7 @@ files = set() | |||
30 | for s in sigs: | 30 | for s in sigs: |
31 | p = sys.argv[2] + "/" + s[:2] + "/*" + s + "*" | 31 | p = sys.argv[2] + "/" + s[:2] + "/*" + s + "*" |
32 | files |= set(glob.glob(p)) | 32 | files |= set(glob.glob(p)) |
33 | p = sys.argv[2] + "/*/" + s[:2] + "/*" + s + "*" | 33 | p = sys.argv[2] + "/%s/" % sys.argv[4] + s[:2] + "/*" + s + "*" |
34 | files |= set(glob.glob(p)) | 34 | files |= set(glob.glob(p)) |
35 | 35 | ||
36 | print('Processing files') | 36 | print('Processing files') |