From: Daniel Schwierzeck Date: Wed, 23 Jan 2019 18:21:22 +0100 Subject: [U-Boot] [PATCH 3/3] linker: Modify linker scripts to be more generic In-Reply-To: <1548194966-673-3-git-send-email-trini@konsulko.com> References: <1548194966-673-1-git-send-email-trini@konsulko.com> <1548194966-673-3-git-send-email-trini@konsulko.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de Am 22.01.19 um 23:09 schrieb Tom Rini: > 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. >=20 > Cc: Stefano Babic > Cc: Fabio Estevam > Cc: Jagan Teki > Cc: Maxime Ripard > Cc: Andreas Bie=C3=9Fmann > 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 > --- > arch/arm/cpu/arm1136/u-boot-spl.lds | 4 ++-- > arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds | 2 +- > arch/arm/cpu/arm926ejs/orion5x/u-boot-spl.lds | 4 ++-- > arch/arm/cpu/arm926ejs/spear/u-boot-spl.lds | 4 ++-- > arch/arm/cpu/armv7/sunxi/u-boot-spl.lds | 4 ++-- > arch/arm/cpu/armv8/u-boot-spl.lds | 4 ++-- > arch/arm/cpu/u-boot-spl.lds | 4 ++-- > arch/arm/mach-at91/arm926ejs/u-boot-spl.lds | 8 ++++---- > arch/arm/mach-at91/armv7/u-boot-spl.lds | 4 ++-- > arch/arm/mach-omap2/u-boot-spl.lds | 4 ++-- > arch/arm/mach-rockchip/Kconfig | 6 ------ > arch/arm/mach-rockchip/rk3288/u-boot-tpl.lds | 9 --------- > arch/arm/mach-rockchip/rk3368/u-boot-tpl.lds | 12 ------------ > arch/arm/mach-zynq/u-boot-spl.lds | 4 ++-- > arch/mips/cpu/u-boot-spl.lds | 4 ++-- > arch/powerpc/cpu/mpc85xx/u-boot-spl.lds | 6 +----- > arch/x86/cpu/u-boot-spl.lds | 2 +- > board/Barix/ipam390/u-boot-spl-ipam390.lds | 2 +- > board/davinci/da8xxevm/u-boot-spl-da850evm.lds | 2 +- > board/samsung/common/exynos-uboot-spl.lds | 2 +- > common/spl/Kconfig | 2 ++ > scripts/Makefile.spl | 9 +++++++++ > 22 files changed, 41 insertions(+), 61 deletions(-) > delete mode 100644 arch/arm/mach-rockchip/rk3288/u-boot-tpl.lds > delete mode 100644 arch/arm/mach-rockchip/rk3368/u-boot-tpl.lds >=20 for MIPS: Reviewed-by: Daniel Schwierzeck Tested-by: Daniel Schwierzeck --=20 - Daniel