-
Notifications
You must be signed in to change notification settings - Fork 2
/
openwrt.sdk.download
executable file
·54 lines (33 loc) · 1.16 KB
/
openwrt.sdk.download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
## hyphop ##
. ./,config
#https://github.com/hyphop/pkg/releases/download/mirror/OpenWrt-SDK-sunxi_gcc-5.3.0_musl-1.1.16_eabi.Linux-x86_64.squashfs
#https://github.com/hyphop/pkg/releases/download/mirror/toolchain-arm_cortex-a8.vfpv3_gcc-5.3.0_musl-1.1.16_eabi.squashfs
[ -f $squash_src ] || {
echo "[i] download $squash_src"
wget -c $download_base$ow_sdk_squash -O $squash_src
}
[ -f $tc_squash ] || {
echo "[i] download $tc_squash_name"
wget -c $download_base$tc_squash_name -O $tc_squash
}
[ -f $squash_src ] || {
echo "[i] download $ow_base/$ow_sdk.tar.bz2"
wget -q -c -O ../$ow_sdk.tar.bz2 $ow_base/$ow_sdk.tar.bz2
echo "[i] unpack $ow_sdk.tar.bz2"
tar -xf ../$ow_sdk.tar.bz2
[ -f $tc_squash ] || {
echo "[i] generate $tc_squash"
mksquashfs $ow_sdk/staging_dir/$tc_ow $tc_squash -comp xz
}
rm -rf $ow_sdk/staging_dir/$tc_ow
ln -s ../../../$tc $ow_sdk/staging_dir/$tc_ow
echo "[i] generate $squash_src"
mksquashfs $ow_sdk $squash_src -comp xz
echo "[i] clear $ow_sdk*"
rm -rf $ow_sdk
rm ../$ow_sdk.tar.bz2
}
[ -f $squash_src ] && {
echo "[i] ok $squash_src found" >&2
}