From 2f41ade79e5969ebea03a7dcadbeae8e03787d7e Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Tue, 22 Jan 2019 17:09:26 -0500 Subject: linker: Modify linker scripts to be more generic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Cc: Fabio Estevam Cc: Jagan Teki Cc: Maxime Ripard Cc: Andreas Bießmann Cc: Philipp Tomsich Cc: Michal Simek Cc: Daniel Schwierzeck Cc: York Sun Cc: Bin Meng Cc: Heiko Schocher Cc: Adam Ford Signed-off-by: Tom Rini Reviewed-by: Daniel Schwierzeck Tested-by: Daniel Schwierzeck Tested-by: Adam Ford #da850evm & omap3_logic_somlv Reviewed-by: Simon Goldschmidt --- board/davinci/da8xxevm/u-boot-spl-da850evm.lds | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'board/davinci') diff --git a/board/davinci/da8xxevm/u-boot-spl-da850evm.lds b/board/davinci/da8xxevm/u-boot-spl-da850evm.lds index f5462f8..7b5fab7 100644 --- a/board/davinci/da8xxevm/u-boot-spl-da850evm.lds +++ b/board/davinci/da8xxevm/u-boot-spl-da850evm.lds @@ -7,7 +7,7 @@ * Guennadi Liakhovetki, DENX Software Engineering, */ -MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE,\ +MEMORY { .sram : ORIGIN = IMAGE_TEXT_BASE,\ LENGTH = CONFIG_SPL_MAX_FOOTPRINT } OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") -- cgit v1.1