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

5
Last change on this file since e2cf289 was 33a2faa, checked in by Sebastian Huber <sebastian.huber@…>, on 01/02/18 at 07:04:06

bsps: Add EXTRA_DIST to all BSP Makefile.am

This makes it possible to easily use

EXTRA_DIST += foobar

in fragments.

Update #3254.

  • Property mode set to 100644
File size: 7.9 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#vectors
115include_bsp_HEADERS += ../../../libcpu/@RTEMS_CPU@/@exceptions@/bspsupport/vectors.h
116include_bsp_HEADERS += ../../../libcpu/@RTEMS_CPU@/@exceptions@/bspsupport/irq_supp.h
117
118#vme
119include_bsp_HEADERS += vme/VMEConfig.h \
120    ../../shared/vmeUniverse/vmeUniverse.h \
121    ../../shared/vmeUniverse/vmeUniverseDMA.h \
122    ../../shared/vmeUniverse/vme_am_defs.h \
123    ../../shared/vmeUniverse/vmeTsi148.h \
124    ../../shared/vmeUniverse/vmeTsi148DMA.h \
125    ../../shared/vmeUniverse/bspVmeDmaList.h \
126    ../../shared/vmeUniverse/VME.h \
127    ../../shared/vmeUniverse/VMEDMA.h
128
129libbsp_a_SOURCES += ../shared/vme/vmeconfig.c \
130    ../shared/vme/vme_universe.c \
131    ../../shared/vmeUniverse/vmeUniverse.c \
132    ../../shared/vmeUniverse/vmeTsi148.c \
133    ../../shared/vmeUniverse/bspVmeDmaList.c
134
135#network
136if HAS_NETWORKING
137include_bsp_HEADERS += network/support/early_enet_link_status.h \
138    network/support/bsp_bsdnet_attach.h
139
140noinst_PROGRAMS += network_support.rel
141network_support_rel_SOURCES = network/support/early_link_status.c \
142    network/support/bsp_attach.c
143network_support_rel_CPPFLAGS = $(AM_CPPFLAGS)
144network_support_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
145
146include_bsp_HEADERS += network/if_mve/if_mve_pub.h
147
148noinst_PROGRAMS += network_if_mve_tmp.rel
149network_if_mve_tmp_rel_SOURCES  = network/if_mve/mv643xx_eth.c
150network_if_mve_tmp_rel_CPPFLAGS = $(AM_CPPFLAGS) -DDISABLE_DETACHING
151network_if_mve_tmp_rel_CFLAGS   = $(AM_CFLAGS)
152network_if_mve_tmp_rel_LDFLAGS  = $(RTEMS_RELLDFLAGS)
153
154# remove all unneccessary global symbols to avoid name clashes
155# with BSD stuff;
156network_if_mve.rel: network_if_mve_tmp.rel
157        $(OBJCOPY) -G rtems_mve_attach -G rtems_mve_early_link_check_ops \
158                   -G BSP_mve_ack_irqs -G BSP_mve_disable_irqs \
159                   -G BSP_mve_enable_irqs -G BSP_mve_init_hw \
160                   -G BSP_mve_ack_irq_mask -G BSP_mve_disable_irq_mask \
161                   -G BSP_mve_enable_irq_mask -G BSP_mve_setup_1 \
162                   -G BSP_mve_read_eaddr -G BSP_mve_send_buf \
163                   -G BSP_mve_send_buf_raw \
164                   -G BSP_mve_setup -G BSP_mve_stop_hw \
165                   -G BSP_mve_swipe_rx -G BSP_mve_swipe_tx \
166                   -G BSP_mve_detach -G BSP_mve_media_ioctl \
167                   -G BSP_mve_get_tid \
168                   -G BSP_mve_dump_stats -G BSP_mve_ack_link_chg \
169                   -G BSP_mve_mcast_filter_clear \
170                   -G BSP_mve_mcast_filter_accept_all \
171                   -G BSP_mve_mcast_filter_accept_add \
172                   -G BSP_mve_mcast_filter_accept_del \
173                   -G mveth_serial_ctrl_config_val \
174                   $^ $@
175
176include_bsp_HEADERS += network/if_gfe/if_gfe_pub.h
177
178noinst_PROGRAMS += network_if_gfe_tmp.rel
179network_if_gfe_tmp_rel_SOURCES = network/if_gfe/if_gfe.c network/if_gfe/if_gfe_rtems.c
180network_if_gfe_tmp_rel_CPPFLAGS = $(AM_CPPFLAGS) \
181    -I$(srcdir)/network/porting -I$(srcdir)/network/if_gfe
182network_if_gfe_tmp_rel_CFLAGS   = $(AM_CFLAGS)
183network_if_gfe_tmp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
184
185# remove all unneccessary global symbols to avoid name clashes
186# with BSD stuff;
187network_if_gfe.rel: network_if_gfe_tmp.rel
188        $(OBJCOPY) -G rtems_gfe_attach -G net_driver_ticks_per_sec \
189                   -G rtems_gfe_setup -G rtems_gfe_early_link_check_ops \
190                   $^ $@
191
192
193include_bsp_HEADERS += network/if_em/if_em_pub.h
194
195noinst_PROGRAMS += network_if_em_tmp.rel
196network_if_em_tmp_rel_SOURCES = network/if_em/if_em.c \
197    network/if_em/if_em_hw.c \
198    network/if_em/if_em_rtems.c
199network_if_em_tmp_rel_CPPFLAGS = $(AM_CPPFLAGS) \
200    -I$(srcdir)/network/porting -I$(srcdir)/network/if_em
201network_if_em_tmp_rel_CFLAGS   = $(AM_CFLAGS)
202network_if_em_tmp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
203
204network_if_em.rel: network_if_em_tmp.rel
205        $(OBJCOPY) -G rtems_em_attach -G net_driver_ticks_per_sec \
206                   -G rtems_em_pci_setup -G rtems_em_early_link_check_ops \
207                   $^ $@
208endif
209
210# tod
211libbsp_a_SOURCES += ../../shared/tod.c tod/todcfg.c
212
213libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/shared/cpuIdent.rel \
214    ../../../libcpu/@RTEMS_CPU@/shared/cache.rel \
215    ../../../libcpu/@RTEMS_CPU@/shared/stack.rel \
216    ../../../libcpu/@RTEMS_CPU@/@exceptions@/rtems-cpu.rel \
217    ../../../libcpu/@RTEMS_CPU@/@exceptions@/exc_bspsupport.rel \
218    ../../../libcpu/@RTEMS_CPU@/@exceptions@/irq_bspsupport.rel \
219    ../../../libcpu/@RTEMS_CPU@/mpc6xx/clock.rel \
220    ../../../libcpu/@RTEMS_CPU@/mpc6xx/mmu.rel \
221    ../../../libcpu/@RTEMS_CPU@/mpc6xx/timer.rel \
222    ../../../libcpu/@RTEMS_CPU@/mpc6xx/altivec.rel
223
224if HAS_NETWORKING
225libbsp_a_LIBADD += network_support.rel \
226    network_if_mve.rel network_if_gfe.rel network_if_em.rel
227endif
228
229EXTRA_DIST += README LICENSE
230
231include $(srcdir)/preinstall.am
232include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.