diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2015-09-08 13:58:12 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-09 14:27:49 +0100 |
commit | 07ac146c9045dbcce6dc006b2d68492744b60fd0 (patch) | |
tree | 6c10606510aa7e6a0c09c8aa96c24e3379d977c9 /meta | |
parent | 08e09222b2b8a0ac4f60f02c002b185318a2110b (diff) | |
download | poky-07ac146c9045dbcce6dc006b2d68492744b60fd0.tar.gz |
extrernalsrc.bbclass: treat kernel meta like local source
Kernel metadata repository needs to be fetched/unpacked into the work
directory in order to build the kernel. Sources pointing to a remote
location are skipped by externalsrc by default which caused kernel build
to fail (because of remote kernel-meta was not made availeble). This
patch will make kernel-meta always available.
[YOCTO #6658]
(From OE-Core rev: b746280c955f48835d119f3fe637876faae6df97)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/externalsrc.bbclass | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass index 8f7f479293..37c6320fca 100644 --- a/meta/classes/externalsrc.bbclass +++ b/meta/classes/externalsrc.bbclass | |||
@@ -36,11 +36,15 @@ python () { | |||
36 | else: | 36 | else: |
37 | d.setVar('B', '${WORKDIR}/${BPN}-${PV}/') | 37 | d.setVar('B', '${WORKDIR}/${BPN}-${PV}/') |
38 | 38 | ||
39 | srcuri = (d.getVar('SRC_URI', True) or '').split() | ||
40 | local_srcuri = [] | 39 | local_srcuri = [] |
41 | for uri in srcuri: | 40 | fetch = bb.fetch2.Fetch((d.getVar('SRC_URI', True) or '').split(), d) |
42 | if uri.startswith('file://'): | 41 | for url in fetch.urls: |
43 | local_srcuri.append(uri) | 42 | url_data = fetch.ud[url] |
43 | parm = url_data.parm | ||
44 | if (url_data.type == 'file' or | ||
45 | 'type' in parm and parm['type'] == 'kmeta'): | ||
46 | local_srcuri.append(url) | ||
47 | |||
44 | d.setVar('SRC_URI', ' '.join(local_srcuri)) | 48 | d.setVar('SRC_URI', ' '.join(local_srcuri)) |
45 | 49 | ||
46 | if '{SRCPV}' in d.getVar('PV', False): | 50 | if '{SRCPV}' in d.getVar('PV', False): |