summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2015-09-08 13:58:12 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-09 14:25:01 +0100
commitb746280c955f48835d119f3fe637876faae6df97 (patch)
treefa9a5093dead518538886b9a21a79a21373a89b9
parent8683e198829b729b2f242336d9de6d79251b4be9 (diff)
downloadopenembedded-core-contrib-b746280c955f48835d119f3fe637876faae6df97.tar.gz
openembedded-core-contrib-b746280c955f48835d119f3fe637876faae6df97.tar.bz2
openembedded-core-contrib-b746280c955f48835d119f3fe637876faae6df97.zip
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] Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/externalsrc.bbclass12
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 () {
else:
d.setVar('B', '${WORKDIR}/${BPN}-${PV}/')
- srcuri = (d.getVar('SRC_URI', True) or '').split()
local_srcuri = []
- for uri in srcuri:
- if uri.startswith('file://'):
- local_srcuri.append(uri)
+ fetch = bb.fetch2.Fetch((d.getVar('SRC_URI', True) or '').split(), d)
+ for url in fetch.urls:
+ url_data = fetch.ud[url]
+ parm = url_data.parm
+ if (url_data.type == 'file' or
+ 'type' in parm and parm['type'] == 'kmeta'):
+ local_srcuri.append(url)
+
d.setVar('SRC_URI', ' '.join(local_srcuri))
if '{SRCPV}' in d.getVar('PV', False):