1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | ACLOCAL_AMFLAGS = -I ../../../../aclocal |
---|
6 | |
---|
7 | SUBDIRS = . |
---|
8 | CLEANFILES = |
---|
9 | DISTCLEANFILES = |
---|
10 | noinst_PROGRAMS = |
---|
11 | EXTRA_DIST = |
---|
12 | |
---|
13 | |
---|
14 | include $(top_srcdir)/../../../../automake/compile.am |
---|
15 | include $(top_srcdir)/../../bsp.am |
---|
16 | |
---|
17 | include_bspdir = $(includedir)/bsp |
---|
18 | |
---|
19 | dist_project_lib_DATA = bsp_specs |
---|
20 | project_lib_DATA = |
---|
21 | |
---|
22 | #include |
---|
23 | include_HEADERS = include/bsp.h |
---|
24 | |
---|
25 | nodist_include_HEADERS = include/bspopts.h |
---|
26 | nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h |
---|
27 | nodist_include_HEADERS += ../../shared/include/coverhd.h |
---|
28 | nodist_include_HEADERS += ../../shared/include/tm27.h |
---|
29 | DISTCLEANFILES += include/bspopts.h |
---|
30 | |
---|
31 | include_bsp_HEADERS = |
---|
32 | |
---|
33 | #start |
---|
34 | EXTRA_DIST += ../../powerpc/shared/start/rtems_crti.S |
---|
35 | rtems_crti.$(OBJEXT): ../../powerpc/shared/start/rtems_crti.S |
---|
36 | $(CPPASCOMPILE) -DASM -o $@ -c $< |
---|
37 | project_lib_DATA += rtems_crti.$(OBJEXT) |
---|
38 | |
---|
39 | |
---|
40 | EXTRA_DIST += ../../powerpc/shared/start/preload.S |
---|
41 | preload.$(OBJEXT): ../../powerpc/shared/start/preload.S |
---|
42 | $(CPPASCOMPILE) -DASM -o $@ -c $< |
---|
43 | |
---|
44 | EXTRA_DIST += ../../powerpc/shared/start/vectors_entry.S |
---|
45 | vectors_entry.$(OBJEXT): ../../powerpc/shared/start/vectors_entry.S |
---|
46 | $(CPPASCOMPILE) -DASM -o $@ -c $< |
---|
47 | |
---|
48 | EXTRA_DIST += ../../powerpc/shared/start/start.S |
---|
49 | start.$(OBJEXT): ../../powerpc/shared/start/start.S |
---|
50 | $(CPPASCOMPILE) -DASM -o $@ -c $< |
---|
51 | |
---|
52 | motld_start.$(OBJEXT): preload.$(OBJEXT) vectors_entry.$(OBJEXT) start.$(OBJEXT) |
---|
53 | $(LD) -o $@ -r $^ |
---|
54 | |
---|
55 | project_lib_DATA += motld_start.$(OBJEXT) |
---|
56 | |
---|
57 | |
---|
58 | #startup |
---|
59 | |
---|
60 | dist_project_lib_DATA += ../shared/startup/linkcmds |
---|
61 | |
---|
62 | noinst_LIBRARIES = libbsp.a |
---|
63 | libbsp_a_SOURCES = |
---|
64 | |
---|
65 | libbsp_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 | |
---|
79 | include_bsp_HEADERS += ../shared/motorola/vpd.h |
---|
80 | |
---|
81 | #pclock |
---|
82 | libbsp_a_SOURCES += ../../powerpc/shared/clock/p_clock.c |
---|
83 | |
---|
84 | #console |
---|
85 | include_bsp_HEADERS += ../../powerpc/shared/console/consoleIo.h |
---|
86 | include_bsp_HEADERS += ../../powerpc/shared/console/uart.h |
---|
87 | |
---|
88 | libbsp_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 |
---|
95 | include_bsp_HEADERS += irq/irq.h |
---|
96 | |
---|
97 | libbsp_a_SOURCES += irq/irq_init.c irq/discovery_pic.c |
---|
98 | |
---|
99 | #marvell |
---|
100 | include_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 | |
---|
104 | libbsp_a_SOURCES += marvell/discovery.c marvell/gti2c.c marvell/gt_timer.c |
---|
105 | |
---|
106 | #flash |
---|
107 | include_bsp_HEADERS += ../shared/flash/flashPgm.h |
---|
108 | include_bsp_HEADERS += ../shared/flash/flashPgmPvt.h |
---|
109 | |
---|
110 | libbsp_a_SOURCES += ../shared/flash/flash.c \ |
---|
111 | ../shared/flash/intelFlash.c \ |
---|
112 | flash/flashcfg.c |
---|
113 | |
---|
114 | #pci |
---|
115 | include_bsp_HEADERS += ../../powerpc/shared/pci/pci.h |
---|
116 | |
---|
117 | libbsp_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 |
---|
122 | include_bsp_HEADERS += ../../../libcpu/@RTEMS_CPU@/@exceptions@/bspsupport/vectors.h |
---|
123 | include_bsp_HEADERS += ../../../libcpu/@RTEMS_CPU@/@exceptions@/bspsupport/irq_supp.h |
---|
124 | |
---|
125 | #vme |
---|
126 | include_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 | |
---|
136 | libbsp_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 |
---|
143 | if HAS_NETWORKING |
---|
144 | include_bsp_HEADERS += network/support/early_enet_link_status.h \ |
---|
145 | network/support/bsp_bsdnet_attach.h |
---|
146 | |
---|
147 | noinst_PROGRAMS += network_support.rel |
---|
148 | network_support_rel_SOURCES = network/support/early_link_status.c \ |
---|
149 | network/support/bsp_attach.c |
---|
150 | network_support_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
151 | network_support_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
152 | |
---|
153 | include_bsp_HEADERS += network/if_mve/if_mve_pub.h |
---|
154 | |
---|
155 | noinst_PROGRAMS += network_if_mve_tmp.rel |
---|
156 | network_if_mve_tmp_rel_SOURCES = network/if_mve/mv643xx_eth.c |
---|
157 | network_if_mve_tmp_rel_CPPFLAGS = $(AM_CPPFLAGS) -DDISABLE_DETACHING |
---|
158 | network_if_mve_tmp_rel_CFLAGS = $(AM_CFLAGS) |
---|
159 | network_if_mve_tmp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
160 | |
---|
161 | # remove all unneccessary global symbols to avoid name clashes |
---|
162 | # with BSD stuff; |
---|
163 | network_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 | |
---|
183 | include_bsp_HEADERS += network/if_gfe/if_gfe_pub.h |
---|
184 | |
---|
185 | noinst_PROGRAMS += network_if_gfe_tmp.rel |
---|
186 | network_if_gfe_tmp_rel_SOURCES = network/if_gfe/if_gfe.c network/if_gfe/if_gfe_rtems.c |
---|
187 | network_if_gfe_tmp_rel_CPPFLAGS = $(AM_CPPFLAGS) \ |
---|
188 | -I$(srcdir)/network/porting -I$(srcdir)/network/if_gfe |
---|
189 | network_if_gfe_tmp_rel_CFLAGS = $(AM_CFLAGS) |
---|
190 | network_if_gfe_tmp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
191 | |
---|
192 | # remove all unneccessary global symbols to avoid name clashes |
---|
193 | # with BSD stuff; |
---|
194 | network_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 | |
---|
200 | include_bsp_HEADERS += network/if_em/if_em_pub.h |
---|
201 | |
---|
202 | noinst_PROGRAMS += network_if_em_tmp.rel |
---|
203 | network_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 |
---|
206 | network_if_em_tmp_rel_CPPFLAGS = $(AM_CPPFLAGS) \ |
---|
207 | -I$(srcdir)/network/porting -I$(srcdir)/network/if_em |
---|
208 | network_if_em_tmp_rel_CFLAGS = $(AM_CFLAGS) |
---|
209 | network_if_em_tmp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
210 | |
---|
211 | network_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 | $^ $@ |
---|
215 | endif |
---|
216 | |
---|
217 | # tod |
---|
218 | nodist_include_HEADERS += ../../shared/tod.h |
---|
219 | |
---|
220 | libbsp_a_SOURCES += ../../shared/tod.c tod/todcfg.c |
---|
221 | |
---|
222 | libbsp_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 | |
---|
233 | if HAS_NETWORKING |
---|
234 | libbsp_a_LIBADD += network_support.rel \ |
---|
235 | network_if_mve.rel network_if_gfe.rel network_if_em.rel |
---|
236 | endif |
---|
237 | |
---|
238 | all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES) |
---|
239 | |
---|
240 | EXTRA_DIST += README LICENSE ChangeLog |
---|
241 | |
---|
242 | include $(srcdir)/preinstall.am |
---|
243 | include $(top_srcdir)/../../../../automake/local.am |
---|