summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Nelson2015-12-14 21:29:56 -0600
committerSam Nelson2015-12-15 05:11:35 -0600
commit010fdfda0bc5085aa30712f4c010a7038257a888 (patch)
tree7408156a9d827f35581dd90a764d00650343823b
parent892e93238b7f9f480ddceb7ade042026a4d178bd (diff)
downloadmpm-transport-linux41.tar.gz
mpm-transport-linux41.tar.xz
mpm-transport-linux41.zip
Makefile: Update to add defines for specific transportslinux41
- common code needs to be conditionally compiled if including Hyperlink or SRIO transports Signed-off-by: Sam Nelson <sam.nelson@ti.com>
-rwxr-xr-xMakefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3bb38b0..127483d 100755
--- a/Makefile
+++ b/Makefile
@@ -56,6 +56,15 @@ DEVKIT_LIB = $(PDK_INSTALL_PATH)/../lib/
56DEVICE ?= k2h 56DEVICE ?= k2h
57DEVICE_UPPER = `echo $(DEVICE) | tr a-z A-Z` 57DEVICE_UPPER = `echo $(DEVICE) | tr a-z A-Z`
58INTERNALDEFS += -D__ARMv7 -DDEVICE_$(DEVICE_UPPER) -D_VIRTUAL_ADDR_SUPPORT -D__LINUX_USER_SPACE -D_LITTLE_ENDIAN=1 -DMAKEFILE_BUILD -DINTERNAL_LINKING_RAM -D_GNU_SOURCE 58INTERNALDEFS += -D__ARMv7 -DDEVICE_$(DEVICE_UPPER) -D_VIRTUAL_ADDR_SUPPORT -D__LINUX_USER_SPACE -D_LITTLE_ENDIAN=1 -DMAKEFILE_BUILD -DINTERNAL_LINKING_RAM -D_GNU_SOURCE
59
60ifeq ($(HYPLNK_TRANSPORT),true)
61INTERNALDEFS += -DHYPLNK_TRANSPORT
62endif
63
64ifeq ($(SRIO_TRANSPORT),true)
65INTERNALDEFS += -DSRIO_TRANSPORT
66endif
67
59TARGET_PLATFORM = $(ARCH) 68TARGET_PLATFORM = $(ARCH)
60LDFLAGS += -pthread -lrt 69LDFLAGS += -pthread -lrt
61 70