linker: Modify linker scripts to be more generic
authorTom Rini <trini@konsulko.com>
Tue, 22 Jan 2019 22:09:26 +0000 (17:09 -0500)
committerTom Rini <trini@konsulko.com>
Sun, 27 Jan 2019 03:55:53 +0000 (22:55 -0500)
commit2f41ade79e5969ebea03a7dcadbeae8e03787d7e
treeec8f52ec4aa174bcb6de14419568ead76a47aa2f
parentb32ba6f12e4584b85c55c89000b0ef3fd98473f5
linker: Modify linker scripts to be more generic

Make use of "IMAGE_MAX_SIZE" and "IMAGE_TEXT_BASE" rather than
CONFIG_SPL_MAX_SIZE and CONFIG_SPL_TEXT_BASE.  This lets us re-use the
same script for both SPL and TPL.  Add logic to scripts/Makefile.spl to
pass in the right value when preprocessing the script.

Cc: Stefano Babic <sbabic@denx.de>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Cc: Jagan Teki <jagan@openedev.com>
Cc: Maxime Ripard <maxime.ripard@bootlin.com>
Cc: Andreas Bießmann <andreas@biessmann.org>
Cc: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Cc: Michal Simek <monstr@monstr.eu>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Cc: York Sun <york.sun@nxp.com>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Heiko Schocher <hs@denx.de>
Cc: Adam Ford <aford173@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Tested-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Tested-by: Adam Ford <aford173@gmail.com> #da850evm & omap3_logic_somlv
Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
22 files changed:
arch/arm/cpu/arm1136/u-boot-spl.lds
arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds
arch/arm/cpu/arm926ejs/orion5x/u-boot-spl.lds
arch/arm/cpu/arm926ejs/spear/u-boot-spl.lds
arch/arm/cpu/armv7/sunxi/u-boot-spl.lds
arch/arm/cpu/armv8/u-boot-spl.lds
arch/arm/cpu/u-boot-spl.lds
arch/arm/mach-at91/arm926ejs/u-boot-spl.lds
arch/arm/mach-at91/armv7/u-boot-spl.lds
arch/arm/mach-omap2/u-boot-spl.lds
arch/arm/mach-rockchip/Kconfig
arch/arm/mach-rockchip/rk3288/u-boot-tpl.lds [deleted file]
arch/arm/mach-rockchip/rk3368/u-boot-tpl.lds [deleted file]
arch/arm/mach-zynq/u-boot-spl.lds
arch/mips/cpu/u-boot-spl.lds
arch/powerpc/cpu/mpc85xx/u-boot-spl.lds
arch/x86/cpu/u-boot-spl.lds
board/Barix/ipam390/u-boot-spl-ipam390.lds
board/davinci/da8xxevm/u-boot-spl-da850evm.lds
board/samsung/common/exynos-uboot-spl.lds
common/spl/Kconfig
scripts/Makefile.spl