ubuntu 存在ubuntu-rootfs.img时跳过镜像构建

This commit is contained in:
hejiawencc
2022-05-16 15:53:21 +08:00
parent e3b1c6524d
commit a094ecdb7f

View File

@ -691,14 +691,22 @@ function build_ubuntu(){
echo "=========Start building ubuntu for $ARCH========="
echo "==== RK_UBUNTU_VERSION: $RK_UBUNTU_VERSION ARCH: $ARCH ===="
cd ubuntu
if [ ! -e ubuntu-base-$RK_ROOTFS_TARGET-$ARCH.tar.gz ]; then
ARCH=arm64 ./mk-base-$RK_ROOTFS_TARGET-ubuntu.sh
if [ ! -e ubuntu-rootfs.img ]; then
echo "[ No ubuntu-rootfs.img, Run Make Ubuntu Scripts ]"
if [ ! -e ubuntu-base-$RK_ROOTFS_TARGET-$ARCH.tar.gz ]; then
ARCH=arm64 ./mk-base-$RK_ROOTFS_TARGET-ubuntu.sh
fi
VERSION=debug ARCH=arm64 MALI=$RK_ROOTFS_GPU ./mk-$RK_ROOTFS_TARGET-rootfs.sh
./mk-image.sh
else
echo "[ Already Exists IMG, Skip Make Ubuntu Scripts ]"
echo "[ Delate ubuntu-rootfs.img To Rebuild Ubuntu IMG ]"
fi
VERSION=debug ARCH=arm64 ./mk-$RK_ROOTFS_TARGET-rootfs.sh
./mk-image.sh
finish_build
}