From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Wed, 18 Jul 2012 23:22:04 -0400 Subject: [U-Boot] [PATCH] dts/Makefile: Turn off system-/gcc-specific predefined macros In-Reply-To: <1342184620-31448-1-git-send-email-hkronsto@frequentis.com> References: <1342184620-31448-1-git-send-email-hkronsto@frequentis.com> Message-ID: <201207182322.05798.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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. -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: