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

4.115
Last change on this file since e5da4340 was 0959e71, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/26/11 at 12:35:17

2011-01-26 Ralf Corsépius <ralf.corsepius@…>

  • Makefile.am: Remove build_date.c.
  • startup/bspstart.c: Remove BSP_build_date.
  • Property mode set to 100644
File size: 8.0 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
62noinst_LIBRARIES = libbsp.a
63libbsp_a_SOURCES =
64
65libbsp_a_SOURCES += startup/bspstart.c \
66    ../shared/motorola/vpd.c startup/reboot.c startup/i2c_init.c \
67    ../../powerpc/shared/startup/panic.c \
68        ../../powerpc/shared/startup/bspgetworkarea.c \
69    ../../powerpc/shared/startup/probeMemEnd.c \
70    ../../powerpc/shared/startup/pretaskinghook.c \
71    ../../powerpc/shared/startup/zerobss.c \
72    ../../powerpc/shared/startup/pgtbl_setup.c \
73    ../../powerpc/shared/startup/pgtbl_activate.c \
74    ../../powerpc/shared/startup/sbrk.c ../../shared/bootcard.c \
75    startup/bspclean.c ../../shared/bsplibc.c ../../shared/bsppost.c \
76        ../../shared/bsppredriverhook.c \
77    ../../shared/gnatinstallhandler.c
78
79include_bsp_HEADERS += ../shared/motorola/vpd.h
80
81#pclock
82libbsp_a_SOURCES += ../../powerpc/shared/clock/p_clock.c
83
84#console
85include_bsp_HEADERS += ../../powerpc/shared/console/consoleIo.h
86include_bsp_HEADERS += ../../powerpc/shared/console/uart.h
87
88libbsp_a_SOURCES +=  \
89    ../../powerpc/shared/console/uart.c \
90    ../../powerpc/shared/console/console.c \
91        ../../powerpc/shared/console/consoleIo.h \
92        ../../powerpc/shared/console/uart.h
93
94#irq
95include_bsp_HEADERS += irq/irq.h
96
97libbsp_a_SOURCES += irq/irq_init.c irq/discovery_pic.c
98
99#marvell
100include_bsp_HEADERS += marvell/gtreg.h marvell/gtintrreg.h \
101    marvell/gti2creg.h marvell/gti2c_busdrv.h marvell/gt_timer.h \
102        marvell/gtpcireg.h
103
104libbsp_a_SOURCES += marvell/discovery.c marvell/gti2c.c marvell/gt_timer.c
105
106#flash
107include_bsp_HEADERS += ../shared/flash/flashPgm.h
108include_bsp_HEADERS += ../shared/flash/flashPgmPvt.h
109
110libbsp_a_SOURCES += ../shared/flash/flash.c \
111        ../shared/flash/intelFlash.c \
112        flash/flashcfg.c
113
114#pci
115include_bsp_HEADERS += ../../powerpc/shared/pci/pci.h
116
117libbsp_a_SOURCES += ../../powerpc/shared/pci/pci.c \
118    pci/gt_pci_init.c pci/pci_io_remap.c pci/motload_fixup.c \
119    ../../powerpc/shared/pci/pcifinddevice.c
120
121#vectors
122include_bsp_HEADERS += ../../../libcpu/@RTEMS_CPU@/@exceptions@/bspsupport/vectors.h
123include_bsp_HEADERS += ../../../libcpu/@RTEMS_CPU@/@exceptions@/bspsupport/irq_supp.h
124
125#vme
126include_bsp_HEADERS += vme/VMEConfig.h \
127    ../../shared/vmeUniverse/vmeUniverse.h \
128    ../../shared/vmeUniverse/vmeUniverseDMA.h \
129    ../../shared/vmeUniverse/vme_am_defs.h \
130    ../../shared/vmeUniverse/vmeTsi148.h \
131    ../../shared/vmeUniverse/vmeTsi148DMA.h \
132    ../../shared/vmeUniverse/bspVmeDmaList.h \
133    ../../shared/vmeUniverse/VME.h \
134    ../../shared/vmeUniverse/VMEDMA.h
135
136libbsp_a_SOURCES += ../shared/vme/vmeconfig.c \
137        ../shared/vme/vme_universe.c \
138    ../../shared/vmeUniverse/vmeUniverse.c \
139    ../../shared/vmeUniverse/vmeTsi148.c \
140        ../../shared/vmeUniverse/bspVmeDmaList.c
141
142#network
143if HAS_NETWORKING
144include_bsp_HEADERS += network/support/early_enet_link_status.h \
145    network/support/bsp_bsdnet_attach.h
146
147noinst_PROGRAMS += network_support.rel
148network_support_rel_SOURCES = network/support/early_link_status.c \
149    network/support/bsp_attach.c
150network_support_rel_CPPFLAGS = $(AM_CPPFLAGS)
151network_support_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
152
153include_bsp_HEADERS += network/if_mve/if_mve_pub.h
154
155noinst_PROGRAMS += network_if_mve_tmp.rel
156network_if_mve_tmp_rel_SOURCES  = network/if_mve/mv643xx_eth.c
157network_if_mve_tmp_rel_CPPFLAGS = $(AM_CPPFLAGS) -DDISABLE_DETACHING
158network_if_mve_tmp_rel_CFLAGS   = $(AM_CFLAGS)
159network_if_mve_tmp_rel_LDFLAGS  = $(RTEMS_RELLDFLAGS)
160
161# remove all unneccessary global symbols to avoid name clashes
162# with BSD stuff;
163network_if_mve.rel: network_if_mve_tmp.rel
164        $(OBJCOPY) -G rtems_mve_attach -G rtems_mve_early_link_check_ops \
165                   -G BSP_mve_ack_irqs -G BSP_mve_disable_irqs \
166                   -G BSP_mve_enable_irqs -G BSP_mve_init_hw \
167                   -G BSP_mve_ack_irq_mask -G BSP_mve_disable_irq_mask \
168                   -G BSP_mve_enable_irq_mask -G BSP_mve_setup_1 \
169                   -G BSP_mve_read_eaddr -G BSP_mve_send_buf \
170               -G BSP_mve_send_buf_raw \
171                   -G BSP_mve_setup -G BSP_mve_stop_hw \
172                   -G BSP_mve_swipe_rx -G BSP_mve_swipe_tx \
173                   -G BSP_mve_detach -G BSP_mve_media_ioctl \
174                           -G BSP_mve_get_tid \
175                           -G BSP_mve_dump_stats -G BSP_mve_ack_link_chg \
176                           -G BSP_mve_mcast_filter_clear \
177                           -G BSP_mve_mcast_filter_accept_all \
178                           -G BSP_mve_mcast_filter_accept_add \
179                           -G BSP_mve_mcast_filter_accept_del \
180                           -G mveth_serial_ctrl_config_val \
181                   $^ $@
182
183include_bsp_HEADERS += network/if_gfe/if_gfe_pub.h
184
185noinst_PROGRAMS += network_if_gfe_tmp.rel
186network_if_gfe_tmp_rel_SOURCES = network/if_gfe/if_gfe.c network/if_gfe/if_gfe_rtems.c
187network_if_gfe_tmp_rel_CPPFLAGS = $(AM_CPPFLAGS) \
188    -I$(srcdir)/network/porting -I$(srcdir)/network/if_gfe
189network_if_gfe_tmp_rel_CFLAGS   = $(AM_CFLAGS)
190network_if_gfe_tmp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
191
192# remove all unneccessary global symbols to avoid name clashes
193# with BSD stuff;
194network_if_gfe.rel: network_if_gfe_tmp.rel
195        $(OBJCOPY) -G rtems_gfe_attach -G net_driver_ticks_per_sec \
196                   -G rtems_gfe_setup -G rtems_gfe_early_link_check_ops \
197                   $^ $@
198
199
200include_bsp_HEADERS += network/if_em/if_em_pub.h
201
202noinst_PROGRAMS += network_if_em_tmp.rel
203network_if_em_tmp_rel_SOURCES = network/if_em/if_em.c \
204    network/if_em/if_em_hw.c \
205    network/if_em/if_em_rtems.c
206network_if_em_tmp_rel_CPPFLAGS = $(AM_CPPFLAGS) \
207    -I$(srcdir)/network/porting -I$(srcdir)/network/if_em
208network_if_em_tmp_rel_CFLAGS   = $(AM_CFLAGS)
209network_if_em_tmp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
210
211network_if_em.rel: network_if_em_tmp.rel
212        $(OBJCOPY) -G rtems_em_attach -G net_driver_ticks_per_sec \
213                   -G rtems_em_pci_setup -G rtems_em_early_link_check_ops \
214                   $^ $@
215endif
216
217# tod
218nodist_include_HEADERS += ../../shared/tod.h
219
220libbsp_a_SOURCES += ../../shared/tod.c tod/todcfg.c
221
222libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/shared/cpuIdent.rel \
223    ../../../libcpu/@RTEMS_CPU@/shared/cache.rel \
224    ../../../libcpu/@RTEMS_CPU@/shared/stack.rel \
225    ../../../libcpu/@RTEMS_CPU@/@exceptions@/rtems-cpu.rel \
226    ../../../libcpu/@RTEMS_CPU@/@exceptions@/exc_bspsupport.rel \
227    ../../../libcpu/@RTEMS_CPU@/@exceptions@/irq_bspsupport.rel \
228    ../../../libcpu/@RTEMS_CPU@/mpc6xx/clock.rel \
229    ../../../libcpu/@RTEMS_CPU@/mpc6xx/mmu.rel \
230    ../../../libcpu/@RTEMS_CPU@/mpc6xx/timer.rel \
231    ../../../libcpu/@RTEMS_CPU@/mpc6xx/altivec.rel
232
233if HAS_NETWORKING
234libbsp_a_LIBADD += network_support.rel \
235    network_if_mve.rel network_if_gfe.rel network_if_em.rel
236endif
237
238all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
239
240EXTRA_DIST += README LICENSE ChangeLog
241
242include $(srcdir)/preinstall.am
243include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.