build.sh: Drop distro

This is unmaintained for a long time.

Change-Id: Ia3663bf5541725cc6943ec4ee2ce34c3a3f6ec8c
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
This commit is contained in:
Jeffy Chen
2022-04-26 15:03:27 +08:00
parent 2c9e0a7de2
commit 0fa85a617e
2 changed files with 1 additions and 45 deletions

View File

@ -179,8 +179,6 @@ function usagerootfs()
;;
debian)
;;
distro)
;;
*)
echo "make"
;;
@ -230,7 +228,6 @@ function usage()
echo "multi-npu_boot -build boot image for multi-npu board"
echo "yocto -build yocto rootfs"
echo "debian -build debian rootfs"
echo "distro -build distro rootfs"
echo "pcba -build pcba"
echo "recovery -build recovery"
echo "all -build uboot, kernel, rootfs, recovery image"
@ -711,21 +708,6 @@ function build_debian(){
finish_build
}
function build_distro(){
check_config RK_DISTRO_DEFCONFIG || return 0
echo "===========Start building distro==========="
echo "TARGET_ARCH=$RK_ARCH"
echo "RK_DISTRO_DEFCONFIG=$RK_DISTRO_DEFCONFIG"
echo "========================================"
cd distro
make $RK_DISTRO_DEFCONFIG
/usr/bin/time -f "you take %E to build distro" distro/make.sh
finish_build
}
function build_rootfs(){
check_config RK_ROOTFS_IMG || return 0
@ -746,12 +728,6 @@ function build_rootfs(){
ln -rsf debian/linaro-rootfs.img \
$RK_ROOTFS_DIR/rootfs.ext4
;;
distro)
build_distro
for f in $(ls distro/output/images/rootfs.*);do
ln -rsf $f $RK_ROOTFS_DIR/
done
;;
*)
build_buildroot
for f in $(ls buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.*);do
@ -939,7 +915,6 @@ function build_cleanall(){
cd -
rm -rf buildroot/output
rm -rf yocto/build/tmp
rm -rf distro/output
rm -rf debian/binary
finish_build
@ -1159,7 +1134,7 @@ for option in ${OPTIONS}; do
loader) build_loader ;;
kernel) build_kernel ;;
modules) build_modules ;;
rootfs|buildroot|debian|distro|yocto) build_rootfs $option ;;
rootfs|buildroot|debian|yocto) build_rootfs $option ;;
pcba) build_pcba ;;
ramboot) build_ramboot ;;
recovery) build_recovery ;;

View File

@ -1,19 +0,0 @@
#!/bin/bash
COMMON_DIR=$(cd `dirname $0`; pwd)
if [ -h $0 ]
then
CMD=$(readlink $0)
COMMON_DIR=$(dirname $CMD)
fi
cd $COMMON_DIR
cd ../../..
TOP_DIR=$(pwd)
DEBIAN=$TOP_DIR/distro
sudo $DEBIAN/rkdebootstrap --base $* --shrink --package
if [ $? -ne 0 ]; then
exit 1
fi