-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmk-base-debian.sh
executable file
·46 lines (36 loc) · 1 KB
/
mk-base-debian.sh
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
#!/bin/bash -e
if [ "$RELEASE" == "stretch" ]; then
RELEASE='stretch'
elif [ "$RELEASE" == "buster" ]; then
RELEASE='buster'
elif [ "$RELEASE" == "bullseye" ]; then
RELEASE='bullseye'
elif [ "$RELEASE" == "bookworm" ]; then
RELEASE='bookworm'
else
echo -e "\033[36m please input the os type: stretch, buster, bullseye or bookworm...... \033[0m"
fi
if [ "$ARCH" == "armhf" ]; then
ARCH='armhf'
elif [ "$ARCH" == "arm64" ]; then
ARCH='arm64'
else
echo -e "\033[36m please input the os type,armhf or arm64...... \033[0m"
fi
if [ ! $TARGET ]; then
TARGET='desktop'
fi
if [ -e linaro-$RELEASE-alip-*.tar.gz ]; then
rm linaro-$RELEASE-alip-*.tar.gz
fi
cd ubuntu-build-service/$RELEASE-$TARGET-$ARCH
echo -e "\033[36m Staring Download...... \033[0m"
make clean
./configure
make
if [ -e linaro-$RELEASE-alip-*.tar.gz ]; then
sudo chmod 0666 linaro-$RELEASE-alip-*.tar.gz
mv linaro-$RELEASE-alip-*.tar.gz ../../
else
echo -e "\e[31m Failed to run livebuild, please check your network connection. \e[0m"
fi