[PATCH] Makefile: fix host CPP pollution in cmd_gen_envp

Tom Rini trini at konsulko.com
Fri Apr 24 20:50:54 CEST 2026


On Fri, 17 Apr 2026 16:45:09 -0600, Levi Shafter wrote:

> Commit 2956a84 ("Makefile: don't use CFLAGS for environment text file")
> switched cmd_gen_envp to use $(cpp_flags) so that KCPPFLAGS would be
> honored when preprocessing the environment text file. However,
> cpp_flags also includes $(PLATFORM_CPPFLAGS), which carries
> architecture-specific flags such as -march=armv8-a+crc set by
> arch/arm/Makefile for CONFIG_ARM64_CRC32=y targets. These flags are
> appropriate for cross-compiled object files but cause the host CPP
> invocation to fail on x86 build machines:
> 
> [...]

Applied to u-boot/master, thanks!

[1/1] Makefile: fix host CPP pollution in cmd_gen_envp
      commit: 9f61fd5b80a43ae20ba115e3a2933d47d720ab82
-- 
Tom




More information about the U-Boot mailing list