summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPankaj Bharadiya <pankaj.bharadiya@ti.com>2012-10-18 11:47:10 +0530
committerPankaj Bharadiya <pankaj.bharadiya@ti.com>2012-10-18 11:48:20 +0530
commitfd286ea3401fb751eeec763d521eddc4f0c16e66 (patch)
treecf15e819c95b558f3e4994e0037255dd81a192e0
parent9e24b7f2c78dfb89f497ec326bab8d0fc19ad5ef (diff)
downloadsgx-fd286ea3401fb751eeec763d521eddc4f0c16e66.tar.gz
Remove hardcoded toolchain prefix and path
Don't hardcode toolchain prefix and path instead use TAGET_TOOLCHAIN_PREFIX variable to extact CSTOOLS_PATH and CSTOOLS
-rwxr-xr-xRules.make8
1 files changed, 3 insertions, 5 deletions
diff --git a/Rules.make b/Rules.make
index a3b4aca..ee66c87 100755
--- a/Rules.make
+++ b/Rules.make
@@ -10,11 +10,9 @@ GRAPHICS_INSTALL_DIR=$(ANDROID_ROOT_DIR)/hardware/ti/sgx
#Path of Android Framework
ANDROID_ROOT=$(ANDROID_ROOT_DIR)
-#set toolchain root path for arm-eabi
-CSTOOL_DIR=$(ANDROID_ROOT_DIR)/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6
-CSTOOL_PREFIX=arm-eabi-
-CSTOOL_PATH=$(CSTOOL_DIR)/bin
-
+#set toolchain root path
+CSTOOL_PATH=$(dir $(TARGET_TOOLS_PREFIX))
+CSTOOL_PREFIX=$(notdir $(TARGET_TOOLS_PREFIX))
#set the kernel installation path
KERNEL_INSTALL_DIR=$(ANDROID_ROOT_DIR)/kernel