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 += ../../sparc/shared/include/debug_defs.h |
---|
17 | |
---|
18 | nodist_include_HEADERS = include/bspopts.h |
---|
19 | nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h |
---|
20 | DISTCLEANFILES = include/bspopts.h |
---|
21 | |
---|
22 | noinst_PROGRAMS = |
---|
23 | |
---|
24 | # wrapup is the one that actually builds and installs the library |
---|
25 | # from the individual .rel files built in other directories |
---|
26 | SUBDIRS = . tools |
---|
27 | |
---|
28 | include_HEADERS += include/leon.h |
---|
29 | include_HEADERS += include/coverhd.h |
---|
30 | |
---|
31 | EXTRA_DIST = ../../sparc/shared/start.S |
---|
32 | start.$(OBJEXT): ../../sparc/shared/start.S |
---|
33 | $(CPPASCOMPILE) -o $@ -c $< |
---|
34 | |
---|
35 | project_lib_DATA = start.$(OBJEXT) |
---|
36 | |
---|
37 | dist_project_lib_DATA += startup/linkcmds |
---|
38 | |
---|
39 | startup_SOURCES = ../../shared/bspclean.c ../../shared/bsplibc.c \ |
---|
40 | ../../shared/bsppost.c ../../shared/bootcard.c startup/bspstart.c \ |
---|
41 | ../../sparc/shared/bspgetworkarea.c ../../shared/sbrk.c startup/setvec.c \ |
---|
42 | startup/spurious.c startup/ithread.S |
---|
43 | |
---|
44 | gnatsupp_SOURCES = gnatsupp/gnatsupp.c ../../sparc/shared/gnatcommon.c |
---|
45 | |
---|
46 | include_HEADERS += include/amba.h |
---|
47 | include_HEADERS += ../../sparc/shared/include/ambapp.h |
---|
48 | |
---|
49 | amba_SOURCES = amba/amba.c ../../sparc/shared/amba/ambapp.c |
---|
50 | console_SOURCES = console/console.c |
---|
51 | debugio_SOURCES = console/debugputs.c |
---|
52 | clock_SOURCES = clock/ckinit.c |
---|
53 | |
---|
54 | # PCI |
---|
55 | include_HEADERS += ../../sparc/shared/include/pci.h |
---|
56 | pci_SOURCES = pci/pci.c ../../sparc/shared/pci/pcifinddevice.c |
---|
57 | |
---|
58 | # B1553BRM |
---|
59 | include_HEADERS += ../../sparc/shared/include/b1553brm.h \ |
---|
60 | ../../sparc/shared/include/b1553brm_pci.h |
---|
61 | brm_SOURCES = ../../sparc/shared/1553/b1553brm.c \ |
---|
62 | ../../sparc/shared/1553/b1553brm_pci.c |
---|
63 | |
---|
64 | # CAN |
---|
65 | include_HEADERS += ../../sparc/shared/include/occan.h \ |
---|
66 | ../../sparc/shared/include/occan_pci.h ../../sparc/shared/include/grcan.h |
---|
67 | can_SOURCES = ../../sparc/shared/can/occan.c \ |
---|
68 | ../../sparc/shared/can/occan_pci.c ../../sparc/shared/can/grcan.c |
---|
69 | |
---|
70 | # SpaceWire |
---|
71 | include_HEADERS += ../../sparc/shared/include/grspw.h \ |
---|
72 | ../../sparc/shared/include/grspw_pci.h |
---|
73 | spw_SOURCES = ../../sparc/shared/spw/grspw.c \ |
---|
74 | ../../sparc/shared/spw/grspw_pci.c |
---|
75 | |
---|
76 | # UART |
---|
77 | include_HEADERS += ../../sparc/shared/include/apbuart.h \ |
---|
78 | ../../sparc/shared/include/apbuart_pci.h |
---|
79 | uart_SOURCES = ../../sparc/shared/uart/apbuart.c \ |
---|
80 | ../../sparc/shared/uart/apbuart_pci.c |
---|
81 | |
---|
82 | # I2CMST |
---|
83 | include_HEADERS += ../../sparc/shared/include/i2cmst.h |
---|
84 | i2cmst_SOURCES = ../../sparc/shared/i2c/i2cmst.c |
---|
85 | |
---|
86 | timer_SOURCES = timer/timer.c |
---|
87 | |
---|
88 | if HAS_NETWORKING |
---|
89 | noinst_PROGRAMS += leon_smc91111.rel |
---|
90 | leon_smc91111_rel_SOURCES = leon_smc91111/leon_smc91111.c |
---|
91 | leon_smc91111_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
92 | leon_smc91111_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
93 | leon_smc91111_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
94 | endif |
---|
95 | |
---|
96 | if HAS_NETWORKING |
---|
97 | noinst_PROGRAMS += leon_open_eth.rel |
---|
98 | leon_open_eth_rel_SOURCES = leon_open_eth/leon_open_eth.c |
---|
99 | leon_open_eth_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
100 | leon_open_eth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
101 | leon_open_eth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
102 | endif |
---|
103 | |
---|
104 | if HAS_NETWORKING |
---|
105 | noinst_PROGRAMS += leon_greth.rel |
---|
106 | leon_greth_rel_SOURCES = leon_greth/leon_greth.c |
---|
107 | leon_greth_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
108 | leon_greth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
109 | leon_greth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
110 | endif |
---|
111 | |
---|
112 | if HAS_MP |
---|
113 | EXTRA_DIST += shmsupp/README |
---|
114 | shmsupp_SOURCES = shmsupp/addrconv.c shmsupp/getcfg.c shmsupp/lock.c \ |
---|
115 | shmsupp/mpisr.c |
---|
116 | endif |
---|
117 | |
---|
118 | noinst_LIBRARIES = libbsp.a |
---|
119 | libbsp_a_SOURCES = $(startup_SOURCES) $(gnatsupp_SOURCES) $(amba_SOURCES) \ |
---|
120 | $(console_SOURCES) $(debugio_SOURCES) $(clock_SOURCES) $(pci_SOURCES) \ |
---|
121 | $(brm_SOURCES) $(can_SOURCES) $(spw_SOURCES) $(uart_SOURCES) \ |
---|
122 | $(i2cmst_SOURCES) $(timer_SOURCES) $(shmsupp_SOURCES) |
---|
123 | |
---|
124 | libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/cache.rel \ |
---|
125 | ../../../libcpu/@RTEMS_CPU@/reg_win.rel \ |
---|
126 | ../../../libcpu/@RTEMS_CPU@/syscall.rel |
---|
127 | |
---|
128 | if HAS_NETWORKING |
---|
129 | libbsp_a_LIBADD += leon_open_eth.rel |
---|
130 | libbsp_a_LIBADD += leon_greth.rel |
---|
131 | libbsp_a_LIBADD += leon_smc91111.rel |
---|
132 | endif |
---|
133 | |
---|
134 | EXTRA_DIST += times |
---|
135 | |
---|
136 | include $(srcdir)/preinstall.am |
---|
137 | include $(top_srcdir)/../../../../automake/local.am |
---|