source: rtems/c/src/lib/libbsp/powerpc/beatnik/Makefile.am @ 814eccb4

5
Last change on this file since 814eccb4 was 814eccb4, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 3, 2018 at 2:41:16 PM

bsps: Move VME support to bsps

The VME support is only used by powerpc BSPs.

This patch is a part of the BSP source reorganization.

Update #3285.

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