[U-Boot] [PATCH] dts/Makefile: Turn off system-/gcc-specific predefined macros

Wolfgang Denk wd at denx.de
Fri Aug 10 23:50:41 CEST 2012


Dear Horst Kronstorfer,

In message <1342184620-31448-1-git-send-email-hkronsto at frequentis.com> you wrote:
> Add '-undef' to DTS_CPPFLAGS to avoid unwanted expansion of dts content
> that matches system-specific or gcc-specific predefined macros.
> 
> Example: A number of PowerPC related *.dts files in the kernel define a
> property named 'linux,network-index' which (w/o '-undef') is expanded to
> '1,network-index' by the preprocessor because of '#define linux 1.'
> 
> With '-undef' in place only the standard predefined macros are visible:
> 
>  $ gcc -dM -E -undef - </dev/null
>  #define __STDC_HOSTED__ 1
>  #define __STDC__ 1
> 
> Signed-off-by: Horst Kronstorfer <hkronsto at frequentis.com>
> ---
>  dts/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I object to intellect without discipline;  I object to power without
constructive purpose.
	-- Spock, "The Squire of Gothos", stardate 2124.5


More information about the U-Boot mailing list