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:
parent
c5449fd30c
commit
daa679a7e4
4
make.sh
4
make.sh
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue