Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] toolchain: Correct test for external tools symlink creation
@ 2011-11-01  0:53 Stany MARCEL
  2011-11-01  0:53 ` [Buildroot] [PATCH 2/2] toolchain: Add the possibility to have a mcpu option with wrapper Stany MARCEL
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Stany MARCEL @ 2011-11-01  0:53 UTC (permalink / raw)
  To: buildroot

When the external tools chain is installed in a path that match one of
the first case test, all symlink are created to the external
wrapper. The proposed solution is to test only the base name not the
full path.

Signed-off-by: Stany MARCEL <stanypub@gmail.com>
---
 toolchain/toolchain-external/ext-tool.mk |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/toolchain/toolchain-external/ext-tool.mk b/toolchain/toolchain-external/ext-tool.mk
index 8287916..572917f 100644
--- a/toolchain/toolchain-external/ext-tool.mk
+++ b/toolchain/toolchain-external/ext-tool.mk
@@ -318,9 +318,9 @@ $(STAMP_DIR)/ext-toolchain-installed: $(TOOLCHAIN_EXTERNAL_DEPENDENCIES)
 $(HOST_DIR)/usr/bin/ext-toolchain-wrapper: $(STAMP_DIR)/ext-toolchain-installed
 	mkdir -p $(HOST_DIR)/usr/bin; cd $(HOST_DIR)/usr/bin; \
 	for i in $(TOOLCHAIN_EXTERNAL_CROSS)*; do \
-		case "$$i" in \
+		base=$${i##*/}; \
+		case "$$base" in \
 		*cc|*cc-*|*++|*++-*|*cpp) \
-			base=$${i##*/}; \
 			ln -sf $(@F) $$base; \
 			;; \
 		*) \
-- 
1.7.1

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

end of thread, other threads:[~2011-11-02 10:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-01  0:53 [Buildroot] [PATCH 1/2] toolchain: Correct test for external tools symlink creation Stany MARCEL
2011-11-01  0:53 ` [Buildroot] [PATCH 2/2] toolchain: Add the possibility to have a mcpu option with wrapper Stany MARCEL
2011-11-01 10:51   ` Yann E. MORIN
2011-11-01 12:19     ` [Buildroot] [PATCH 2/2 v2] " Stany MARCEL
2011-11-01 15:35       ` Yann E. MORIN
2011-11-02 10:48       ` Peter Korsgaard
2011-11-01 10:46 ` [Buildroot] [PATCH 1/2] toolchain: Correct test for external tools symlink creation Yann E. MORIN
2011-11-02 10:46 ` Peter Korsgaard

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