Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] buildroot:2011.02: Find compiler in environement path other than absolute path.
@ 2011-03-10 11:12 Sonic Zhang
  2011-03-10 11:28 ` Thomas Petazzoni
  2011-03-28  8:04 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Sonic Zhang @ 2011-03-10 11:12 UTC (permalink / raw)
  To: buildroot

From: Sonic Zhang <sonic.zhang@analog.com>

In release 2011.02, external compiler is always prefixed by he customer path.
When customer toolchain path is left empty, this patch avoids prefix absolute path.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
---
 package/Makefile.in |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/package/Makefile.in b/package/Makefile.in
index ef2c591..745bb23 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -115,7 +115,11 @@ TOOLCHAIN_EXTERNAL_LOCATION=$(TOOLCHAIN_EXTERNAL_DIR)
 else
 TOOLCHAIN_EXTERNAL_LOCATION=$(call qstrip,$(BR2_TOOLCHAIN_EXTERNAL_PATH))
 endif
+ifneq ($(TOOLCHAIN_EXTERNAL_LOCATION),)
 TARGET_CROSS=$(TOOLCHAIN_EXTERNAL_LOCATION)/bin/$(TOOLCHAIN_EXTERNAL_PREFIX)-
+else
+TARGET_CROSS=$(TOOLCHAIN_EXTERNAL_PREFIX)-
+endif
 endif
 
 # Quotes are needed for spaces et al in path components.
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-28  8:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-10 11:12 [Buildroot] [PATCH] buildroot:2011.02: Find compiler in environement path other than absolute path Sonic Zhang
2011-03-10 11:28 ` Thomas Petazzoni
2011-03-28  8:04 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox