[U-Boot] [PATCH v3 13/15] env: Mark env_get_location as weak

Maxime Ripard maxime.ripard at free-electrons.com
Tue Jan 30 08:18:09 UTC 2018


On Tue, Jan 30, 2018 at 09:12:41AM +0100, Simon Goldschmidt wrote:
> On 23.01.2018 21:17, Maxime Ripard wrote:
> > Allow boards and architectures to override the default environment lookup
> > code by overriding env_get_location.
> 
> Sorry for missing that conversation a bit, but is it really enough to
> override env_get_location?
> Overriding this function should make the env_locations array unused, but
> env_set_inited still references it.

Well, it's not really referenced, there's a build time boundary check
that we do not overflow our bitfield.

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180130/77b64dde/attachment.sig>


More information about the U-Boot mailing list