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