]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/blob - linux/src/daemon/Makefile.am
Linux: Update user AF_RPMSG define for 5.15+ kernels
[ipc/ipcdev.git] / linux / src / daemon / Makefile.am
1 ##
2 ##  Copyright (c) 2013-2018 Texas Instruments Incorporated - http://www.ti.com
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 ##
31 ## ======== src/daemon/Makefile.am ========
32 ##
34 # additional include paths necessary to compile the program
35 AM_CFLAGS = -I$(top_srcdir)/hlos_common/include -D_GNU_SOURCE -Wall -pthread \
36         -DKERNEL_INSTALL_DIR="$(KERNEL_INSTALL_DIR)"
38 if DRA7XX
39 AM_CFLAGS += -DGATEMP_SUPPORT
40 endif
42 if KERNEL_INSTALL_DIR
43 AM_CFLAGS += -I$(KERNEL_INSTALL_DIR)/include/generated/uapi
44 endif
46 if AF_RPMSG
47 AM_CFLAGS += -DAF_RPMSG=$(AF_RPMSG)
48 endif
50 AM_CFLAGS += -I$(top_srcdir)/linux/include -I$(top_srcdir)/packages @AM_CFLAGS@
52 ###############################################################################
53 # THE PROGRAMS TO BUILD
54 ###############################################################################
56 # the program to build (the names of the final binaries)
57 bin_PROGRAMS =
59 if OMAP54XX_SMP
60   bin_PROGRAMS += lad_omap54xx_smp
61 else
62 if DRA7XX
63   bin_PROGRAMS += lad_dra7xx
64 else
65 if OMAPL138
66   bin_PROGRAMS += lad_omapl138
67 else
68 if C66AK2E
69   bin_PROGRAMS += lad_66ak2e
70 else
71 if TCI6614
72   bin_PROGRAMS += lad_tci6614
73 else
74 if TCI6630
75   bin_PROGRAMS += lad_tci6630
76 else
77 if TCI6636
78   bin_PROGRAMS += lad_tci6636
79 else
80 if TCI6638
81   bin_PROGRAMS += lad_tci6638
82 else
83 if C66AK2G
84   bin_PROGRAMS += lad_66ak2g
85 else
86 if AM65XX
87   bin_PROGRAMS += lad_am65xx
88 else
89   bin_PROGRAMS += lad_omap54xx_smp lad_dra7xx lad_omapl138 lad_66ak2e lad_tci6614 lad_tci6630 lad_tci6636 lad_tci6638 lad_66ak2g lad_am65xx
90 endif
91 endif
92 endif
93 endif
94 endif
95 endif
96 endif
97 endif
98 endif
99 endif
101 common_sources = \
102                 lad.c \
103                 Ipc_daemon.c \
104                 cfg/IpcCfg.c \
105                 MessageQ_daemon.c \
106                 cfg/MessageQCfg.c \
107                 MultiProc_daemon.c \
108                 NameServer_daemon.c \
109                 $(top_srcdir)/linux/include/ti/ipc/Std.h \
110                 $(top_srcdir)/hlos_common/include/_NameServerRemoteRpmsg.h \
111                 $(top_srcdir)/hlos_common/include/_MessageQ.h \
112                 $(top_srcdir)/hlos_common/include/_NameServer.h \
113                 $(top_srcdir)/linux/include/_Ipc.h \
114                 $(top_srcdir)/linux/include/_MultiProc.h \
115                 $(top_srcdir)/linux/include/_lad.h \
116                 $(top_srcdir)/linux/include/SocketFxns.h \
117                 $(top_srcdir)/linux/include/ladclient.h \
118                 $(top_srcdir)/linux/include/net/rpmsg.h \
119                 $(top_srcdir)/packages/ti/ipc/MessageQ.h \
120                 $(top_srcdir)/packages/ti/ipc/NameServer.h \
121                 $(top_srcdir)/packages/ti/ipc/MultiProc.h
123 common_sources += \
124                 GateMP_daemon.c \
125                 GateHWSpinlock.c \
126                 GateHWSpinlock_daemon.c \
127                 cfg/GateHWSpinlockCfg_dra7xx.c \
128                 $(top_srcdir)/linux/src/api/gates/GateMutex.c \
129                 $(top_srcdir)/linux/include/_GateMP.h \
130                 $(top_srcdir)/linux/include/_GateMP_daemon.h \
131                 $(top_srcdir)/linux/include/IGateProvider.h \
132                 $(top_srcdir)/linux/include/GateHWSpinlock.h \
133                 $(top_srcdir)/linux/include/GateMutex.h \
134                 $(top_srcdir)/linux/include/GateMP_config.h \
135                 $(top_srcdir)/packages/ti/ipc/GateMP.h
137 # list of sources for the 'lad' binary and to add to the source distribution
139 # NOTE:  6636_SOURCES using 6638.c is not a typo!  6636 has the same
140 # MultiProc config as 6638, so we reuse that source file.
141 lad_omap54xx_smp_SOURCES = $(common_sources) cfg/MultiProcCfg_omap54xx_smp.c
142 lad_dra7xx_SOURCES = $(common_sources) cfg/MultiProcCfg_dra7xx.c
143 lad_omapl138_SOURCES = $(common_sources) cfg/MultiProcCfg_omapl138.c
144 lad_66ak2e_SOURCES = $(common_sources) cfg/MultiProcCfg_66ak2e.c
145 lad_tci6614_SOURCES = $(common_sources) cfg/MultiProcCfg_tci6614.c
146 lad_tci6630_SOURCES = $(common_sources) cfg/MultiProcCfg_tci6630.c
147 lad_tci6636_SOURCES = $(common_sources) cfg/MultiProcCfg_tci6638.c
148 lad_tci6638_SOURCES = $(common_sources) cfg/MultiProcCfg_tci6638.c
149 lad_66ak2g_SOURCES = $(common_sources) cfg/MultiProcCfg_66ak2g.c
150 lad_am65xx_SOURCES = $(common_sources) cfg/MultiProcCfg_am65xx.c
152 common_libraries = -lpthread \
153                 $(top_builddir)/linux/src/utils/libtiipcutils_lad.la
155 # the additional libraries needed to link program
156 lad_omap54xx_smp_LDADD = $(common_libraries) \
157                 $(AM_LDFLAGS)
158 lad_dra7xx_LDADD = $(common_libraries) \
159                 $(AM_LDFLAGS)
160 lad_omapl138_LDADD = $(common_libraries) \
161                 $(AM_LDFLAGS)
162 lad_66ak2e_LDADD = $(common_libraries) \
163                 $(AM_LDFLAGS)
164 lad_tci6614_LDADD = $(common_libraries) \
165                 $(AM_LDFLAGS)
166 lad_tci6630_LDADD = $(common_libraries) \
167                 $(AM_LDFLAGS)
168 lad_tci6636_LDADD = $(common_libraries) \
169                 $(AM_LDFLAGS)
170 lad_tci6638_LDADD = $(common_libraries) \
171                 $(AM_LDFLAGS)
172 lad_66ak2g_LDADD = $(common_libraries) \
173                 $(AM_LDFLAGS)
174 lad_am65xx_LDADD = $(common_libraries) \
175                 $(AM_LDFLAGS)
177 ###############################################################################