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

Tom Rini trini at konsulko.com
Mon Mar 4 16:29:16 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>

Applied to u-boot/next, thanks!

-- 
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/20240304/b39b5a6d/attachment.sig>


More information about the U-Boot mailing list