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

4.115
Last change on this file since 33a105fb was 33a105fb, checked in by Joel Sherrill <joel.sherrill@…>, on 05/07/12 at 16:08:48

Revert: Remove CVS Ids

See http://www.rtems.org/pipermail/rtems-devel/2012-May/001006.html
for details.

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