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