mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: "Stefan Müller-Klieser" <s.mueller-klieser@phytec.de>
To: barebox@lists.infradead.org
Subject: [RFC][PATCH 1/1] scripts/Makefile: add TARGETCC
Date: Mon, 20 Apr 2015 15:10:27 +0200	[thread overview]
Message-ID: <1429535427-16243-2-git-send-email-s.mueller-klieser@phytec.de> (raw)
In-Reply-To: <1429535427-16243-1-git-send-email-s.mueller-klieser@phytec.de>

This gives the buildsystem the ability to hand down user space toolchain
settings to target tools in the scripts folder, if necessary.

Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
---
 scripts/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scripts/Makefile b/scripts/Makefile
index 74c2213..872cd99 100644
--- a/scripts/Makefile
+++ b/scripts/Makefile
@@ -40,8 +40,10 @@ targetprogs-$(CONFIG_IMD_TARGET) += bareboximd-target
 # Let clean descend into subdirs
 subdir-	+= basic kconfig setupmbr
 
+TARGETCC ?= $(CC)
+
 quiet_cmd_csingle	= CC      $@
-      cmd_csingle	= $(CC) -Wp,-MD,$(depfile) $(CFLAGS) -o $@ $<
+      cmd_csingle	= $(TARGETCC) -Wp,-MD,$(depfile) $(CFLAGS) -o $@ $<
 
 __targetprogs	:= $(sort $(targetprogs-y) $(targetprogs-m))
 target-csingle	:= $(foreach m,$(__targetprogs),$(if $($(m)-objs),,$(m)))
-- 
1.9.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2015-04-20 13:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-20 13:10 [RFC][PATCH 0/1] toolchain conflict for userspace tools Stefan Müller-Klieser
2015-04-20 13:10 ` Stefan Müller-Klieser [this message]
2015-04-23  7:07 ` Sascha Hauer
2015-04-23  8:49   ` Antwort: " PHYTEC Mailinglists

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=1429535427-16243-2-git-send-email-s.mueller-klieser@phytec.de \
    --to=s.mueller-klieser@phytec.de \
    --cc=barebox@lists.infradead.org \
    /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