rk3568_ubuntu_r60_v1.3.2/debian/mk-base-debian.sh
2023-11-03 06:12:44 +00:00

43 lines
895 B
Bash
Executable File

#!/bin/bash -e
if [ "$RELEASE" == "stretch" ]; then
RELEASE='stretch'
elif [ "$RELEASE" == "buster" ]; then
RELEASE='buster'
else
echo -e "\033[36m please input the os type,stretch, buster or bullseye...... \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