]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/blobdiff - ipc-qnx.mak
MessageQ: Fix MessageQ_get() dropping messages
[ipc/ipcdev.git] / ipc-qnx.mak
index ca23b37bdd6e87253b8611a48fe59da7755bcfc8..dfe55908d198010d8533f34408b0f7c1de8ff087 100644 (file)
 #  ======== ipc-qnx.mak ========
 #
 
-#
-# Where to export the binaries
-#
-DESTDIR ?= <UNDEFINED>
-
 include ./products.mak
 
 # Setup QNX paths
@@ -53,25 +48,39 @@ ifneq ($(wildcard $(QNX_INSTALL_DIR)),)
     export LD_LIBRARY_PATH=$(QNX_INSTALL_DIR)/host/linux/x86/usr/lib
 endif
 
+ifeq ("$(DEVICE)","simvayu")
+BUILD_FOR_VIRTIO        = true
+PLATFORM                = vayu
+else
+BUILD_FOR_VIRTIO        = false
+PLATFORM                = $(DEVICE)
+endif
+
 all: .qnx
 
-.qnx: .qnx,omap5432
+.qnx: .qnx,$(PLATFORM)
 
 .qnx,%: PATH:=$(QNX_PATH):$(PATH)
 .qnx,%:
        @echo "building Qnx user libraries for" $(*:.qnx,=) "..."
        @make -C qnx \
                 IPC_REPO=`pwd` \
-                PLATFORM=$(*:.qnx,=)
+                PLATFORM=$(*:.qnx,=) \
+                BUILD_FOR_VIRTIO=$(BUILD_FOR_VIRTIO)
 
 clean:
        @echo "cleaning Qnx user libraries ..."
        @make -C qnx clean
 
-#TODO: Implement Install goal
-#install:
-#      @ echo installing binaries to $(DESTDIR) ...
-#      @ mkdir -p $(DESTDIR)/$(prefix)/$(docdir)
-#      @ cp -rf $(wildcard ipc_*_release_notes.html) docs/* $(DESTDIR)/$(prefix)/$(docdir)
-#      @ mkdir -p $(DESTDIR)/$(prefix)/$(includedir)/ti/ipc
-#      @ cp -rf packages/ti/ipc/*.h $(DESTDIR)/$(prefix)/$(includedir)/ti/ipc
+install: .install,$(PLATFORM)
+
+.install,%: PATH:=$(QNX_PATH):$(PATH)
+.install,%:
+       @echo installing binaries to $(DESTDIR) ...
+       @mkdir -p $(DESTDIR)
+       @make -C qnx \
+                IPC_REPO=`pwd` \
+                PLATFORM=$(*:.qnx,=) \
+                BUILD_FOR_VIRTIO=$(BUILD_FOR_VIRTIO) \
+               DESTDIR=$(DESTDIR) \
+               install