make.sh: delete unused similar files and add support list show
Change-Id: I24b1a05f6a321d2f409c25822b7dbbba5e1ae6d6 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
parent
147a6b4de7
commit
7c19369d03
16
make.sh
16
make.sh
|
|
@ -5,6 +5,7 @@ SUBCMD=$2
|
|||
RKCHIP=${BOARD##*-}
|
||||
RKCHIP=$(echo ${RKCHIP} | tr '[a-z]' '[A-Z]')
|
||||
JOB=`sed -n "N;/processor/p" /proc/cpuinfo|wc -l`
|
||||
SUPPROT_LIST=`ls configs/*-r[v,k][0-9][0-9][0-9][0-9]_defconfig`
|
||||
|
||||
# Declare global default output dir and cmd, update in prepare()
|
||||
OUTDIR=.
|
||||
|
|
@ -42,6 +43,11 @@ prepare()
|
|||
exit 1
|
||||
elif [ ! -f configs/${BOARD}_defconfig ]; then
|
||||
echo "Can't find: configs/${BOARD}_defconfig"
|
||||
echo
|
||||
echo "*************** Support list ***************"
|
||||
echo "$SUPPROT_LIST"
|
||||
echo "********************************************"
|
||||
echo
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
@ -134,7 +140,15 @@ pack_uboot_image()
|
|||
|
||||
UBOOT_LOAD_ADDR=`sed -n "/CONFIG_SYS_TEXT_BASE=/s/CONFIG_SYS_TEXT_BASE=//p" ${OUTDIR}/include/autoconf.mk|tr -d '\r'`
|
||||
${TOOLCHAIN_RKBIN}/loaderimage --pack --uboot ${OUTDIR}/u-boot.bin uboot.img ${UBOOT_LOAD_ADDR}
|
||||
rm ${OUTDIR}/u-boot.img ${OUTDIR}/u-boot-dtb.img
|
||||
|
||||
if [ -f ${OUTDIR}/u-boot.img ]; then
|
||||
rm ${OUTDIR}/u-boot.img
|
||||
fi
|
||||
|
||||
if [ -f ${OUTDIR}/u-boot-dtb.img ]; then
|
||||
rm ${OUTDIR}/u-boot-dtb.img
|
||||
fi
|
||||
|
||||
echo "pack uboot okay! Input: ${OUTDIR}/u-boot.bin"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue