summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xBoardConfig.mk9
1 files changed, 7 insertions, 2 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 0c85bb7..ae5c1cb 100755
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -36,10 +36,15 @@ TARGET_2ND_ARCH := arm
TARGET_2ND_ARCH_VARIANT := armv7-a-neon
TARGET_2ND_CPU_ABI := armeabi-v7a
TARGET_2ND_CPU_ABI2 := armeabi
-TARGET_TOOLCHAIN_ROOT := prebuilts/gcc/$(HOST_PREBUILT_TAG)/aarch64/aarch64-linux-android-4.9
-TARGET_TOOLS_PREFIX := $(TARGET_TOOLCHAIN_ROOT)/bin/aarch64-linux-android-
+#TARGET_TOOLCHAIN_ROOT := prebuilts/gcc/$(HOST_PREBUILT_TAG)/aarch64/aarch64-linux-android-6.2-linaro
+#TARGET_TOOLS_PREFIX := $(TARGET_TOOLCHAIN_ROOT)/bin/aarch64-linux-android-
+ifeq ($(shell test -d $(abspath $(TOP))/$(shell dirname $(TARGET_TOOLS_PREFIX)) && echo rel),rel)
KERNEL_CROSS_COMPILE:= $(abspath $(TOP))/$(TARGET_TOOLS_PREFIX)
+else
+# It's already absolute, no need to touch it
+KERNEL_CROSS_COMPILE:= $(TARGET_TOOLS_PREFIX)
+endif
endif