summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAjay Jayaraj2018-06-28 17:35:05 -0500
committerAjay Jayaraj2018-06-28 17:35:05 -0500
commit7b65cbba3878d793ff0c2480bc31ae28a9fa6e67 (patch)
tree305bf97a1be845cd65d4e2c60cdb6906305e878f /makefile
parent4e1332e00fee67146e32960a3e24c55ffc6f5525 (diff)
downloadtidl-api-7b65cbba3878d793ff0c2480bc31ae28a9fa6e67.tar.gz
tidl-api-7b65cbba3878d793ff0c2480bc31ae28a9fa6e67.tar.xz
tidl-api-7b65cbba3878d793ff0c2480bc31ae28a9fa6e67.zip
Documentation and top-level makefile updates
(MCT-1008)
Diffstat (limited to 'makefile')
-rw-r--r--makefile19
1 files changed, 16 insertions, 3 deletions
diff --git a/makefile b/makefile
index 341d444..f8ea211 100644
--- a/makefile
+++ b/makefile
@@ -26,17 +26,26 @@
26# THE POSSIBILITY OF SUCH DAMAGE. 26# THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 28
29# makefile for building from the tidl-api git repi 29# makefile for building from the tidl-api git repo
30# Required TARGET_ROOTDIR to be set. 30# Cross-compilation requires TARGET_ROOTDIR to be set.
31# E.g.
32# PSDK_LINUX=<path to Processor Linux SDK install>
33# TARGET_ROOTDIR=$PSDK_LINUX/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi
31 34
32ifneq (,$(findstring 86, $(shell uname -m))) 35ifneq (,$(findstring 86, $(shell uname -m)))
33DEST_DIR ?= $(CURDIR)/install/am57 36DEST_DIR ?= $(CURDIR)/install/am57
37VIEWER_TARGET=x86
38else
39VIEWER_TARGET=arm
34endif 40endif
35 41
36INSTALL_DIR_API = $(DEST_DIR)/usr/share/ti/tidl 42INSTALL_DIR_API = $(DEST_DIR)/usr/share/ti/tidl
37INSTALL_DIR_EXAMPLES = $(DEST_DIR)/usr/share/ti/examples/tidl 43INSTALL_DIR_EXAMPLES = $(DEST_DIR)/usr/share/ti/examples/tidl
38 44
39CP_ARGS=-Prf --preserve=mode,timestamps --no-preserve=ownership 45CP_ARGS = -Prf
46ifneq (,$(findstring 86, $(shell uname -m)))
47CP_ARGS += --preserve=mode,timestamps --no-preserve=ownership
48endif
40 49
41build-api: 50build-api:
42 $(MAKE) -C tidl_api 51 $(MAKE) -C tidl_api
@@ -56,5 +65,9 @@ install-examples: build-examples
56 mkdir -p $(INSTALL_DIR_EXAMPLES) 65 mkdir -p $(INSTALL_DIR_EXAMPLES)
57 cp $(CP_ARGS) examples/* $(INSTALL_DIR_EXAMPLES)/ 66 cp $(CP_ARGS) examples/* $(INSTALL_DIR_EXAMPLES)/
58 67
68build-viewer:
69 $(MAKE) TARGET=$(VIEWER_TARGET) -C viewer
70
59clean: 71clean:
60 $(MAKE) -C tidl_api clean 72 $(MAKE) -C tidl_api clean
73 $(MAKE) -C examples clean