diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-08-31 11:34:23 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-02 18:09:49 +0100 |
commit | e7b2b7d40da1b9b9c67e6f5b0f4183800c664ddd (patch) | |
tree | bf77f809ff4a29bdd0338b526f9b09106c7dd7d3 /bitbake | |
parent | 26aad57ecec0c4a75f87c2c13cd060b80bac5212 (diff) | |
download | poky-e7b2b7d40da1b9b9c67e6f5b0f4183800c664ddd.tar.gz |
bitbake: fetch2: Handle multiconfig fetcher issues
We need a separate fetcher cache per multiconfig as the revisions and other
SRC_URI data can potentially be different. For now, this is the simplest way
to achieve that and avoids linux-yocto kernel build failures when targeting
multiple machines for example.
(Bitbake rev: d98cc31d6668bc1d6372664593126b5e5132ef2c)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 65c426f8fb..11c75cc723 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
@@ -1506,8 +1506,9 @@ class Fetch(object): | |||
1506 | self.connection_cache = connection_cache | 1506 | self.connection_cache = connection_cache |
1507 | 1507 | ||
1508 | fn = d.getVar('FILE', True) | 1508 | fn = d.getVar('FILE', True) |
1509 | if cache and fn and fn in urldata_cache: | 1509 | mc = d.getVar('__BBMULTICONFIG', True) or "" |
1510 | self.ud = urldata_cache[fn] | 1510 | if cache and fn and mc + fn in urldata_cache: |
1511 | self.ud = urldata_cache[mc + fn] | ||
1511 | 1512 | ||
1512 | for url in urls: | 1513 | for url in urls: |
1513 | if url not in self.ud: | 1514 | if url not in self.ud: |
@@ -1519,7 +1520,7 @@ class Fetch(object): | |||
1519 | pass | 1520 | pass |
1520 | 1521 | ||
1521 | if fn and cache: | 1522 | if fn and cache: |
1522 | urldata_cache[fn] = self.ud | 1523 | urldata_cache[mc + fn] = self.ud |
1523 | 1524 | ||
1524 | def localpath(self, url): | 1525 | def localpath(self, url): |
1525 | if url not in self.urls: | 1526 | if url not in self.urls: |