[PATCH v4 02/10] lib: elf: Move the generic elf loading/validating functions to lib

Tom Rini trini at konsulko.com
Fri Jan 24 15:54:09 CET 2020


On Wed, Jan 22, 2020 at 09:29:57AM +0530, Keerthy wrote:
> Move the generic elf loading/validating functions to lib/
> so that they can be re-used and accessed by code existing
> outside cmd.
> 
> Signed-off-by: Keerthy <j-keerthy at ti.com>
> Suggested-by: Simon Goldschmidt <simon.k.r.goldschmidt at gmail.com>
> Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt at gmail.com>
[snip]
> diff --git a/lib/Kconfig b/lib/Kconfig
> index d040a87d26..5ca86cd7fb 100644
> --- a/lib/Kconfig
> +++ b/lib/Kconfig
> @@ -601,4 +601,7 @@ config TEST_FDTDEC
>  config LIB_DATE
>  	bool
>  
> +config LIB_ELF
> +	bool "enable basic elf loading/validating functions"
> +
>  endmenu

This shouldn't be a user-selectable symbol, it should be select'd as
needed.  So no bool text but a help text that mentions what it does
provide is needed.  Thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200124/4cdc415d/attachment.sig>


More information about the U-Boot mailing list