QNX: Remove dead virtio-related macros
[ipc/ipcdev.git] / qnx / src / ipc3x_dev / ti / syslink / build / Qnx / resmgr / common.mk
1 #
2 #   Copyright (c) 2013-2014, Texas Instruments Incorporated
3 #
4 #   Redistribution and use in source and binary forms, with or without
5 #   modification, are permitted provided that the following conditions
6 #   are met:
7 #
8 #   *  Redistributions of source code must retain the above copyright
9 #      notice, this list of conditions and the following disclaimer.
10 #
11 #   *  Redistributions in binary form must reproduce the above copyright
12 #      notice, this list of conditions and the following disclaimer in the
13 #      documentation and/or other materials provided with the distribution.
14 #
15 #   *  Neither the name of Texas Instruments Incorporated nor the names of
16 #      its contributors may be used to endorse or promote products derived
17 #      from this software without specific prior written permission.
18 #
19 #   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20 #   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
21 #   THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 #   PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
23 #   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24 #   EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25 #   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
26 #   OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27 #   WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
28 #   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
29 #   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 #
32 ifndef QCONFIG
33 QCONFIG=qconfig.mk
34 endif
35 include $(QCONFIG)
37 INSTALLDIR=bin
39 define PINFO
40 PINFO DESCRIPTION=IPC Resource Manager
41 endef
42 NAME=ipc
44 CCOPTS += -DSYSLINK_BUILDOS_QNX -DSYSLINK_BUILD_DEBUG -DSYSLINK_BUILD_HLOS
46 ifeq ("$(SYSLINK_DEBUG)", "1")
47 #enable debug build
48 CCOPTS += -g -O0
49 endif # ifeq ("$(SYSLINK_DEBUG)", "1")
51 ifeq ("$(SYSLINK_PLATFORM)", "omap5430")
52 ifeq ("$(SMP)", "1")
53 CCOPTS += -DSYSLINK_SYSBIOS_SMP
54 endif # ifeq ("$(SMP)", "1")
55 CCOPTS += -DSYSLINK_PLATFORM_OMAP5430 -DARM_TARGET -DC60_TARGET -DSYSLINK_USE_IPU_PM
56 endif # ifeq ("$(SYSLINK_PLATFORM)", "omap5430")
58 ifeq ("$(SYSLINK_PLATFORM)", "vayu")
59 ifeq ("$(SMP)", "1")
60 CCOPTS += -DSYSLINK_SYSBIOS_SMP
61 endif # ifeq ("$(SMP)", "1")
62 CCOPTS += -DSYSLINK_PLATFORM_VAYU -DARM_TARGET -DC60_TARGET
63 endif # ifeq ("$(SYSLINK_PLATFORM)", "vayu")
65 #SYSLINK Product root path
66 SYSLINK_ROOT = $(PROJECT_ROOT)/../../../../..
67 SYSLINK_BUILDOS = Qnx
69 #PUBLIC_INCVPATH = $(PROJECT_ROOT)/public
71 EXTRA_INCVPATH = $(SYSLINK_ROOT)        \
72                   $(SYSLINK_ROOT)/ti/syslink/inc        \
73                   $(SYSLINK_ROOT)/ti/syslink/inc/ti/ipc \
74                   $(SYSLINK_ROOT)/ti/syslink/inc/knl    \
75                   $(SYSLINK_ROOT)/ti/syslink/inc/$(SYSLINK_BUILDOS)     \
76                   $(SYSLINK_ROOT)/ti/syslink/inc/knl/$(SYSLINK_BUILDOS)         \
77                   $(SYSLINK_ROOT)/ti/syslink/ipc/hlos/knl/family/$(SYSLINK_PLATFORM)    \
78                   $(SYSLINK_PKGPATH)    \
79                   $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/rprc      \
80                   $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)    \
81                   $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/DLOAD_API    \
82                   $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/DLOAD        \
83                   $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/C60_DLOAD_DYN        \
84                   $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/C60_DLOAD_REL        \
85                   $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/TMS470_DLOAD_DYN     \
86                   $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/TMS470_DLOAD_REL     \
87                   $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/DLOAD_SYM    \
88                   $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/dlw_client \
89                   $(SYSLINK_ROOT)/ti/syslink/rpmsg-resmgr/hlos/knl/$(SYSLINK_BUILDOS)/family    \
90                   $(SYSLINK_ROOT)/ti/syslink/resources  \
91                   $(SYSLINK_ROOT)/ti/syslink/family/common \
92                   $(IPC_REPO)/qnx/include \
93                   $(IPC_REPO)/hlos_common/include \
94                   $(IPC_REPO)/packages \
96 #devctl for ipc, procmgr, utils
97 EXTRA_SRCVPATH+=$(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl     \
98                 $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/rprc        \
99                 $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)      \
100                 $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/DLOAD  \
101                 $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/TMS470_DLOAD_DYN       \
102                 $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/TMS470_DLOAD_REL       \
103                 $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/C60_DLOAD_REL  \
104                 $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/C60_DLOAD_DYN  \
105                 $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/DLOAD_SYM      \
106                 $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/dlw_client   \
107                 $(SYSLINK_ROOT)/ti/syslink/resources    \
108                 $(SYSLINK_ROOT)/ti/syslink/ipc/hlos/knl/transports/virtio       \
109                 $(SYSLINK_ROOT)/ti/syslink/ipc/hlos/knl \
110                 $(SYSLINK_ROOT)/ti/syslink/ipc/hlos/knl/arch    \
111                 $(SYSLINK_ROOT)/ti/syslink/ipc/hlos/knl/arch/$(SYSLINK_PLATFORM)        \
112                 $(SYSLINK_ROOT)/ti/syslink/ipc/hlos/knl/$(SYSLINK_BUILDOS)      \
113                 $(SYSLINK_ROOT)/ti/syslink/utils/common \
114                 $(SYSLINK_ROOT)/ti/syslink/utils/hlos   \
115                 $(SYSLINK_ROOT)/ti/syslink/utils/hlos/knl       \
116                 $(SYSLINK_ROOT)/ti/syslink/utils/hlos/knl/$(SYSLINK_BUILDOS)    \
117                 $(SYSLINK_ROOT)/ti/syslink/utils/hlos/knl/osal/$(SYSLINK_BUILDOS)       \
118                 $(SYSLINK_ROOT)/ti/syslink/rpmsg-omx/hlos/knl/$(SYSLINK_BUILDOS)        \
119                 $(SYSLINK_ROOT)/ti/syslink/rpmsg-dce/hlos/knl/$(SYSLINK_BUILDOS)        \
120                 $(SYSLINK_ROOT)/ti/syslink/ti-ipc       \
121                 $(SYSLINK_ROOT)/ti/syslink/rpmsg-rpc    \
122                 $(SYSLINK_ROOT)/ti/syslink/rpmsg-resmgr/hlos/knl/$(SYSLINK_BUILDOS)/family/$(SYSLINK_PLATFORM)  \
123                 $(SYSLINK_ROOT)/ti/syslink/rpmsg-resmgr/hlos/knl/$(SYSLINK_BUILDOS)
125 ifeq ("$(SYSLINK_PLATFORM)", "omap5430")
126 EXTRA_SRCVPATH+=$(SYSLINK_ROOT)/ti/syslink/family/$(SYSLINK_PLATFORM)   \
127                 $(SYSLINK_ROOT)/ti/syslink/family/$(SYSLINK_PLATFORM)/ipu
129 EXCLUDE_OBJS = GateMP_daemon.o gatemp_devctl.o
130 endif
132 ifeq ("$(SYSLINK_PLATFORM)", "vayu")
133 EXTRA_SRCVPATH+=$(SYSLINK_ROOT)/ti/syslink/family/common        \
134                 $(SYSLINK_ROOT)/ti/syslink/family/common/$(SYSLINK_PLATFORM)/$(SYSLINK_PLATFORM)dsp     \
135                 $(SYSLINK_ROOT)/ti/syslink/family/common/$(SYSLINK_PLATFORM)/$(SYSLINK_PLATFORM)ipu     \
136                 $(SYSLINK_ROOT)/ti/syslink/family/common/$(SYSLINK_PLATFORM)/$(SYSLINK_PLATFORM)ipu/$(SYSLINK_PLATFORM)core0    \
137                 $(SYSLINK_ROOT)/ti/syslink/family/common/$(SYSLINK_PLATFORM)/$(SYSLINK_PLATFORM)ipu/$(SYSLINK_PLATFORM)core1    \
138                 $(SYSLINK_ROOT)/ti/syslink/family/$(SYSLINK_PLATFORM)   \
139                 $(SYSLINK_ROOT)/ti/syslink/family/$(SYSLINK_PLATFORM)/$(SYSLINK_PLATFORM)dsp    \
140                 $(SYSLINK_ROOT)/ti/syslink/family/$(SYSLINK_PLATFORM)/$(SYSLINK_PLATFORM)ipu    \
141                 $(SYSLINK_ROOT)/ti/syslink/family/$(SYSLINK_PLATFORM)/$(SYSLINK_PLATFORM)ipu/$(SYSLINK_PLATFORM)core1   \
142                 $(IPC_REPO)/qnx/src/api/gates
144 EXCLUDE_OBJS = GateMP.o
145 endif
147 include $(MKFILES_ROOT)/qtargets.mk
149 LDFLAGS += -M
151 EXTRA_LIBVPATH += $(INSTALL_ROOT_nto)/usr/lib
153 ifeq ("$(SYSLINK_DEBUG)", "1")
154 EXTRA_LIBVPATH += $(IPC_REPO)/qnx/src/utils/arm/a.g.le.v7
155 LIBS += utils_g
156 else
157 EXTRA_LIBVPATH += $(IPC_REPO)/qnx/src/utils/arm/a.le.v7
158 LIBS += utils
159 endif # ifeq ("$(SYSLINK_DEBUG)", "1")