build.sh: Support overriding debian rootfs arch
Use RK_DEBIAN_ARCH board config to override it. Change-Id: Idb0f52f3ae81e33cffd413a745c91fb010f9add2 Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
This commit is contained in:
@ -494,16 +494,19 @@ function build_yocto(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
function build_debian(){
|
function build_debian(){
|
||||||
echo "=========Start building debian========="
|
ARCH=${RK_DEBIAN_ARCH:-${RK_ARCH}}
|
||||||
|
case $ARCH in
|
||||||
case $RK_ARCH in
|
arm|armhf) ARCH=armhf ;;
|
||||||
arm) ARCH=armhf ;;
|
|
||||||
*) ARCH=arm64 ;;
|
*) ARCH=arm64 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
echo "=========Start building debian for $ARCH========="
|
||||||
|
|
||||||
cd debian
|
cd debian
|
||||||
[ ! -e linaro-buster-alip-*.tar.gz ] && \
|
if [ ! -e linaro-buster-$ARCH.tar.gz ]; then
|
||||||
RELEASE=buster TARGET=desktop ARCH=$ARCH ./mk-base-debian.sh
|
RELEASE=buster TARGET=desktop ARCH=$ARCH ./mk-base-debian.sh
|
||||||
|
ln -rsf linaro-buster-alip-*.tar.gz linaro-buster-$ARCH.tar.gz
|
||||||
|
fi
|
||||||
|
|
||||||
VERSION=debug ARCH=$ARCH ./mk-rootfs-buster.sh
|
VERSION=debug ARCH=$ARCH ./mk-rootfs-buster.sh
|
||||||
./mk-image.sh
|
./mk-image.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user