rockchip: make.sh: get CONFIG_SYS_TEXT_BASE from .config

CONFIG_SYS_TEXT_BASE define in header file has be deprecate on
mainline, it has been move to Kconfig.

Change-Id: I40ae0ab84dbc6d74eca3450413fc2d11eb098434
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
Kever Yang 2019-03-27 18:08:15 +08:00
parent c5449fd30c
commit daa679a7e4
1 changed files with 4 additions and 0 deletions

View File

@ -507,6 +507,10 @@ pack_uboot_image()
local UBOOT_LOAD_ADDR
UBOOT_LOAD_ADDR=`sed -n "/CONFIG_SYS_TEXT_BASE=/s/CONFIG_SYS_TEXT_BASE=//p" ${OUTDIR}/include/autoconf.mk|tr -d '\r'`
if [ ! $UBOOT_LOAD_ADDR ]; then
UBOOT_LOAD_ADDR=`sed -n "/CONFIG_SYS_TEXT_BASE=/s/CONFIG_SYS_TEXT_BASE=//p" ${OUTDIR}/.config|tr -d '\r'`
fi
${RKTOOLS}/loaderimage --pack --uboot ${OUTDIR}/u-boot.bin uboot.img ${UBOOT_LOAD_ADDR} ${PLATFORM_UBOOT_IMG_SIZE}
# Delete u-boot.img and u-boot-dtb.img, which makes users not be confused with final uboot.img