summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-30 20:48:58 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-31 09:15:03 +0100
commit1b2df6e9425523050537ac12372de5d0aa5bb59d (patch)
tree75f3dc4528e77a1eb34e4bc3472270114065ec6d
parentf719386841229e291e1284387abe1b4ccc5d445a (diff)
downloadpoky-1b2df6e9425523050537ac12372de5d0aa5bb59d.tar.gz
uninative: Switch md5sum -> sha256
There are various concerns about md5 so use sha256 instead. (From OE-Core rev: a88603cb2ffd4f995e16349a389902eb884252e5) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/populate_sdk_ext.bbclass2
-rw-r--r--meta/classes/uninative.bbclass2
-rw-r--r--meta/conf/distro/include/yocto-uninative.inc4
3 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass
index cabf8155b4..0ea974d4ff 100644
--- a/meta/classes/populate_sdk_ext.bbclass
+++ b/meta/classes/populate_sdk_ext.bbclass
@@ -328,7 +328,7 @@ install_tools() {
328 install $buildtools_path ${SDK_OUTPUT}/${SDKPATH} 328 install $buildtools_path ${SDK_OUTPUT}/${SDKPATH}
329 329
330 # For now this is where uninative.bbclass expects the tarball 330 # For now this is where uninative.bbclass expects the tarball
331 chksum=`md5sum ${SDK_DEPLOY}/${BUILD_ARCH}-nativesdk-libc.tar.bz2 | cut -f 1 -d ' '` 331 chksum=`sha256sum ${SDK_DEPLOY}/${BUILD_ARCH}-nativesdk-libc.tar.bz2 | cut -f 1 -d ' '`
332 install -d ${SDK_OUTPUT}/${SDKPATH}/downloads/uninative/$chksum/ 332 install -d ${SDK_OUTPUT}/${SDKPATH}/downloads/uninative/$chksum/
333 install ${SDK_DEPLOY}/${BUILD_ARCH}-nativesdk-libc.tar.bz2 ${SDK_OUTPUT}/${SDKPATH}/downloads/uninative/$chksum/ 333 install ${SDK_DEPLOY}/${BUILD_ARCH}-nativesdk-libc.tar.bz2 ${SDK_OUTPUT}/${SDKPATH}/downloads/uninative/$chksum/
334 echo "UNINATIVE_CHECKSUM[${BUILD_ARCH}] = '$chksum'" >> ${SDK_OUTPUT}/${SDKPATH}/conf/local.conf 334 echo "UNINATIVE_CHECKSUM[${BUILD_ARCH}] = '$chksum'" >> ${SDK_OUTPUT}/${SDKPATH}/conf/local.conf
diff --git a/meta/classes/uninative.bbclass b/meta/classes/uninative.bbclass
index 0798717714..89cec07d78 100644
--- a/meta/classes/uninative.bbclass
+++ b/meta/classes/uninative.bbclass
@@ -60,7 +60,7 @@ python uninative_event_fetchloader() {
60 localdata.setVar('FILESPATH', "") 60 localdata.setVar('FILESPATH', "")
61 localdata.setVar('DL_DIR', tarballdir) 61 localdata.setVar('DL_DIR', tarballdir)
62 62
63 srcuri = d.expand("${UNINATIVE_URL}${UNINATIVE_TARBALL};md5sum=%s" % chksum) 63 srcuri = d.expand("${UNINATIVE_URL}${UNINATIVE_TARBALL};sha256sum=%s" % chksum)
64 bb.note("Fetching uninative binary shim from %s" % srcuri) 64 bb.note("Fetching uninative binary shim from %s" % srcuri)
65 65
66 fetcher = bb.fetch2.Fetch([srcuri], localdata, cache=False) 66 fetcher = bb.fetch2.Fetch([srcuri], localdata, cache=False)
diff --git a/meta/conf/distro/include/yocto-uninative.inc b/meta/conf/distro/include/yocto-uninative.inc
index 122a944a29..85e613ac45 100644
--- a/meta/conf/distro/include/yocto-uninative.inc
+++ b/meta/conf/distro/include/yocto-uninative.inc
@@ -7,5 +7,5 @@
7# 7#
8 8
9UNINATIVE_URL = "http://downloads.yoctoproject.org/releases/uninative/0.95/" 9UNINATIVE_URL = "http://downloads.yoctoproject.org/releases/uninative/0.95/"
10UNINATIVE_CHECKSUM[i686] ?= "dd09aebeda3eac4e9140cdc327f28ed1" 10UNINATIVE_CHECKSUM[i686] ?= "5f27d7e0f4dd2ed80a7ff6a0d88af107b08e00765b31ed3aa180cc5ce15b0811"
11UNINATIVE_CHECKSUM[x86_64] ?= "4b6fb2106c2f18b8f9c8ac67e1cf9e57" 11UNINATIVE_CHECKSUM[x86_64] ?= "26d46c61ad88cc245e31c88549717c0092a838d111b93ec169d88b08cc027581"