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