From: Tom Rini Date: Thu, 24 Jan 2019 07:21:44 -0500 Subject: [U-Boot] [PATCH 3/3] linker: Modify linker scripts to be more generic In-Reply-To: References: <1548194966-673-1-git-send-email-trini@konsulko.com> <1548194966-673-3-git-send-email-trini@konsulko.com> Message-ID: <20190124122144.GF6906@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de On Thu, Jan 24, 2019 at 12:46:32PM +0100, Simon Goldschmidt wrote: > On Tue, Jan 22, 2019 at 11:10 PM Tom Rini wrote: > > > > 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=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 >=20 > Reviewed-by: Simon Goldschmidt >=20 > However, given that it's now "not allowed" to use OF_EMBED, how useful > is the current size check? Because if done in the linker, it does not inc= lude > the DTB. >=20 > I think we might need to move the MAX_SIZE check into the Makefile, > much like CONFIG_BOARD_SIZE_LIMIT. I was thinking about that too at one point and yes, there is follow-up work to move that BOARD_SIZE_LIMIT code such that we don't have multiple copies of it and hook more platforms into it. --=20 Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: