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

4.104.115
Last change on this file since 06731d6 was 06731d6, checked in by Joel Sherrill <joel.sherrill@…>, on 12/03/09 at 18:21:38

2009-12-03 Joel Sherrill <joel.sherrill@…>

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