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/Barix/ipam390/u-boot-spl-ipam390.lds | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'board/Barix') diff --git a/board/Barix/ipam390/u-boot-spl-ipam390.lds b/board/Barix/ipam390/u-boot-spl-ipam390.lds index cf13e0a41c..06ed3fa89f 100644 --- a/board/Barix/ipam390/u-boot-spl-ipam390.lds +++ b/board/Barix/ipam390/u-boot-spl-ipam390.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