1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | ACLOCAL_AMFLAGS = -I ../../../../aclocal |
---|
6 | |
---|
7 | include $(top_srcdir)/../../../../automake/compile.am |
---|
8 | include $(top_srcdir)/../../bsp.am |
---|
9 | |
---|
10 | include_bspdir = $(includedir)/bsp |
---|
11 | |
---|
12 | dist_project_lib_DATA = bsp_specs |
---|
13 | |
---|
14 | include_HEADERS = include/bsp.h |
---|
15 | include_HEADERS += include/tm27.h |
---|
16 | include_HEADERS += include/rasta.h |
---|
17 | include_HEADERS += include/cchip.h |
---|
18 | include_HEADERS += ../../sparc/shared/include/ambapp.h |
---|
19 | include_HEADERS += ../../sparc/shared/include/grspw.h |
---|
20 | include_HEADERS += ../../sparc/shared/include/grspw_pci.h |
---|
21 | include_HEADERS += ../../sparc/shared/include/grspw_rasta.h |
---|
22 | include_HEADERS += ../../sparc/shared/include/occan.h |
---|
23 | include_HEADERS += ../../sparc/shared/include/occan_pci.h |
---|
24 | include_HEADERS += ../../sparc/shared/include/grcan.h |
---|
25 | include_HEADERS += ../../sparc/shared/include/grcan_rasta.h |
---|
26 | include_HEADERS += ../../sparc/shared/include/apbuart.h |
---|
27 | include_HEADERS += ../../sparc/shared/include/apbuart_pci.h |
---|
28 | include_HEADERS += ../../sparc/shared/include/apbuart_rasta.h |
---|
29 | include_HEADERS += ../../sparc/shared/include/b1553brm.h |
---|
30 | include_HEADERS += ../../sparc/shared/include/b1553brm_pci.h |
---|
31 | include_HEADERS += ../../sparc/shared/include/b1553brm_rasta.h |
---|
32 | include_HEADERS += ../../sparc/shared/include/debug_defs.h |
---|
33 | include_HEADERS += ../../sparc/shared/include/pci.h |
---|
34 | |
---|
35 | nodist_include_HEADERS = include/bspopts.h |
---|
36 | nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h |
---|
37 | DISTCLEANFILES = include/bspopts.h |
---|
38 | |
---|
39 | noinst_PROGRAMS = |
---|
40 | |
---|
41 | # wrapup is the one that actually builds and installs the library |
---|
42 | # from the individual .rel files built in other directories |
---|
43 | SUBDIRS = . tools |
---|
44 | |
---|
45 | include_HEADERS += include/leon.h |
---|
46 | include_HEADERS += include/coverhd.h |
---|
47 | |
---|
48 | EXTRA_DIST = ../../sparc/shared/start.S |
---|
49 | start.$(OBJEXT): ../../sparc/shared/start.S |
---|
50 | $(CPPASCOMPILE) -o $@ -c $< |
---|
51 | |
---|
52 | project_lib_DATA = start.$(OBJEXT) |
---|
53 | |
---|
54 | dist_project_lib_DATA += startup/linkcmds |
---|
55 | |
---|
56 | noinst_LIBRARIES = libbsp.a |
---|
57 | libbsp_a_SOURCES = |
---|
58 | |
---|
59 | # startup |
---|
60 | libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \ |
---|
61 | ../../shared/bsppost.c ../../shared/bsppredriverhook.c \ |
---|
62 | ../../sparc/shared/bspgetworkarea.c ../../sparc/shared/bspstart.c \ |
---|
63 | ../../shared/bootcard.c ../../shared/sbrk.c startup/setvec.c \ |
---|
64 | startup/spurious.c |
---|
65 | # gnatsupp |
---|
66 | libbsp_a_SOURCES += gnatsupp/gnatsupp.c ../../sparc/shared/gnatcommon.c |
---|
67 | # console |
---|
68 | libbsp_a_SOURCES += console/console.c console/debugputs.c |
---|
69 | # clock |
---|
70 | libbsp_a_SOURCES += clock/ckinit.c |
---|
71 | # AMBA PnP Scanning |
---|
72 | # amba |
---|
73 | libbsp_a_SOURCES += ../../sparc/shared/amba/ambapp.c |
---|
74 | # PCI |
---|
75 | # pci |
---|
76 | libbsp_a_SOURCES += pci/pci.c ../../sparc/shared/pci/pcifinddevice.c |
---|
77 | # RASTA Kit |
---|
78 | # rasta |
---|
79 | libbsp_a_SOURCES += rasta/rasta.c |
---|
80 | # Companion Chip Kit |
---|
81 | # cchip |
---|
82 | libbsp_a_SOURCES += cchip/cchip.c |
---|
83 | # B1553BRM |
---|
84 | # brm |
---|
85 | libbsp_a_SOURCES += ../../sparc/shared/1553/b1553brm.c \ |
---|
86 | ../../sparc/shared/1553/b1553brm_pci.c \ |
---|
87 | ../../sparc/shared/1553/b1553brm_rasta.c |
---|
88 | # CAN |
---|
89 | # can |
---|
90 | libbsp_a_SOURCES += ../../sparc/shared/can/occan.c \ |
---|
91 | ../../sparc/shared/can/occan_pci.c \ |
---|
92 | ../../sparc/shared/can/grcan.c \ |
---|
93 | ../../sparc/shared/can/grcan_rasta.c |
---|
94 | # SpaceWire |
---|
95 | # spw |
---|
96 | libbsp_a_SOURCES += ../../sparc/shared/spw/grspw.c \ |
---|
97 | ../../sparc/shared/spw/grspw_pci.c ../../sparc/shared/spw/grspw_rasta.c |
---|
98 | # UART (RAW) |
---|
99 | # uart |
---|
100 | libbsp_a_SOURCES += ../../sparc/shared/uart/apbuart.c \ |
---|
101 | ../../sparc/shared/uart/apbuart_pci.c \ |
---|
102 | ../../sparc/shared/uart/apbuart_rasta.c |
---|
103 | # I2CMST |
---|
104 | include_HEADERS += ../../sparc/shared/include/i2cmst.h |
---|
105 | # i2cmst |
---|
106 | libbsp_a_SOURCES += ../../sparc/shared/i2c/i2cmst.c |
---|
107 | |
---|
108 | # timer |
---|
109 | libbsp_a_SOURCES += timer/timer.c |
---|
110 | |
---|
111 | if HAS_NETWORKING |
---|
112 | noinst_PROGRAMS += leon_smc91111.rel |
---|
113 | leon_smc91111_rel_SOURCES = leon_smc91111/leon_smc91111.c |
---|
114 | leon_smc91111_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
115 | leon_smc91111_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
116 | leon_smc91111_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
117 | endif |
---|
118 | |
---|
119 | if HAS_NETWORKING |
---|
120 | noinst_PROGRAMS += leon_open_eth.rel |
---|
121 | leon_open_eth_rel_SOURCES = leon_open_eth/leon_open_eth.c |
---|
122 | leon_open_eth_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
123 | leon_open_eth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
124 | leon_open_eth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
125 | endif |
---|
126 | |
---|
127 | libbsp_a_LIBADD = \ |
---|
128 | ../../../libcpu/@RTEMS_CPU@/cache.rel \ |
---|
129 | ../../../libcpu/@RTEMS_CPU@/reg_win.rel \ |
---|
130 | ../../../libcpu/@RTEMS_CPU@/syscall.rel |
---|
131 | |
---|
132 | if HAS_NETWORKING |
---|
133 | libbsp_a_LIBADD += leon_open_eth.rel |
---|
134 | libbsp_a_LIBADD += leon_smc91111.rel |
---|
135 | endif |
---|
136 | |
---|
137 | EXTRA_DIST += times |
---|
138 | |
---|
139 | include $(srcdir)/preinstall.am |
---|
140 | include $(top_srcdir)/../../../../automake/local.am |
---|