source: rtems/c/src/lib/libbsp/sparc/leon3/Makefile.am @ 7579e25

4.115
Last change on this file since 7579e25 was 7579e25, checked in by Sebastian Huber <sebastian.huber@…>, on Nov 25, 2013 at 7:46:19 AM

bsp/leon3: New BSP variant leon3_qemu

  • Property mode set to 100644
File size: 5.5 KB
Line 
1ACLOCAL_AMFLAGS = -I ../../../../aclocal
2
3include $(top_srcdir)/../../../../automake/compile.am
4
5include_bspdir = $(includedir)/bsp
6
7dist_project_lib_DATA = bsp_specs
8
9include_HEADERS = include/bsp.h
10include_HEADERS += include/tm27.h
11include_HEADERS += ../../sparc/shared/include/debug_defs.h
12
13nodist_include_HEADERS = include/bspopts.h
14nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
15DISTCLEANFILES = include/bspopts.h
16
17noinst_PROGRAMS =
18
19include_HEADERS += include/leon.h
20include_HEADERS += ../../shared/include/coverhd.h
21
22noinst_LIBRARIES = libbspstart.a
23libbspstart_a_SOURCES = ../../sparc/shared/start/start.S
24project_lib_DATA = start.$(OBJEXT)
25
26dist_project_lib_DATA += ../shared/startup/linkcmds.base
27dist_project_lib_DATA += startup/linkcmds
28dist_project_lib_DATA += startup/linkcmds.leon3
29dist_project_lib_DATA += startup/linkcmds.leon3_qemu
30dist_project_lib_DATA += startup/linkcmds.ngmp
31
32noinst_LIBRARIES += libbsp.a
33libbsp_a_SOURCES =
34
35# startup
36libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \
37    ../../shared/bsppost.c ../../shared/bootcard.c startup/bspstart.c \
38    ../../sparc/shared/bsppretaskinghook.c startup/bsppredriver.c \
39    ../../sparc/shared/startup/bspgetworkarea.c ../../shared/sbrk.c startup/setvec.c \
40    startup/spurious.c startup/bspidle.S startup/bspdelay.c \
41    ../../shared/bspinit.c ../../sparc/shared/startup/early_malloc.c
42
43# ISR Handler
44libbsp_a_SOURCES += ../../sparc/shared/irq_asm.S
45# gnatsupp
46libbsp_a_SOURCES += gnatsupp/gnatsupp.c ../../sparc/shared/gnatcommon.c
47# AMBA bus
48include_HEADERS += include/amba.h
49include_HEADERS += ../../sparc/shared/include/ambapp.h
50include_HEADERS += ../../sparc/shared/include/ambapp_ids.h
51include_HEADERS += ../../sparc/shared/include/grlib.h
52libbsp_a_SOURCES += amba/amba.c
53libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp.c
54libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_alloc.c
55libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_count.c
56libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_depth.c
57libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_find_by_idx.c
58libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_freq.c
59libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_parent.c
60libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_old.c
61libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_names.c
62libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp_show.c
63# console
64libbsp_a_SOURCES += console/console.c
65# debugio
66libbsp_a_SOURCES += console/printk_support.c
67# clock
68libbsp_a_SOURCES += clock/ckinit.c
69libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
70# IRQ
71include_bsp_HEADERS = \
72    ../../shared/include/irq-generic.h \
73    ../../shared/include/irq-info.h \
74    include/bsp/irq.h
75libbsp_a_SOURCES += \
76    startup/eirq.c \
77    ../../sparc/shared/irq/irq-shared.c \
78    ../../shared/src/irq-default-handler.c \
79    ../../shared/src/irq-generic.c \
80    ../../shared/src/irq-info.c \
81    ../../shared/src/irq-legacy.c \
82    ../../shared/src/irq-server.c \
83    ../../shared/src/irq-shell.c
84# PCI
85include_HEADERS += ../../sparc/shared/include/pci.h
86libbsp_a_SOURCES += pci/pci.c ../../sparc/shared/pci/pcifinddevice.c
87
88# B1553BRM
89include_HEADERS += ../../sparc/shared/include/b1553brm.h \
90    ../../sparc/shared/include/b1553brm_pci.h
91libbsp_a_SOURCES += ../../sparc/shared/1553/b1553brm.c \
92    ../../sparc/shared/1553/b1553brm_pci.c
93
94# CAN
95include_HEADERS += ../../sparc/shared/include/occan.h \
96    ../../sparc/shared/include/occan_pci.h ../../sparc/shared/include/grcan.h
97libbsp_a_SOURCES += ../../sparc/shared/can/occan.c \
98    ../../sparc/shared/can/occan_pci.c  ../../sparc/shared/can/grcan.c
99
100# SpaceWire
101include_HEADERS += ../../sparc/shared/include/grspw.h \
102    ../../sparc/shared/include/grspw_pci.h
103libbsp_a_SOURCES += ../../sparc/shared/spw/grspw.c \
104    ../../sparc/shared/spw/grspw_pci.c
105
106# UART
107include_HEADERS += ../../sparc/shared/include/apbuart.h \
108    ../../sparc/shared/include/apbuart_pci.h
109libbsp_a_SOURCES += ../../sparc/shared/uart/apbuart.c \
110    ../../sparc/shared/uart/apbuart_pci.c
111
112# I2CMST
113include_HEADERS += ../../sparc/shared/include/i2cmst.h
114libbsp_a_SOURCES += ../../sparc/shared/i2c/i2cmst.c
115
116# timer
117libbsp_a_SOURCES += timer/timer.c
118
119if HAS_SMP
120libbsp_a_SOURCES += smp/getcpuid.c
121libbsp_a_SOURCES += smp/smp_leon3.c
122endif
123
124if HAS_NETWORKING
125noinst_PROGRAMS += leon_smc91111.rel
126leon_smc91111_rel_SOURCES = leon_smc91111/leon_smc91111.c
127leon_smc91111_rel_CPPFLAGS = $(AM_CPPFLAGS)
128leon_smc91111_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
129leon_smc91111_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
130endif
131
132if HAS_NETWORKING
133noinst_PROGRAMS += leon_open_eth.rel
134leon_open_eth_rel_SOURCES = leon_open_eth/leon_open_eth.c
135leon_open_eth_rel_CPPFLAGS = $(AM_CPPFLAGS)
136leon_open_eth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
137leon_open_eth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
138endif
139
140if HAS_NETWORKING
141noinst_PROGRAMS += leon_greth.rel
142leon_greth_rel_SOURCES = leon_greth/leon_greth.c
143leon_greth_rel_CPPFLAGS = $(AM_CPPFLAGS)
144leon_greth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
145leon_greth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
146endif
147
148EXTRA_DIST = shmsupp/README
149if HAS_MP
150# shmsupp
151libbsp_a_SOURCES += shmsupp/addrconv.c shmsupp/getcfg.c shmsupp/lock.c \
152    shmsupp/mpisr.c
153endif
154
155libbsp_a_LIBADD = \
156    ../../../libcpu/@RTEMS_CPU@/access.rel \
157    ../../../libcpu/@RTEMS_CPU@/cache.rel \
158    ../../../libcpu/@RTEMS_CPU@/reg_win.rel \
159    ../../../libcpu/@RTEMS_CPU@/syscall.rel
160
161if HAS_NETWORKING
162libbsp_a_LIBADD += leon_open_eth.rel
163libbsp_a_LIBADD += leon_greth.rel
164libbsp_a_LIBADD += leon_smc91111.rel
165endif
166
167EXTRA_DIST += times
168
169include $(srcdir)/preinstall.am
170include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.