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

4.115
Last change on this file since 8a0a414 was 8a0a414, checked in by Ralf Corsepius <ralf.corsepius@…>, on 09/29/10 at 14:28:53

2010-09-29 Ralf Corsépius <ralf.corsepius@…>

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