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 | dist_project_lib_DATA = startup/bsp_specs |
---|
12 | |
---|
13 | project_lib_DATA = |
---|
14 | |
---|
15 | #include |
---|
16 | DISTCLEANFILES += include/bspopts.h |
---|
17 | |
---|
18 | #start |
---|
19 | EXTRA_DIST += ../../powerpc/shared/start/rtems_crti.S |
---|
20 | rtems_crti.$(OBJEXT): ../../powerpc/shared/start/rtems_crti.S |
---|
21 | $(CPPASCOMPILE) -DASM -o $@ -c $< |
---|
22 | project_lib_DATA += rtems_crti.$(OBJEXT) |
---|
23 | |
---|
24 | |
---|
25 | EXTRA_DIST += ../../powerpc/shared/start/preload.S |
---|
26 | preload.$(OBJEXT): ../../powerpc/shared/start/preload.S |
---|
27 | $(CPPASCOMPILE) -DASM -o $@ -c $< |
---|
28 | |
---|
29 | EXTRA_DIST += ../../powerpc/shared/start/vectors_entry.S |
---|
30 | vectors_entry.$(OBJEXT): ../../powerpc/shared/start/vectors_entry.S |
---|
31 | $(CPPASCOMPILE) -DASM -o $@ -c $< |
---|
32 | |
---|
33 | EXTRA_DIST += ../../powerpc/shared/start/start.S |
---|
34 | start.$(OBJEXT): ../../powerpc/shared/start/start.S |
---|
35 | $(CPPASCOMPILE) -DASM -o $@ -c $< |
---|
36 | |
---|
37 | motld_start.$(OBJEXT): preload.$(OBJEXT) vectors_entry.$(OBJEXT) start.$(OBJEXT) |
---|
38 | $(LD) -o $@ -r $^ |
---|
39 | |
---|
40 | project_lib_DATA += motld_start.$(OBJEXT) |
---|
41 | |
---|
42 | |
---|
43 | #startup |
---|
44 | |
---|
45 | project_lib_DATA += linkcmds |
---|
46 | dist_project_lib_DATA += ../shared/startup/linkcmds.share |
---|
47 | |
---|
48 | noinst_LIBRARIES = libbsp.a |
---|
49 | libbsp_a_SOURCES = |
---|
50 | |
---|
51 | libbsp_a_SOURCES += startup/bspstart.c \ |
---|
52 | ../shared/motorola/vpd.c startup/bspreset.c startup/i2c_init.c \ |
---|
53 | ../../powerpc/shared/startup/bspgetworkarea.c \ |
---|
54 | ../../powerpc/shared/startup/probeMemEnd.c \ |
---|
55 | ../../powerpc/shared/startup/bsppredriverhook.c \ |
---|
56 | ../../powerpc/shared/startup/zerobss.c \ |
---|
57 | ../../powerpc/shared/startup/pgtbl_setup.c \ |
---|
58 | ../../powerpc/shared/startup/pgtbl_activate.c \ |
---|
59 | ../../powerpc/shared/startup/sbrk.c ../../shared/bootcard.c \ |
---|
60 | ../../shared/getentropy-cpucounter.c \ |
---|
61 | startup/bspclean.c \ |
---|
62 | ../../shared/gnatinstallhandler.c |
---|
63 | |
---|
64 | #pclock |
---|
65 | libbsp_a_SOURCES += ../../powerpc/shared/clock/p_clock.c |
---|
66 | |
---|
67 | #console |
---|
68 | libbsp_a_SOURCES += \ |
---|
69 | ../../powerpc/shared/console/uart.c \ |
---|
70 | ../../powerpc/shared/console/console.c \ |
---|
71 | ../../powerpc/shared/console/consoleIo.h \ |
---|
72 | ../../powerpc/shared/console/uart.h |
---|
73 | |
---|
74 | #irq |
---|
75 | libbsp_a_SOURCES += irq/irq_init.c irq/discovery_pic.c |
---|
76 | |
---|
77 | #marvell |
---|
78 | libbsp_a_SOURCES += marvell/discovery.c marvell/gti2c.c marvell/gt_timer.c |
---|
79 | |
---|
80 | #flash |
---|
81 | libbsp_a_SOURCES += ../shared/flash/flash.c \ |
---|
82 | ../shared/flash/intelFlash.c \ |
---|
83 | flash/flashcfg.c |
---|
84 | |
---|
85 | #pci |
---|
86 | libbsp_a_SOURCES += ../../powerpc/shared/pci/pci.c \ |
---|
87 | pci/gt_pci_init.c pci/pci_io_remap.c pci/motload_fixup.c \ |
---|
88 | ../../powerpc/shared/pci/pcifinddevice.c |
---|
89 | |
---|
90 | #vme |
---|
91 | libbsp_a_SOURCES += ../shared/vme/vmeconfig.c \ |
---|
92 | ../shared/vme/vme_universe.c \ |
---|
93 | ../../shared/vmeUniverse/vmeUniverse.c \ |
---|
94 | ../../shared/vmeUniverse/vmeTsi148.c \ |
---|
95 | ../../shared/vmeUniverse/bspVmeDmaList.c |
---|
96 | |
---|
97 | #network |
---|
98 | if HAS_NETWORKING |
---|
99 | noinst_PROGRAMS += network_support.rel |
---|
100 | network_support_rel_SOURCES = network/support/early_link_status.c \ |
---|
101 | network/support/bsp_attach.c |
---|
102 | network_support_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
103 | network_support_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
104 | |
---|
105 | noinst_PROGRAMS += network_if_mve_tmp.rel |
---|
106 | network_if_mve_tmp_rel_SOURCES = network/if_mve/mv643xx_eth.c |
---|
107 | network_if_mve_tmp_rel_CPPFLAGS = $(AM_CPPFLAGS) -DDISABLE_DETACHING |
---|
108 | network_if_mve_tmp_rel_CFLAGS = $(AM_CFLAGS) |
---|
109 | network_if_mve_tmp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
110 | |
---|
111 | # remove all unneccessary global symbols to avoid name clashes |
---|
112 | # with BSD stuff; |
---|
113 | network_if_mve.rel: network_if_mve_tmp.rel |
---|
114 | $(OBJCOPY) -G rtems_mve_attach -G rtems_mve_early_link_check_ops \ |
---|
115 | -G BSP_mve_ack_irqs -G BSP_mve_disable_irqs \ |
---|
116 | -G BSP_mve_enable_irqs -G BSP_mve_init_hw \ |
---|
117 | -G BSP_mve_ack_irq_mask -G BSP_mve_disable_irq_mask \ |
---|
118 | -G BSP_mve_enable_irq_mask -G BSP_mve_setup_1 \ |
---|
119 | -G BSP_mve_read_eaddr -G BSP_mve_send_buf \ |
---|
120 | -G BSP_mve_send_buf_raw \ |
---|
121 | -G BSP_mve_setup -G BSP_mve_stop_hw \ |
---|
122 | -G BSP_mve_swipe_rx -G BSP_mve_swipe_tx \ |
---|
123 | -G BSP_mve_detach -G BSP_mve_media_ioctl \ |
---|
124 | -G BSP_mve_get_tid \ |
---|
125 | -G BSP_mve_dump_stats -G BSP_mve_ack_link_chg \ |
---|
126 | -G BSP_mve_mcast_filter_clear \ |
---|
127 | -G BSP_mve_mcast_filter_accept_all \ |
---|
128 | -G BSP_mve_mcast_filter_accept_add \ |
---|
129 | -G BSP_mve_mcast_filter_accept_del \ |
---|
130 | -G mveth_serial_ctrl_config_val \ |
---|
131 | $^ $@ |
---|
132 | |
---|
133 | noinst_PROGRAMS += network_if_gfe_tmp.rel |
---|
134 | network_if_gfe_tmp_rel_SOURCES = network/if_gfe/if_gfe.c network/if_gfe/if_gfe_rtems.c |
---|
135 | network_if_gfe_tmp_rel_CPPFLAGS = $(AM_CPPFLAGS) \ |
---|
136 | -I$(srcdir)/network/porting -I$(srcdir)/network/if_gfe |
---|
137 | network_if_gfe_tmp_rel_CFLAGS = $(AM_CFLAGS) |
---|
138 | network_if_gfe_tmp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
139 | |
---|
140 | # remove all unneccessary global symbols to avoid name clashes |
---|
141 | # with BSD stuff; |
---|
142 | network_if_gfe.rel: network_if_gfe_tmp.rel |
---|
143 | $(OBJCOPY) -G rtems_gfe_attach -G net_driver_ticks_per_sec \ |
---|
144 | -G rtems_gfe_setup -G rtems_gfe_early_link_check_ops \ |
---|
145 | $^ $@ |
---|
146 | |
---|
147 | |
---|
148 | noinst_PROGRAMS += network_if_em_tmp.rel |
---|
149 | network_if_em_tmp_rel_SOURCES = network/if_em/if_em.c \ |
---|
150 | network/if_em/if_em_hw.c \ |
---|
151 | network/if_em/if_em_rtems.c |
---|
152 | network_if_em_tmp_rel_CPPFLAGS = $(AM_CPPFLAGS) \ |
---|
153 | -I$(srcdir)/network/porting -I$(srcdir)/network/if_em |
---|
154 | network_if_em_tmp_rel_CFLAGS = $(AM_CFLAGS) |
---|
155 | network_if_em_tmp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
156 | |
---|
157 | network_if_em.rel: network_if_em_tmp.rel |
---|
158 | $(OBJCOPY) -G rtems_em_attach -G net_driver_ticks_per_sec \ |
---|
159 | -G rtems_em_pci_setup -G rtems_em_early_link_check_ops \ |
---|
160 | $^ $@ |
---|
161 | endif |
---|
162 | |
---|
163 | # tod |
---|
164 | libbsp_a_SOURCES += ../../shared/tod.c tod/todcfg.c |
---|
165 | |
---|
166 | libbsp_a_SOURCES += ../../../../../../bsps/powerpc/shared/cache/cache.c |
---|
167 | libbsp_a_SOURCES += ../../../../../../bsps/powerpc/shared/mmu/bat.c |
---|
168 | libbsp_a_SOURCES += ../../../../../../bsps/powerpc/shared/mmu/mmuAsm.S |
---|
169 | libbsp_a_SOURCES += ../../../../../../bsps/powerpc/shared/mmu/pte121.c |
---|
170 | libbsp_a_SOURCES += ../../../../../../bsps/powerpc/shared/irq/ppc-irq-legacy.c |
---|
171 | libbsp_a_SOURCES += ../../../../../../bsps/powerpc/shared/ppc-dec-timer.c |
---|
172 | |
---|
173 | libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/mpc6xx/clock.rel \ |
---|
174 | ../../../libcpu/@RTEMS_CPU@/mpc6xx/altivec.rel |
---|
175 | |
---|
176 | if HAS_NETWORKING |
---|
177 | libbsp_a_LIBADD += network_support.rel \ |
---|
178 | network_if_mve.rel network_if_gfe.rel network_if_em.rel |
---|
179 | endif |
---|
180 | |
---|
181 | EXTRA_DIST += README LICENSE |
---|
182 | |
---|
183 | include $(top_srcdir)/../../../../automake/local.am |
---|
184 | include $(srcdir)/../../../../../../bsps/powerpc/shared/shared.am |
---|
185 | include $(srcdir)/../../../../../../bsps/powerpc/shared/exceptions.am |
---|
186 | include $(srcdir)/../../../../../../bsps/powerpc/beatnik/headers.am |
---|