mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
08e09222b2
commit
07ac146c90
@@ -36,11 +36,15 @@ python () {
|
|||||||
else:
|
else:
|
||||||
d.setVar('B', '${WORKDIR}/${BPN}-${PV}/')
|
d.setVar('B', '${WORKDIR}/${BPN}-${PV}/')
|
||||||
|
|
||||||
srcuri = (d.getVar('SRC_URI', True) or '').split()
|
|
||||||
local_srcuri = []
|
local_srcuri = []
|
||||||
for uri in srcuri:
|
fetch = bb.fetch2.Fetch((d.getVar('SRC_URI', True) or '').split(), d)
|
||||||
if uri.startswith('file://'):
|
for url in fetch.urls:
|
||||||
local_srcuri.append(uri)
|
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))
|
d.setVar('SRC_URI', ' '.join(local_srcuri))
|
||||||
|
|
||||||
if '{SRCPV}' in d.getVar('PV', False):
|
if '{SRCPV}' in d.getVar('PV', False):
|
||||||
|
|||||||
Reference in New Issue
Block a user