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