summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongmei Gou2018-09-06 11:45:06 -0500
committerHongmei Gou2018-09-06 12:06:11 -0500
commit7cbdf20ed44eb6486137e3866e43eec39eb7a468 (patch)
tree7a058670d73780bd2224bf0f773bc6f0cce0dccd
parent8d9c1e3402fce6f34f0c83a8c8b69b889d102982 (diff)
downloadtida01555-7cbdf20ed44eb6486137e3866e43eec39eb7a468.tar.gz
tida01555-7cbdf20ed44eb6486137e3866e43eec39eb7a468.tar.xz
tida01555-7cbdf20ed44eb6486137e3866e43eec39eb7a468.zip
ARM_User_Space_App: Makefile: remove ARM_CCT and use CC
* CC is defined from Processor SDK Linux Signed-off-by: Hongmei Gou <a0271529@ti.com>
-rw-r--r--ARM_User_Space_App/Makefile19
1 files changed, 1 insertions, 18 deletions
diff --git a/ARM_User_Space_App/Makefile b/ARM_User_Space_App/Makefile
index 1ad4b2e..50ad7a8 100644
--- a/ARM_User_Space_App/Makefile
+++ b/ARM_User_Space_App/Makefile
@@ -1,20 +1,3 @@
1# ARM_CCT environment variable must point to the ARM cross-compile toolchain. E.g.:
2#(Desktop Linux) export ARM_CCT=$(HOME)/ti-processor-sdk-linux-rt-amxxx-evm-ww.xx.yy.zz/
3#linux-devkit/sysroots/x86_64-arago-linux/usr/bin
4
5ifndef ARM_CCT
6define ERROR_BODY
7
8*******************************************************************************
9ARM_CCT environment variable is not set. Examples given:
10(Desktop Linux) export ARM_CCT=$(HOME)/ti-processor-sdk-linux-rt-amxxx-evm-ww.xx.yy.zz/
11linux-devkit/sysroots/x86_64-arago-linux/usr/bin
12*******************************************************************************
13
14endef
15$(error $(ERROR_BODY))
16endif
17
18MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) 1MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
19CURRENT_DIR := $(notdir $(patsubst %/,%,$(dir $(MKFILE_PATH)))) 2CURRENT_DIR := $(notdir $(patsubst %/,%,$(dir $(MKFILE_PATH))))
20PROJ_NAME=$(CURRENT_DIR) 3PROJ_NAME=$(CURRENT_DIR)
@@ -47,7 +30,7 @@ $(TARGET):
47 @echo '' 30 @echo ''
48 @echo 'Building target: $@' 31 @echo 'Building target: $@'
49 @echo 'Invoking: ARM x86 Cross Compiler' 32 @echo 'Invoking: ARM x86 Cross Compiler'
50 $(ARM_CCT)/arm-linux-gnueabihf-gcc -Wall $(SOURCES) $(CFLAGS) -o $(TARGET) -lncurses -lpthread 33 $(CC) -Wall $(SOURCES) $(CFLAGS) -o $(TARGET) -lncurses -lpthread
51 @echo 'Finished building target: $@' 34 @echo 'Finished building target: $@'
52 35
53.PHONY: all clean 36.PHONY: all clean