[PATCH v3 1/1] Makefile: pass -undef option to cmd_gen_envp

Tom Rini trini at konsulko.com
Fri Feb 23 21:38:04 CET 2024


On Fri, Feb 23, 2024 at 12:42:06PM +0100, Sébastien Szymanski wrote:

> Without the '-undef' option, the 'linux' string in .env files is
> replaced with the string '1 '.
> For example, in the board/armadeus/opos6uldev/opos6uldev.env file,
> 
> kernelimg=opos6ul-linux.bin
> 
> becomes
> 
> kernelimg=opos6ul-1 .bin
> 
> in the include/generated/env.in file.
> 
> That's because 'linux' is a System-specific Predefined Macros. [1]
> 
> Pass the '-undef' option to fix this issue.
> 
> [1] https://gcc.gnu.org/onlinedocs/gcc-13.2.0/cpp/System-specific-Predefined-Macros.html
> 
> Signed-off-by: Sébastien Szymanski <sebastien.szymanski at armadeus.com>

Reviewed-by: Tom Rini <trini at konsulko.com>

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


More information about the U-Boot mailing list