make.sh: add rk1806 build support

Build cmd: ./make.sh rk1806

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: If04fd324b4ce8e196e711e50275dd26b0919655b
This commit is contained in:
Joseph Chen 2019-11-22 17:37:34 +08:00
parent 4887899d2f
commit 783f7f6ecf
1 changed files with 21 additions and 1 deletions

22
make.sh
View File

@ -375,6 +375,8 @@ select_chip_info()
&& RKCHIP=PX5
grep '^CONFIG_ROCKCHIP_RK3399PRO=y' ${OUTDIR}/.config >/dev/null \
&& RKCHIP=RK3399PRO
grep '^CONFIG_ROCKCHIP_RK1806=y' ${OUTDIR}/.config >/dev/null \
&& RKCHIP=RK1806
else
echo "Can't get Rockchip SoC definition in .config"
exit 1
@ -567,7 +569,6 @@ pack_uboot_image()
if [ -f ${OUTDIR}/u-boot-dtb.img ]; then
rm ${OUTDIR}/u-boot-dtb.img
fi
echo "pack uboot okay! Input: ${OUTDIR}/u-boot.bin"
}
@ -673,6 +674,15 @@ pack_loader_image()
fi
ls *_loader_*.bin >/dev/null 2>&1 && rm *_loader_*.bin
numline=`cat $ini | wc -l`
if [ $numline -eq 1 ]; then
image=`sed -n "/PATH=/p" $ini | tr -d '\r' | cut -d '=' -f 2`
cp ${RKBIN}/${image} ./
echo "pack trust okay! Input: ${ini}"
return;
fi
cd ${RKBIN}
if [ "${mode}" = 'all' ]; then
@ -762,6 +772,7 @@ pack_trust_image()
local mode=$1 files ini
ls trust*.img >/dev/null 2>&1 && rm trust*.img
# ARM64 uses trust_merger
if grep -Eq ''^CONFIG_ARM64=y'|'^CONFIG_ARM64_BOOT_AARCH32=y'' ${OUTDIR}/.config ; then
ini=${RKBIN}/RKTRUST/${RKCHIP_TRUST}TRUST.ini
@ -769,6 +780,14 @@ pack_trust_image()
ini=$FILE;
fi
numline=`cat $ini | wc -l`
if [ $numline -eq 1 ]; then
image=`sed -n "/PATH=/p" $ini | tr -d '\r' | cut -d '=' -f 2`
cp ${RKBIN}/${image} ./trust.img
echo "pack trust okay! Input: ${ini}"
return;
fi
if [ "${mode}" = 'all' ]; then
files=`ls ${RKBIN}/RKTRUST/${RKCHIP_TRUST}TRUST*.ini`
for ini in $files
@ -784,6 +803,7 @@ pack_trust_image()
if [ "$FILE" != "" ]; then
ini=$FILE;
fi
if [ "${mode}" = 'all' ]; then
files=`ls ${RKBIN}/RKTRUST/${RKCHIP_TRUST}TOS*.ini`
for ini in $files