Removes all references to OMAP4 and TI81xx devices in QNX codebase
[ipc/ipcdev.git] / qnx / src / ipc3x_dev / ti / syslink / build / Qnx / resmgr / common.mk
1 #
2 #   Copyright (c) 2013, 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 # TODO: Is this macro used anymore?  If not, remove it.
47 USE_MEMMGR=false
48 ifeq ("$(SYSLINK_DEBUG)", "1")
49 #enable debug build
50 CCOPTS += -g -O0
51 endif # ifeq ("$(SYSLINK_DEBUG)", "1")
53 ifeq ("$(SYSLINK_PLATFORM)", "omap5430")
54 ifeq ("$(VIRTIO)", "true")
55 CCOPTS += -DOMAP5430_VIRTIO
56 endif # ifeq ("$(VIRTIO)", "true")
57 ifeq ("$(SMP)", "1")
58 CCOPTS += -DSYSLINK_SYSBIOS_SMP
59 endif # ifeq ("$(SMP)", "1")
60 CCOPTS += -DSYSLINK_PLATFORM_OMAP5430 -DARM_TARGET -DC60_TARGET -DSYSLINK_USE_IPU_PM
61 endif # ifeq ("$(SYSLINK_PLATFORM)", "omap5430")
63 ifeq ("$(SYSLINK_PLATFORM)", "vayu")
64 ifeq ("$(VIRTIO)", "true")
65 CCOPTS += -DVAYU_VIRTIO
66 endif # ifeq ("$(VIRTIO)", "true")
67 ifeq ("$(SMP)", "1")
68 CCOPTS += -DSYSLINK_SYSBIOS_SMP
69 endif # ifeq ("$(SMP)", "1")
70 CCOPTS += -DSYSLINK_PLATFORM_VAYU -DARM_TARGET -DC60_TARGET
71 endif # ifeq ("$(SYSLINK_PLATFORM)", "vayu")
73 #SYSLINK Product root path
74 SYSLINK_ROOT = $(PROJECT_ROOT)/../../../../..
75 SYSLINK_BUILDOS = Qnx
77 #PUBLIC_INCVPATH = $(PROJECT_ROOT)/public
79 EXTRA_INCVPATH = $(SYSLINK_ROOT)        \
80                   $(SYSLINK_ROOT)/ti/syslink/inc        \
81                   $(SYSLINK_ROOT)/ti/syslink/inc/ti/ipc \
82                   $(SYSLINK_ROOT)/ti/syslink/inc/knl    \
83                   $(SYSLINK_ROOT)/ti/syslink/inc/$(SYSLINK_BUILDOS)     \
84                   $(SYSLINK_ROOT)/ti/syslink/inc/knl/$(SYSLINK_BUILDOS)         \
85                   $(SYSLINK_ROOT)/ti/syslink/ipc/hlos/knl/family/$(SYSLINK_PLATFORM)    \
86                   $(SYSLINK_PKGPATH)    \
87                   $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/rprc      \
88                   $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)    \
89                   $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/DLOAD_API    \
90                   $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/DLOAD        \
91                   $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/C60_DLOAD_DYN        \
92                   $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/C60_DLOAD_REL        \
93                   $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/TMS470_DLOAD_DYN     \
94                   $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/TMS470_DLOAD_REL     \
95                   $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/DLOAD_SYM    \
96                   $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/dlw_client \
97                   $(SYSLINK_ROOT)/ti/syslink/rpmsg-resmgr/hlos/knl/$(SYSLINK_BUILDOS)/family    \
98                   $(SYSLINK_ROOT)/ti/syslink/resources  \
99                   $(SYSLINK_ROOT)/ti/syslink/family/common \
100                   $(IPC_REPO)/qnx/include \
101                   $(IPC_REPO)/hlos_common/include \
102                   $(IPC_REPO)/packages \
104 #devctl for ipc, procmgr, utils
105 EXTRA_SRCVPATH+=$(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl     \
106                 $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/rprc        \
107                 $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)      \
108                 $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/DLOAD  \
109                 $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/TMS470_DLOAD_DYN       \
110                 $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/TMS470_DLOAD_REL       \
111                 $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/C60_DLOAD_REL  \
112                 $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/C60_DLOAD_DYN  \
113                 $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/DLOAD_SYM      \
114                 $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/dlw_client   \
115                 $(SYSLINK_ROOT)/ti/syslink/resources    \
116                 $(SYSLINK_ROOT)/ti/syslink/ipc/hlos/knl/transports/virtio       \
117                 $(SYSLINK_ROOT)/ti/syslink/ipc/hlos/knl \
118                 $(SYSLINK_ROOT)/ti/syslink/ipc/hlos/knl/arch    \
119                 $(SYSLINK_ROOT)/ti/syslink/ipc/hlos/knl/arch/$(SYSLINK_PLATFORM)        \
120                 $(SYSLINK_ROOT)/ti/syslink/ipc/hlos/knl/$(SYSLINK_BUILDOS)      \
121                 $(SYSLINK_ROOT)/ti/syslink/utils/common \
122                 $(SYSLINK_ROOT)/ti/syslink/utils/hlos   \
123                 $(SYSLINK_ROOT)/ti/syslink/utils/hlos/knl       \
124                 $(SYSLINK_ROOT)/ti/syslink/utils/hlos/knl/$(SYSLINK_BUILDOS)    \
125                 $(SYSLINK_ROOT)/ti/syslink/utils/hlos/knl/osal/$(SYSLINK_BUILDOS)       \
126                 $(SYSLINK_ROOT)/ti/syslink/rpmsg-omx/hlos/knl/$(SYSLINK_BUILDOS)        \
127                 $(SYSLINK_ROOT)/ti/syslink/rpmsg-dce/hlos/knl/$(SYSLINK_BUILDOS)        \
128                 $(SYSLINK_ROOT)/ti/syslink/ti-ipc       \
129                 $(SYSLINK_ROOT)/ti/syslink/rpmsg-rpc    \
130                 $(SYSLINK_ROOT)/ti/syslink/rpmsg-resmgr/hlos/knl/$(SYSLINK_BUILDOS)/family/$(SYSLINK_PLATFORM)  \
131                 $(SYSLINK_ROOT)/ti/syslink/rpmsg-resmgr/hlos/knl/$(SYSLINK_BUILDOS)
133 ifeq ("$(SYSLINK_PLATFORM)", "omap5430")
134 EXTRA_SRCVPATH+=$(SYSLINK_ROOT)/ti/syslink/family/$(SYSLINK_PLATFORM)   \
135                 $(SYSLINK_ROOT)/ti/syslink/family/$(SYSLINK_PLATFORM)/ipu
137 EXCLUDE_OBJS = GateMP_daemon.o gatemp_devctl.o
138 endif
140 ifeq ("$(SYSLINK_PLATFORM)", "vayu")
141 EXTRA_SRCVPATH+=$(SYSLINK_ROOT)/ti/syslink/family/common        \
142                 $(SYSLINK_ROOT)/ti/syslink/family/common/$(SYSLINK_PLATFORM)/$(SYSLINK_PLATFORM)dsp     \
143                 $(SYSLINK_ROOT)/ti/syslink/family/common/$(SYSLINK_PLATFORM)/$(SYSLINK_PLATFORM)ipu     \
144                 $(SYSLINK_ROOT)/ti/syslink/family/common/$(SYSLINK_PLATFORM)/$(SYSLINK_PLATFORM)ipu/$(SYSLINK_PLATFORM)core0    \
145                 $(SYSLINK_ROOT)/ti/syslink/family/common/$(SYSLINK_PLATFORM)/$(SYSLINK_PLATFORM)ipu/$(SYSLINK_PLATFORM)core1    \
146                 $(SYSLINK_ROOT)/ti/syslink/family/$(SYSLINK_PLATFORM)   \
147                 $(SYSLINK_ROOT)/ti/syslink/family/$(SYSLINK_PLATFORM)/$(SYSLINK_PLATFORM)dsp    \
148                 $(SYSLINK_ROOT)/ti/syslink/family/$(SYSLINK_PLATFORM)/$(SYSLINK_PLATFORM)ipu    \
149                 $(SYSLINK_ROOT)/ti/syslink/family/$(SYSLINK_PLATFORM)/$(SYSLINK_PLATFORM)ipu/$(SYSLINK_PLATFORM)core1   \
150                 $(IPC_REPO)/qnx/src/api/gates
152 EXCLUDE_OBJS = GateMP.o
153 endif
155 include $(MKFILES_ROOT)/qtargets.mk
157 LDFLAGS += -M
159 EXTRA_LIBVPATH += $(INSTALL_ROOT_nto)/usr/lib
161 ifeq ("$(SYSLINK_DEBUG)", "1")
162 EXTRA_LIBVPATH += $(IPC_REPO)/qnx/src/utils/arm/a.g.le.v7
163 LIBS += utils_g
164 else
165 EXTRA_LIBVPATH += $(IPC_REPO)/qnx/src/utils/arm/a.le.v7
166 LIBS += utils
167 endif # ifeq ("$(SYSLINK_DEBUG)", "1")