diff options
-rwxr-xr-x | build.sh | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -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 |