From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] dts/Makefile: Turn off system-/gcc-specific predefined macros
Date: Fri, 10 Aug 2012 23:50:41 +0200 [thread overview]
Message-ID: <20120810215041.B9AB8202DBF@gemini.denx.de> (raw)
In-Reply-To: <1342184620-31448-1-git-send-email-hkronsto@frequentis.com>
Dear Horst Kronstorfer,
In message <1342184620-31448-1-git-send-email-hkronsto@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@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
prev parent reply other threads:[~2012-08-10 21:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-13 13:03 [U-Boot] [PATCH] dts/Makefile: Turn off system-/gcc-specific predefined macros Horst Kronstorfer
2012-07-19 3:22 ` Mike Frysinger
2012-07-24 10:11 ` Horst Kronstorfer
2012-07-24 15:28 ` Mike Frysinger
2012-07-24 19:38 ` Horst Kronstorfer
2012-07-25 16:06 ` Mike Frysinger
2012-07-26 7:06 ` Horst Kronstorfer
2012-07-26 16:23 ` Mike Frysinger
2012-07-26 21:26 ` [U-Boot] [PATCH,v2] dts/Makefile: Turn off some " Horst Kronstorfer
2012-08-10 21:53 ` [U-Boot] [PATCH, v2] " Wolfgang Denk
2012-08-10 21:50 ` Wolfgang Denk [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120810215041.B9AB8202DBF@gemini.denx.de \
--to=wd@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox