summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>2011-12-06 15:05:55 +0059
committerBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>2011-12-06 15:05:55 +0059
commit6718cac02cb356b790039cdbb22f2430860977c1 (patch)
tree20eafb25d77adf12177cd1b4abd48194e2fbe4fb
parent24e68c9e9484fde462cb56591e308eabea677bda (diff)
u-boot: Better handling of relative paths in TARGET_TOOLS_PREFIX
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
-rw-r--r--tasks/uboot.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/tasks/uboot.mk b/tasks/uboot.mk
index 38061c9..8bbbc57 100644
--- a/tasks/uboot.mk
+++ b/tasks/uboot.mk
@@ -4,7 +4,7 @@ ifneq ($(findstring prebuilt,$(TARGET_TOOLS_PREFIX)),)
UBOOT_TCDIR = $(shell basename `which arm-linux-gnueabi-gcc`)
UBOOT_TCPREFIX = arm-linux-gnueabi-
else
-UBOOT_TCDIR = $(shell dirname $(TARGET_TOOLS_PREFIX))
+UBOOT_TCDIR = $(realpath $(shell dirname $(TARGET_TOOLS_PREFIX)))
# u-boot is not an Android application and should be
# built with the bare metal toolchain if it is available
UBOOT_TCPREFIX = $(shell if [ -e $(UBOOT_TCDIR)/arm-eabi-gcc ]; then echo arm-eabi-; else basename $(TARGET_TOOLS_PREFIX); fi)