Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit master 1/1] toolchain: do not require full path
@ 2010-10-16 20:46 Mike Frysinger
  2010-10-16 21:14 ` Peter Korsgaard
  0 siblings, 1 reply; 12+ messages in thread
From: Mike Frysinger @ 2010-10-16 20:46 UTC (permalink / raw)
  To: buildroot


commit: http://git.buildroot.net/buildroot/commit/?id=d2f7323f78e449cf195df73e334fa39440127a9e
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

If the toolchain can be found via $PATH, then requiring the full path to
it is unnecessary.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 package/Makefile.in |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/package/Makefile.in b/package/Makefile.in
index 85e6550..fb09083 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -116,7 +116,11 @@ TARGET_CROSS=$(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-
 else ifeq ($(BR2_TOOLCHAIN_EXTERNAL),y)
 TOOLCHAIN_EXTERNAL_PREFIX:=$(call qstrip,$(BR2_TOOLCHAIN_EXTERNAL_PREFIX))
 TOOLCHAIN_EXTERNAL_PATH:=$(call qstrip,$(BR2_TOOLCHAIN_EXTERNAL_PATH))
+ifneq ($(TOOLCHAIN_EXTERNAL_PATH),)
 TARGET_CROSS=$(TOOLCHAIN_EXTERNAL_PATH)/bin/$(TOOLCHAIN_EXTERNAL_PREFIX)-
+else
+TARGET_CROSS=$(TOOLCHAIN_EXTERNAL_PREFIX)-
+endif
 else ifeq ($(BR2_TOOLCHAIN_CTNG),y)
 TARGET_CROSS=$(TOOLCHAIN_DIR)/bin/$(REAL_GNU_TARGET_NAME)-
 endif
-- 
1.7.1

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

end of thread, other threads:[~2010-10-23 11:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-16 20:46 [Buildroot] [git commit master 1/1] toolchain: do not require full path Mike Frysinger
2010-10-16 21:14 ` Peter Korsgaard
2010-10-16 22:10   ` Mike Frysinger
2010-10-17 11:37     ` Peter Korsgaard
2010-10-17 22:34       ` Mike Frysinger
2010-10-18  7:10         ` Peter Korsgaard
2010-10-22 21:19   ` Mike Frysinger
2010-10-23  0:53     ` Thomas Petazzoni
2010-10-23  6:47     ` Peter Korsgaard
2010-10-23  8:32       ` Mike Frysinger
2010-10-23  8:46         ` Peter Korsgaard
2010-10-23 11:30         ` Thomas Petazzoni

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