Skip to contentSkip to conversation

buildroot:2011.02: Find compiler in environement path other than absolute path.

PATCH New Sonic Zhang 3 participants 3 messages Mar 10, 2011 – Mar 28, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 buildroot:2011.02: Find compiler in environement path other than absolute path.

From: Sonic Zhang <[email protected]>

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.

---
 package/Makefile.in |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
package/Makefile.in +4 -0
index ef2c591..745bb23 100644
@@ -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.
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 1/1 buildroot:2011.02: Find compiler in environement path other than absolute path.

Quoted 7 lines · On Thu, 10 Mar 2011 19:12:41 +0800 Sonic Zhang <[email protected]> wrote:

From: Sonic Zhang <[email protected]>

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.

Thanks,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#2 lore raw

PATCH 1/1 buildroot:2011.02: Find compiler in environement path other than absolute path.

In reply to Sonic Zhang
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sonic" == Sonic Zhang <[email protected]> writes:

Sonic> From: Sonic Zhang <[email protected]>

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.

Signature · 1 line
Bye, Peter Korsgaard