From: Max Filippov <jcmvbkbc@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/8] Makefile: allow overriding '-ansi' in LDPPFLAGS
Date: Wed, 20 Aug 2014 21:42:09 +0400 [thread overview]
Message-ID: <1408556533-22433-5-git-send-email-jcmvbkbc@gmail.com> (raw)
In-Reply-To: <1408556533-22433-1-git-send-email-jcmvbkbc@gmail.com>
xtensa linker script cannot be preprocessed with -ansi option specified,
so xtensa needs a way to override it.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 666d291..344492f 100644
--- a/Makefile
+++ b/Makefile
@@ -209,6 +209,7 @@ HOSTCXXFLAGS = -O2
ifeq ($(HOSTOS),cygwin)
HOSTCFLAGS += -ansi
endif
+LDPPFLAGS += -ansi
# Mac OS X / Darwin's C preprocessor is Apple specific. It
# generates numerous errors and warnings. We want to bypass it
@@ -1121,7 +1122,7 @@ depend dep:
# ---------------------------------------------------------------------------
quiet_cmd_cpp_lds = LDS $@
-cmd_cpp_lds = $(CPP) -Wp,-MD,$(depfile) $(cpp_flags) $(LDPPFLAGS) -ansi \
+cmd_cpp_lds = $(CPP) -Wp,-MD,$(depfile) $(cpp_flags) $(LDPPFLAGS) \
-D__ASSEMBLY__ -x assembler-with-cpp -P -o $@ $<
u-boot.lds: $(LDSCRIPT) prepare FORCE
--
1.8.1.4
next prev parent reply other threads:[~2014-08-20 17:42 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-20 17:42 [U-Boot] [PATCH 0/8] U-Boot port to Xtensa architecture Max Filippov
2014-08-20 17:42 ` [U-Boot] [PATCH 1/8] net/ethoc: support private memory configurations Max Filippov
2014-08-20 17:42 ` [U-Boot] [PATCH 2/8] net/ethoc: fix warnings from ethoc_read/ethoc_write Max Filippov
2014-08-20 17:42 ` [U-Boot] [PATCH 3/8] net/ethoc: don't advertise gigabit on the connected PHY Max Filippov
2014-08-20 17:42 ` Max Filippov [this message]
2014-08-20 17:42 ` [U-Boot] [PATCH 5/8] xtensa: add support for the xtensa processor architecture [1/2] Max Filippov
2014-08-20 17:42 ` [U-Boot] [PATCH 6/8] xtensa: add support for the xtensa processor architecture [2/2] Max Filippov
2014-09-01 5:02 ` Simon Glass
2014-09-01 20:16 ` Max Filippov
2014-08-20 17:42 ` [U-Boot] [PATCH 7/8] xtensa: add core information for the dc232b processor Max Filippov
2014-08-20 17:42 ` [U-Boot] [PATCH 8/8] xtensa: add support for the 'xtfpga' evaluation board Max Filippov
2014-08-27 20:59 ` [U-Boot] [PATCH 0/8] U-Boot port to Xtensa architecture Max Filippov
2014-08-28 19:52 ` Tom Rini
2014-08-29 11:50 ` Michal Simek
2014-08-29 12:25 ` Max Filippov
2014-08-29 13:46 ` Michal Simek
2014-09-13 1:39 ` Max Filippov
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=1408556533-22433-5-git-send-email-jcmvbkbc@gmail.com \
--to=jcmvbkbc@gmail.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.