* [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
* [Buildroot] [PATCH] buildroot:2011.02: Find compiler in environement path other than absolute path.
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
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2011-03-10 11:28 UTC (permalink / raw)
To: buildroot
On Thu, 10 Mar 2011 19:12:41 +0800
Sonic Zhang <sonic.adi@gmail.com> wrote:
> 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>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thanks,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] buildroot:2011.02: Find compiler in environement path other than absolute path.
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
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2011-03-28 8:04 UTC (permalink / raw)
To: buildroot
>>>>> "Sonic" == Sonic Zhang <sonic.adi@gmail.com> writes:
Sonic> From: Sonic Zhang <sonic.zhang@analog.com>
Sonic> In release 2011.02, external compiler is always prefixed by he
Sonic> customer path. When customer toolchain path is left empty, this
Sonic> patch avoids prefix absolute path.
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [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