source: rtems/c/src/lib/libbsp/powerpc/beatnik/Makefile.am @ 4fd1ff0f

Last change on this file since 4fd1ff0f was 4fd1ff0f, checked in by Sebastian Huber <sebastian.huber@…>, on Mar 26, 2018 at 4:57:10 AM

bsps/powerpc: Move AltiVec? support to bsps

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 6.6 KB
Line 
1ACLOCAL_AMFLAGS = -I ../../../../aclocal
2EXTRA_DIST =
3
4CLEANFILES      =
5DISTCLEANFILES  =
6noinst_PROGRAMS =
7
8include $(top_srcdir)/../../../../automake/compile.am
9include $(top_srcdir)/../../bsp.am
10
11dist_project_lib_DATA = startup/bsp_specs
12
13project_lib_DATA      =
14
15#include
16DISTCLEANFILES += include/bspopts.h
17
18#start
19EXTRA_DIST += ../../powerpc/shared/start/rtems_crti.S
20rtems_crti.$(OBJEXT): ../../powerpc/shared/start/rtems_crti.S
21        $(CPPASCOMPILE) -DASM -o $@ -c $<
22project_lib_DATA += rtems_crti.$(OBJEXT)
23
24
25EXTRA_DIST += ../../powerpc/shared/start/preload.S
26preload.$(OBJEXT): ../../powerpc/shared/start/preload.S
27        $(CPPASCOMPILE) -DASM -o $@ -c $<
28
29EXTRA_DIST += ../../powerpc/shared/start/vectors_entry.S
30vectors_entry.$(OBJEXT): ../../powerpc/shared/start/vectors_entry.S
31        $(CPPASCOMPILE) -DASM -o $@ -c $<
32
33EXTRA_DIST += ../../powerpc/shared/start/start.S
34start.$(OBJEXT): ../../powerpc/shared/start/start.S
35        $(CPPASCOMPILE) -DASM -o $@ -c $<
36
37motld_start.$(OBJEXT):  preload.$(OBJEXT) vectors_entry.$(OBJEXT) start.$(OBJEXT)
38        $(LD) -o $@ -r $^
39
40project_lib_DATA += motld_start.$(OBJEXT)
41
42
43#startup
44
45project_lib_DATA += linkcmds
46dist_project_lib_DATA += ../shared/startup/linkcmds.share
47
48noinst_LIBRARIES = libbsp.a
49libbsp_a_SOURCES =
50
51libbsp_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
65libbsp_a_SOURCES += ../../powerpc/shared/clock/p_clock.c
66
67#console
68libbsp_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
75libbsp_a_SOURCES += irq/irq_init.c irq/discovery_pic.c
76
77#marvell
78libbsp_a_SOURCES += marvell/discovery.c marvell/gti2c.c marvell/gt_timer.c
79
80#flash
81libbsp_a_SOURCES += ../shared/flash/flash.c \
82    ../shared/flash/intelFlash.c \
83    flash/flashcfg.c
84
85#pci
86libbsp_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
91libbsp_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
98if HAS_NETWORKING
99noinst_PROGRAMS += network_support.rel
100network_support_rel_SOURCES = network/support/early_link_status.c \
101    network/support/bsp_attach.c
102network_support_rel_CPPFLAGS = $(AM_CPPFLAGS)
103network_support_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
104
105noinst_PROGRAMS += network_if_mve_tmp.rel
106network_if_mve_tmp_rel_SOURCES  = network/if_mve/mv643xx_eth.c
107network_if_mve_tmp_rel_CPPFLAGS = $(AM_CPPFLAGS) -DDISABLE_DETACHING
108network_if_mve_tmp_rel_CFLAGS   = $(AM_CFLAGS)
109network_if_mve_tmp_rel_LDFLAGS  = $(RTEMS_RELLDFLAGS)
110
111# remove all unneccessary global symbols to avoid name clashes
112# with BSD stuff;
113network_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
133noinst_PROGRAMS += network_if_gfe_tmp.rel
134network_if_gfe_tmp_rel_SOURCES = network/if_gfe/if_gfe.c network/if_gfe/if_gfe_rtems.c
135network_if_gfe_tmp_rel_CPPFLAGS = $(AM_CPPFLAGS) \
136    -I$(srcdir)/network/porting -I$(srcdir)/network/if_gfe
137network_if_gfe_tmp_rel_CFLAGS   = $(AM_CFLAGS)
138network_if_gfe_tmp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
139
140# remove all unneccessary global symbols to avoid name clashes
141# with BSD stuff;
142network_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
148noinst_PROGRAMS += network_if_em_tmp.rel
149network_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
152network_if_em_tmp_rel_CPPFLAGS = $(AM_CPPFLAGS) \
153    -I$(srcdir)/network/porting -I$(srcdir)/network/if_em
154network_if_em_tmp_rel_CFLAGS   = $(AM_CFLAGS)
155network_if_em_tmp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
156
157network_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
162libbsp_a_LIBADD = network_support.rel \
163    network_if_mve.rel network_if_gfe.rel network_if_em.rel
164endif
165
166# tod
167libbsp_a_SOURCES += ../../shared/tod.c tod/todcfg.c
168
169libbsp_a_SOURCES += ../../../../../../bsps/powerpc/shared/altivec/vec_sup.c
170libbsp_a_SOURCES += ../../../../../../bsps/powerpc/shared/altivec/vec_sup_asm.S
171libbsp_a_SOURCES += ../../../../../../bsps/powerpc/shared/cache/cache.c
172libbsp_a_SOURCES += ../../../../../../bsps/powerpc/shared/dev/clock-ppc-dec.c
173libbsp_a_SOURCES += ../../../../../../bsps/powerpc/shared/mmu/bat.c
174libbsp_a_SOURCES += ../../../../../../bsps/powerpc/shared/mmu/mmuAsm.S
175libbsp_a_SOURCES += ../../../../../../bsps/powerpc/shared/mmu/pte121.c
176libbsp_a_SOURCES += ../../../../../../bsps/powerpc/shared/irq/ppc-irq-legacy.c
177libbsp_a_SOURCES += ../../../../../../bsps/powerpc/shared/ppc-dec-timer.c
178
179EXTRA_DIST += README LICENSE
180
181include $(top_srcdir)/../../../../automake/local.am
182include $(srcdir)/../../../../../../bsps/powerpc/shared/shared.am
183include $(srcdir)/../../../../../../bsps/powerpc/shared/exceptions.am
184include $(srcdir)/../../../../../../bsps/powerpc/beatnik/headers.am
Note: See TracBrowser for help on using the repository browser.