summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2018-02-26 00:21:41 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2018-02-26 00:21:41 +0100
commit74a9830d702fe6ef332f2315a3b38f44ba2bde7d (patch)
tree1ba334113f64a58fa3a9d535131c56cd4ac404be
parent2e9a54bda7844f2047a4585366c7f8252afd2089 (diff)
Download sdk
-rwxr-xr-xbuild.sh14
1 files changed, 8 insertions, 6 deletions
diff --git a/build.sh b/build.sh
index 2af614d..c703a56 100755
--- a/build.sh
+++ b/build.sh
@@ -15,7 +15,7 @@ rootfs_url=https://downloads.openwrt.org/releases/${ver}/targets/${arch}/${subar
rootfs_sum=43886c6b4a555719603286ceb1733ea2386d43b095ab0da9be35816cd2ad8959
rootfs=dl/$(basename $rootfs_url)
-sdk_url=https://downloads.openwrt.org/releases/${ver}/targets/${arch}/${subarch}/${dist}-sdk-${ver}-${arch}-${subarch}_gcc-5.4.0_musl-1.1.16.Linux--${arch}_${subarch}.tar.xz
+sdk_url=https://downloads.openwrt.org/releases/${ver}/targets/${arch}/${subarch}/${dist}-sdk-${ver}-${arch}-${subarch}_gcc-5.4.0_musl-1.1.16.Linux-${arch}_${subarch}.tar.xz
sdk_sum=ef8b801f756cf2aa354198df0790ab6858b3d70b97cc3c00613fd6e5d5bb100c
sdk_tar=dl/$(basename $sdk_url)
@@ -24,6 +24,12 @@ metadata=metadata.yaml
download_rootfs() {
download $rootfs_url $rootfs
+ check $rootfs $rootfs_sum
+}
+
+download_sdk() {
+ download $sdk_url $sdk_tar
+ check $sdk_tar $sdk_sum
}
download() {
@@ -39,10 +45,6 @@ download() {
fi
}
-check_rootfs() {
- check $rootfs $rootfs_sum
-}
-
check() {
dst=$1
dst_sum=$2
@@ -87,7 +89,7 @@ build_image() {
}
download_rootfs
-check_rootfs
+download_sdk
build_metadata
build_tarball
build_image