]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/blobdiff - qnx/Makefile
Fix error from calling MultiProc_getId with non-SMP IPU core name on OMAP5 QNX
[ipc/ipcdev.git] / qnx / Makefile
index 9ebe59278d0a9bd8a7279c7ef9f81a1a2d12be14..5ff806c198f73f25d2f1f9db164e4c81f9c34f13 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2013, Texas Instruments Incorporated
+# Copyright (c) 2013-2014, Texas Instruments Incorporated
 # All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
 # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #
 
+ifeq ("$(PLATFORM)","OMAP54XX")
+    SYSLINK_PLATFORM=omap5430
+else ifeq ("$(PLATFORM)","DRA7XX")
+    SYSLINK_PLATFORM=vayu
+else ifeq ("$(PLATFORM)","")
+    $(error Empty PLATFORM variable.  Did you forget to set in it products.mak?)
+else
+    $(error Unsupported platform: $(PLATFORM))
+endif
+
 all:  utils ipc3x_dev libs tests
 
 libs: ipc3x_dev
-       @cd src/api; make install
-       @cd src/family; make install
-       @cd src/mm; make install
+       @cd src/api; make SYSLINK_PLATFORM=$(SYSLINK_PLATFORM)
+       @cd src/mm; make
 
 utils:
-       @cd src/utils; make install
+       @cd src/utils; make
 
 tests: libs
-       @cd src/tests; make install
+       @cd src/tests; make
 
 ipc3x_dev: utils
        @cd src/ipc3x_dev; \
-            make SYSLINK_PLATFORM=omap5430 TILER_PLATFORM=omap5430 SMP=1
+            make SYSLINK_PLATFORM=$(SYSLINK_PLATFORM) SMP=1
 
 install:
-       @cd src/ipc3x_dev; make SYSLINK_PLATFORM=omap5430 \
-               TILER_PLATFORM=omap5430 SMP=1 USE_INSTALL_ROOT=1 \
+       @cd src/ipc3x_dev; make SYSLINK_PLATFORM=$(SYSLINK_PLATFORM) \
+               SMP=1 USE_INSTALL_ROOT=1 \
+               INSTALL_ROOT_nto=$(DESTDIR) install
+       @cd src/mm; make USE_INSTALL_ROOT=1 DESTDIR=$(DESTDIR) \
                INSTALL_ROOT_nto=$(DESTDIR) install
+       @cd src/api; make USE_INSTALL_ROOT=1 DESTDIR=$(DESTDIR) \
+                INSTALL_ROOT_nto=$(DESTDIR) install
+       @cd src/utils; make USE_INSTALL_ROOT=1 DESTDIR=$(DESTDIR) \
+                INSTALL_ROOT_nto=$(DESTDIR) install
        @cd src/tests; make USE_INSTALL_ROOT=1 DESTDIR=$(DESTDIR) \
+               SYSLINK_PLATFORM=$(SYSLINK_PLATFORM) \
                INSTALL_ROOT_nto=$(DESTDIR) install
 
+
 clean:
-       @cd src/family; make clean
        @cd src/api; make clean
        @cd src/mm; make clean
        @cd src/utils; make clean
        @cd src/tests; make clean
        @cd src/ipc3x_dev; \
-            make clean SYSLINK_PLATFORM=omap5430 TILER_PLATFORM=omap5430 SMP=1
+       make clean SYSLINK_PLATFORM=$(SYSLINK_PLATFORM) SMP=1