summaryrefslogtreecommitdiffstats
path: root/meta/classes/externalsrc.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/externalsrc.bbclass')
-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 () {
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):