diff options
author | Ajay Jayaraj | 2018-06-28 17:35:05 -0500 |
---|---|---|
committer | Ajay Jayaraj | 2018-06-28 17:35:05 -0500 |
commit | 7b65cbba3878d793ff0c2480bc31ae28a9fa6e67 (patch) | |
tree | 305bf97a1be845cd65d4e2c60cdb6906305e878f /makefile | |
parent | 4e1332e00fee67146e32960a3e24c55ffc6f5525 (diff) | |
download | tidl-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-- | makefile | 19 |
1 files changed, 16 insertions, 3 deletions
@@ -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 | ||
32 | ifneq (,$(findstring 86, $(shell uname -m))) | 35 | ifneq (,$(findstring 86, $(shell uname -m))) |
33 | DEST_DIR ?= $(CURDIR)/install/am57 | 36 | DEST_DIR ?= $(CURDIR)/install/am57 |
37 | VIEWER_TARGET=x86 | ||
38 | else | ||
39 | VIEWER_TARGET=arm | ||
34 | endif | 40 | endif |
35 | 41 | ||
36 | INSTALL_DIR_API = $(DEST_DIR)/usr/share/ti/tidl | 42 | INSTALL_DIR_API = $(DEST_DIR)/usr/share/ti/tidl |
37 | INSTALL_DIR_EXAMPLES = $(DEST_DIR)/usr/share/ti/examples/tidl | 43 | INSTALL_DIR_EXAMPLES = $(DEST_DIR)/usr/share/ti/examples/tidl |
38 | 44 | ||
39 | CP_ARGS=-Prf --preserve=mode,timestamps --no-preserve=ownership | 45 | CP_ARGS = -Prf |
46 | ifneq (,$(findstring 86, $(shell uname -m))) | ||
47 | CP_ARGS += --preserve=mode,timestamps --no-preserve=ownership | ||
48 | endif | ||
40 | 49 | ||
41 | build-api: | 50 | build-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 | ||
68 | build-viewer: | ||
69 | $(MAKE) TARGET=$(VIEWER_TARGET) -C viewer | ||
70 | |||
59 | clean: | 71 | clean: |
60 | $(MAKE) -C tidl_api clean | 72 | $(MAKE) -C tidl_api clean |
73 | $(MAKE) -C examples clean | ||