source: rtems/c/src/lib/libbsp/powerpc/beatnik/Makefile.am @ 010bf86

5
Last change on this file since 010bf86 was 010bf86, checked in by Chris Johns <chrisj@…>, on 01/04/18 at 07:54:29

bsps/powerpc: Use public include path

Update #3254.

  • Property mode set to 100644
File size: 7.7 KB
Line 
1ACLOCAL_AMFLAGS = -I ../../../../aclocal
2EXTRA_DIST =
3
4CLEANFILES      =
5DISTCLEANFILES  =
6noinst_PROGRAMS =
7
8include $(top_srcdir)/../../../../automake/compile.am
9include $(top_srcdir)/../../bsp.am
10
11include_bspdir = $(includedir)/bsp
12
13dist_project_lib_DATA = bsp_specs
14project_lib_DATA      =
15
16#include
17include_HEADERS = include/bsp.h
18
19nodist_include_HEADERS = include/bspopts.h
20nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
21nodist_include_HEADERS += include/tm27.h
22DISTCLEANFILES += include/bspopts.h
23
24include_bsp_HEADERS =
25
26#start
27EXTRA_DIST += ../../powerpc/shared/start/rtems_crti.S
28rtems_crti.$(OBJEXT): ../../powerpc/shared/start/rtems_crti.S
29        $(CPPASCOMPILE) -DASM -o $@ -c $<
30project_lib_DATA += rtems_crti.$(OBJEXT)
31
32
33EXTRA_DIST += ../../powerpc/shared/start/preload.S
34preload.$(OBJEXT): ../../powerpc/shared/start/preload.S
35        $(CPPASCOMPILE) -DASM -o $@ -c $<
36
37EXTRA_DIST += ../../powerpc/shared/start/vectors_entry.S
38vectors_entry.$(OBJEXT): ../../powerpc/shared/start/vectors_entry.S
39        $(CPPASCOMPILE) -DASM -o $@ -c $<
40
41EXTRA_DIST += ../../powerpc/shared/start/start.S
42start.$(OBJEXT): ../../powerpc/shared/start/start.S
43        $(CPPASCOMPILE) -DASM -o $@ -c $<
44
45motld_start.$(OBJEXT):  preload.$(OBJEXT) vectors_entry.$(OBJEXT) start.$(OBJEXT)
46        $(LD) -o $@ -r $^
47
48project_lib_DATA += motld_start.$(OBJEXT)
49
50
51#startup
52
53dist_project_lib_DATA += ../shared/startup/linkcmds.share
54dist_project_lib_DATA += startup/linkcmds
55
56noinst_LIBRARIES = libbsp.a
57libbsp_a_SOURCES =
58
59libbsp_a_SOURCES += startup/bspstart.c \
60    ../shared/motorola/vpd.c startup/bspreset.c startup/i2c_init.c \
61    ../../powerpc/shared/startup/bspgetworkarea.c \
62    ../../powerpc/shared/startup/probeMemEnd.c \
63    ../../powerpc/shared/startup/bsppredriverhook.c \
64    ../../powerpc/shared/startup/zerobss.c \
65    ../../powerpc/shared/startup/pgtbl_setup.c \
66    ../../powerpc/shared/startup/pgtbl_activate.c \
67    ../../powerpc/shared/startup/sbrk.c ../../shared/bootcard.c \
68    ../../shared/getentropy-cpucounter.c \
69    startup/bspclean.c \
70    ../../shared/gnatinstallhandler.c
71
72include_bsp_HEADERS += ../shared/motorola/vpd.h
73
74#pclock
75libbsp_a_SOURCES += ../../powerpc/shared/clock/p_clock.c
76
77#console
78include_bsp_HEADERS += ../../powerpc/shared/console/consoleIo.h
79include_bsp_HEADERS += ../../powerpc/shared/console/uart.h
80
81libbsp_a_SOURCES +=  \
82    ../../powerpc/shared/console/uart.c \
83    ../../powerpc/shared/console/console.c \
84    ../../powerpc/shared/console/consoleIo.h \
85    ../../powerpc/shared/console/uart.h
86
87#irq
88include_bsp_HEADERS += irq/irq.h
89
90libbsp_a_SOURCES += irq/irq_init.c irq/discovery_pic.c
91
92#marvell
93include_bsp_HEADERS += marvell/gtreg.h marvell/gtintrreg.h \
94    marvell/gti2creg.h marvell/gti2c_busdrv.h marvell/gt_timer.h \
95    marvell/gtpcireg.h
96
97libbsp_a_SOURCES += marvell/discovery.c marvell/gti2c.c marvell/gt_timer.c
98
99#flash
100include_bsp_HEADERS += ../shared/flash/flashPgm.h
101include_bsp_HEADERS += ../shared/flash/flashPgmPvt.h
102
103libbsp_a_SOURCES += ../shared/flash/flash.c \
104    ../shared/flash/intelFlash.c \
105    flash/flashcfg.c
106
107#pci
108include_bsp_HEADERS += ../../powerpc/shared/pci/pci.h
109
110libbsp_a_SOURCES += ../../powerpc/shared/pci/pci.c \
111    pci/gt_pci_init.c pci/pci_io_remap.c pci/motload_fixup.c \
112    ../../powerpc/shared/pci/pcifinddevice.c
113
114#vme
115include_bsp_HEADERS += vme/VMEConfig.h \
116    ../../shared/vmeUniverse/vmeUniverse.h \
117    ../../shared/vmeUniverse/vmeUniverseDMA.h \
118    ../../shared/vmeUniverse/vme_am_defs.h \
119    ../../shared/vmeUniverse/vmeTsi148.h \
120    ../../shared/vmeUniverse/vmeTsi148DMA.h \
121    ../../shared/vmeUniverse/bspVmeDmaList.h \
122    ../../shared/vmeUniverse/VME.h \
123    ../../shared/vmeUniverse/VMEDMA.h
124
125libbsp_a_SOURCES += ../shared/vme/vmeconfig.c \
126    ../shared/vme/vme_universe.c \
127    ../../shared/vmeUniverse/vmeUniverse.c \
128    ../../shared/vmeUniverse/vmeTsi148.c \
129    ../../shared/vmeUniverse/bspVmeDmaList.c
130
131#network
132if HAS_NETWORKING
133include_bsp_HEADERS += network/support/early_enet_link_status.h \
134    network/support/bsp_bsdnet_attach.h
135
136noinst_PROGRAMS += network_support.rel
137network_support_rel_SOURCES = network/support/early_link_status.c \
138    network/support/bsp_attach.c
139network_support_rel_CPPFLAGS = $(AM_CPPFLAGS)
140network_support_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
141
142include_bsp_HEADERS += network/if_mve/if_mve_pub.h
143
144noinst_PROGRAMS += network_if_mve_tmp.rel
145network_if_mve_tmp_rel_SOURCES  = network/if_mve/mv643xx_eth.c
146network_if_mve_tmp_rel_CPPFLAGS = $(AM_CPPFLAGS) -DDISABLE_DETACHING
147network_if_mve_tmp_rel_CFLAGS   = $(AM_CFLAGS)
148network_if_mve_tmp_rel_LDFLAGS  = $(RTEMS_RELLDFLAGS)
149
150# remove all unneccessary global symbols to avoid name clashes
151# with BSD stuff;
152network_if_mve.rel: network_if_mve_tmp.rel
153        $(OBJCOPY) -G rtems_mve_attach -G rtems_mve_early_link_check_ops \
154                   -G BSP_mve_ack_irqs -G BSP_mve_disable_irqs \
155                   -G BSP_mve_enable_irqs -G BSP_mve_init_hw \
156                   -G BSP_mve_ack_irq_mask -G BSP_mve_disable_irq_mask \
157                   -G BSP_mve_enable_irq_mask -G BSP_mve_setup_1 \
158                   -G BSP_mve_read_eaddr -G BSP_mve_send_buf \
159                   -G BSP_mve_send_buf_raw \
160                   -G BSP_mve_setup -G BSP_mve_stop_hw \
161                   -G BSP_mve_swipe_rx -G BSP_mve_swipe_tx \
162                   -G BSP_mve_detach -G BSP_mve_media_ioctl \
163                   -G BSP_mve_get_tid \
164                   -G BSP_mve_dump_stats -G BSP_mve_ack_link_chg \
165                   -G BSP_mve_mcast_filter_clear \
166                   -G BSP_mve_mcast_filter_accept_all \
167                   -G BSP_mve_mcast_filter_accept_add \
168                   -G BSP_mve_mcast_filter_accept_del \
169                   -G mveth_serial_ctrl_config_val \
170                   $^ $@
171
172include_bsp_HEADERS += network/if_gfe/if_gfe_pub.h
173
174noinst_PROGRAMS += network_if_gfe_tmp.rel
175network_if_gfe_tmp_rel_SOURCES = network/if_gfe/if_gfe.c network/if_gfe/if_gfe_rtems.c
176network_if_gfe_tmp_rel_CPPFLAGS = $(AM_CPPFLAGS) \
177    -I$(srcdir)/network/porting -I$(srcdir)/network/if_gfe
178network_if_gfe_tmp_rel_CFLAGS   = $(AM_CFLAGS)
179network_if_gfe_tmp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
180
181# remove all unneccessary global symbols to avoid name clashes
182# with BSD stuff;
183network_if_gfe.rel: network_if_gfe_tmp.rel
184        $(OBJCOPY) -G rtems_gfe_attach -G net_driver_ticks_per_sec \
185                   -G rtems_gfe_setup -G rtems_gfe_early_link_check_ops \
186                   $^ $@
187
188
189include_bsp_HEADERS += network/if_em/if_em_pub.h
190
191noinst_PROGRAMS += network_if_em_tmp.rel
192network_if_em_tmp_rel_SOURCES = network/if_em/if_em.c \
193    network/if_em/if_em_hw.c \
194    network/if_em/if_em_rtems.c
195network_if_em_tmp_rel_CPPFLAGS = $(AM_CPPFLAGS) \
196    -I$(srcdir)/network/porting -I$(srcdir)/network/if_em
197network_if_em_tmp_rel_CFLAGS   = $(AM_CFLAGS)
198network_if_em_tmp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
199
200network_if_em.rel: network_if_em_tmp.rel
201        $(OBJCOPY) -G rtems_em_attach -G net_driver_ticks_per_sec \
202                   -G rtems_em_pci_setup -G rtems_em_early_link_check_ops \
203                   $^ $@
204endif
205
206# tod
207libbsp_a_SOURCES += ../../shared/tod.c tod/todcfg.c
208
209libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/shared/cpuIdent.rel \
210    ../../../libcpu/@RTEMS_CPU@/shared/cache.rel \
211    ../../../libcpu/@RTEMS_CPU@/shared/stack.rel \
212    ../../../libcpu/@RTEMS_CPU@/@exceptions@/rtems-cpu.rel \
213    ../../../libcpu/@RTEMS_CPU@/@exceptions@/exc_bspsupport.rel \
214    ../../../libcpu/@RTEMS_CPU@/@exceptions@/irq_bspsupport.rel \
215    ../../../libcpu/@RTEMS_CPU@/mpc6xx/clock.rel \
216    ../../../libcpu/@RTEMS_CPU@/mpc6xx/mmu.rel \
217    ../../../libcpu/@RTEMS_CPU@/mpc6xx/timer.rel \
218    ../../../libcpu/@RTEMS_CPU@/mpc6xx/altivec.rel
219
220if HAS_NETWORKING
221libbsp_a_LIBADD += network_support.rel \
222    network_if_mve.rel network_if_gfe.rel network_if_em.rel
223endif
224
225EXTRA_DIST += README LICENSE
226
227include $(srcdir)/preinstall.am
228include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.