]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/blobdiff - qnx/Makefile
Changed GateAll to GateHwi since GateAll does not work in SMP BIOS according to SDOCM...
[ipc/ipcdev.git] / qnx / Makefile
index cfd81dd096f6009ae8e1702b3cade38278842f40..dc8d6115a3d8b2d5efe637cfbfc0bff0ccf41b66 100644 (file)
 # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #
 
+ifeq ("$(PLATFORM)","omap5432")
+    SYSLINK_PLATFORM=omap5430
+    TILER_PLATFORM=omap5430
+else ifeq ("$(PLATFORM)","vayu")
+    SYSLINK_PLATFORM=$(PLATFORM)
+    TILER_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
 
 utils:
        @cd src/utils; make install
 
 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
+       @cd src/ipc3x_dev; \
+            make SYSLINK_PLATFORM=$(SYSLINK_PLATFORM) TILER_PLATFORM=$(TILER_PLATFORM) SMP=1 VIRTIO=$(BUILD_FOR_VIRTIO)
+
+install:
+       @cd src/ipc3x_dev; make SYSLINK_PLATFORM=$(SYSLINK_PLATFORM) \
+               TILER_PLATFORM=$(TILER_PLATFORM) SMP=1 VIRTIO=$(BUILD_FOR_VIRTIO) USE_INSTALL_ROOT=1 \
+               INSTALL_ROOT_nto=$(DESTDIR) install
+       @cd src/tests; make USE_INSTALL_ROOT=1 DESTDIR=$(DESTDIR) \
+               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
+       @cd src/ipc3x_dev; \
+            make clean SYSLINK_PLATFORM=$(SYSLINK_PLATFORM) TILER_PLATFORM=$(TILER_PLATFORM) SMP=1 VIRTIO=$(BUILD_FOR_VIRTIO)