summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-01 11:14:14 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-03 11:14:13 +0100
commit64d15c298dd46e9ba200d77de6d0ab96ec24588c (patch)
tree131a5543395d34a3d378febeece60eb0967a09e9 /meta/classes
parent914a53cc94c8977b348fd06de12a519187f90ca5 (diff)
downloadpoky-64d15c298dd46e9ba200d77de6d0ab96ec24588c.tar.gz
uninative: Allow a local own-mirror to work with uninative
The games we play with path manipulation of DL_DIR in uninative mean standard PREMIRRORS don't work and we can't easily put 'chksum' into the url path from a url parameter with the current fetcher url handling to make a generic remapping. We therefore add to PREMIRRORS when we know the chksum to create a premirror mapping which can work. [YOCTO #9888] (From OE-Core rev: 3b0309dbb5d52e9d7abf6fd89cc999ac4cc5d2fb) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/uninative.bbclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/uninative.bbclass b/meta/classes/uninative.bbclass
index 8f3448336f..a410647328 100644
--- a/meta/classes/uninative.bbclass
+++ b/meta/classes/uninative.bbclass
@@ -49,6 +49,12 @@ python uninative_event_fetchloader() {
49 localdata = bb.data.createCopy(d) 49 localdata = bb.data.createCopy(d)
50 localdata.setVar('FILESPATH', "") 50 localdata.setVar('FILESPATH', "")
51 localdata.setVar('DL_DIR', tarballdir) 51 localdata.setVar('DL_DIR', tarballdir)
52 # Our games with path manipulation of DL_DIR mean standard PREMIRRORS don't work
53 # and we can't easily put 'chksum' into the url path from a url parameter with
54 # the current fetcher url handling
55 ownmirror = d.getVar('SOURCE_MIRROR_URL')
56 if ownmirror:
57 localdata.appendVar("PREMIRRORS", " ${UNINATIVE_URL}${UNINATIVE_TARBALL} ${SOURCE_MIRROR_URL}/uninative/%s/${UNINATIVE_TARBALL}" % chksum)
52 58
53 srcuri = d.expand("${UNINATIVE_URL}${UNINATIVE_TARBALL};sha256sum=%s" % chksum) 59 srcuri = d.expand("${UNINATIVE_URL}${UNINATIVE_TARBALL};sha256sum=%s" % chksum)
54 bb.note("Fetching uninative binary shim from %s" % srcuri) 60 bb.note("Fetching uninative binary shim from %s" % srcuri)