From 5d6ff452add2d4e902409ed35accfa59adba37f2 Mon Sep 17 00:00:00 2001 From: Sonic Zhang Date: Thu, 10 Mar 2011 19:12:41 +0800 Subject: external toolchain: Only prefix path if specified Only prefix the external toolchain calls with its absolute path if BR2_TOOLCHAIN_EXTERNAL_PATH is set, otherwise just assume it will be available in the path. Signed-off-by: Sonic Zhang Acked-by: Thomas Petazzoni Signed-off-by: Peter Korsgaard --- package/Makefile.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/Makefile.in b/package/Makefile.in index e1ffe158b..f98b3e792 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. -- cgit v1.2.3