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

Mike Frysinger vapier at gentoo.org
Tue Jul 24 17:28:11 CEST 2012


On Tuesday 24 July 2012 06:11:04 Horst Kronstorfer wrote:
> On 07/19/2012 05:22 AM, Mike Frysinger wrote:
> > On Friday 13 July 2012 09:03:40 Horst Kronstorfer 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.'
> > 
> > i think you should use -ansi instead.  that's what we use in other places
> > for the same reason.
> 
> this would increase the probability of a name clash.

no idea what you're talking about.  have you actually looked at the output of 
`gcc -E -dD -ansi` ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120724/a16a7581/attachment.pgp>


More information about the U-Boot mailing list