1 | ## |
---|
2 | # |
---|
3 | # @file |
---|
4 | # |
---|
5 | # @brief Makefile of LibBSP for the raspberrypi board. |
---|
6 | # |
---|
7 | |
---|
8 | ACLOCAL_AMFLAGS = -I ../../../../aclocal |
---|
9 | |
---|
10 | include $(top_srcdir)/../../../../automake/compile.am |
---|
11 | |
---|
12 | include_bspdir = $(includedir)/bsp |
---|
13 | include_libcpudir = $(includedir)/libcpu |
---|
14 | |
---|
15 | dist_project_lib_DATA = bsp_specs |
---|
16 | |
---|
17 | ############################################################################### |
---|
18 | # Header # |
---|
19 | ############################################################################### |
---|
20 | |
---|
21 | include_HEADERS = include/bsp.h |
---|
22 | include_HEADERS += ../../shared/include/tm27.h |
---|
23 | |
---|
24 | nodist_include_HEADERS = ../../shared/include/coverhd.h \ |
---|
25 | include/bspopts.h |
---|
26 | |
---|
27 | nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h |
---|
28 | |
---|
29 | include_bsp_HEADERS = |
---|
30 | include_bsp_HEADERS += ../../../libbsp/shared/include/mm.h |
---|
31 | include_bsp_HEADERS += ../../shared/include/utility.h |
---|
32 | include_bsp_HEADERS += ../../shared/include/irq-generic.h |
---|
33 | include_bsp_HEADERS += ../../shared/include/irq-info.h |
---|
34 | include_bsp_HEADERS += ../../shared/include/stackalloc.h |
---|
35 | include_bsp_HEADERS += ../../shared/include/uart-output-char.h |
---|
36 | include_bsp_HEADERS += ../../shared/include/gpio.h |
---|
37 | include_bsp_HEADERS += ../shared/include/linker-symbols.h |
---|
38 | include_bsp_HEADERS += ../shared/include/start.h |
---|
39 | include_bsp_HEADERS += ../shared/include/arm-cp15-start.h |
---|
40 | include_bsp_HEADERS += ../shared/include/arm-errata.h |
---|
41 | include_bsp_HEADERS += ../shared/lpc/include/lpc-timer.h |
---|
42 | include_bsp_HEADERS += ../shared/lpc/include/lpc-dma.h |
---|
43 | include_bsp_HEADERS += ../shared/include/arm-release-id.h |
---|
44 | include_bsp_HEADERS += include/irq.h |
---|
45 | include_bsp_HEADERS += include/mmu.h |
---|
46 | include_bsp_HEADERS += include/usart.h |
---|
47 | include_bsp_HEADERS += include/raspberrypi.h |
---|
48 | include_bsp_HEADERS += include/rpi-gpio.h |
---|
49 | include_bsp_HEADERS += include/i2c.h |
---|
50 | include_bsp_HEADERS += include/spi.h |
---|
51 | include_bsp_HEADERS += include/mailbox.h |
---|
52 | include_bsp_HEADERS += include/vc.h |
---|
53 | include_bsp_HEADERS += include/rpi-fb.h |
---|
54 | |
---|
55 | include_libcpu_HEADERS = ../../../libcpu/arm/shared/include/cache_.h \ |
---|
56 | ../../../libcpu/arm/shared/include/arm-cp15.h |
---|
57 | |
---|
58 | ############################################################################### |
---|
59 | # Data # |
---|
60 | ############################################################################### |
---|
61 | |
---|
62 | noinst_LIBRARIES = libbspstart.a |
---|
63 | |
---|
64 | libbspstart_a_SOURCES = ../shared/start/start.S |
---|
65 | |
---|
66 | project_lib_DATA = start.$(OBJEXT) |
---|
67 | |
---|
68 | project_lib_DATA += startup/linkcmds |
---|
69 | project_lib_DATA += ../shared/startup/linkcmds.base |
---|
70 | |
---|
71 | EXTRA_DIST = startup/linkcmds |
---|
72 | |
---|
73 | ############################################################################### |
---|
74 | # LibBSP # |
---|
75 | ############################################################################### |
---|
76 | |
---|
77 | noinst_LIBRARIES += libbsp.a |
---|
78 | |
---|
79 | libbsp_a_SOURCES = |
---|
80 | libbsp_a_CPPFLAGS = |
---|
81 | libbsp_a_LIBADD = |
---|
82 | |
---|
83 | # Shared |
---|
84 | libbsp_a_SOURCES += ../../shared/bootcard.c |
---|
85 | libbsp_a_SOURCES += ../../shared/bspclean.c |
---|
86 | libbsp_a_SOURCES += ../../shared/bsppredriverhook.c |
---|
87 | libbsp_a_SOURCES += ../../shared/cpucounterread.c |
---|
88 | libbsp_a_SOURCES += ../../shared/cpucounterdiff.c |
---|
89 | libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c |
---|
90 | libbsp_a_SOURCES += ../../shared/sbrk.c |
---|
91 | libbsp_a_SOURCES += ../../shared/src/stackalloc.c |
---|
92 | libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S |
---|
93 | libbsp_a_SOURCES += ../shared/arm-cp15-set-ttb-entries.c |
---|
94 | |
---|
95 | # Startup |
---|
96 | libbsp_a_SOURCES += ../../shared/bspreset_loop.c |
---|
97 | libbsp_a_SOURCES += startup/bspstart.c |
---|
98 | libbsp_a_SOURCES += startup/cmdline.c |
---|
99 | libbsp_a_SOURCES += startup/bspgetworkarea.c |
---|
100 | |
---|
101 | # IRQ |
---|
102 | libbsp_a_SOURCES += ../shared/arm-cp15-set-exception-handler.c |
---|
103 | libbsp_a_SOURCES += ../../shared/src/irq-generic.c |
---|
104 | libbsp_a_SOURCES += ../../shared/src/irq-info.c |
---|
105 | libbsp_a_SOURCES += ../../shared/src/irq-legacy.c |
---|
106 | libbsp_a_SOURCES += ../../shared/src/irq-server.c |
---|
107 | libbsp_a_SOURCES += ../../shared/src/irq-shell.c |
---|
108 | libbsp_a_SOURCES += irq/irq.c |
---|
109 | |
---|
110 | # Console |
---|
111 | libbsp_a_SOURCES += ../../shared/console.c |
---|
112 | libbsp_a_SOURCES += ../../shared/console_control.c |
---|
113 | libbsp_a_SOURCES += ../../shared/console_read.c |
---|
114 | libbsp_a_SOURCES += ../../shared/console_select.c |
---|
115 | libbsp_a_SOURCES += ../../shared/console_write.c |
---|
116 | libbsp_a_SOURCES += console/console-config.c |
---|
117 | libbsp_a_SOURCES += console/usart.c |
---|
118 | libbsp_a_SOURCES += console/fb.c |
---|
119 | |
---|
120 | # Mailbox |
---|
121 | libbsp_a_SOURCES += misc/mailbox.c |
---|
122 | |
---|
123 | # VideoCore |
---|
124 | libbsp_a_SOURCES += misc/vc.c |
---|
125 | |
---|
126 | # clock |
---|
127 | libbsp_a_SOURCES += clock/clockdrv.c ../../../shared/clockdrv_shell.h |
---|
128 | |
---|
129 | # Timer |
---|
130 | libbsp_a_SOURCES += misc/timer.c |
---|
131 | |
---|
132 | # GPIO |
---|
133 | libbsp_a_SOURCES += ../../shared/gpio.c |
---|
134 | libbsp_a_SOURCES += gpio/rpi-gpio.c |
---|
135 | |
---|
136 | # RTC |
---|
137 | |
---|
138 | # SSP |
---|
139 | |
---|
140 | # I2C |
---|
141 | libbsp_a_SOURCES += i2c/i2c.c |
---|
142 | |
---|
143 | # SPI |
---|
144 | libbsp_a_SOURCES += spi/spi.c |
---|
145 | |
---|
146 | # Cache |
---|
147 | libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c |
---|
148 | libbsp_a_SOURCES += ../../../libcpu/arm/shared/include/cache_.h |
---|
149 | libbsp_a_CPPFLAGS += -I$(srcdir)/../../../libcpu/arm/shared/include |
---|
150 | |
---|
151 | # Start hooks |
---|
152 | libbsp_a_SOURCES += startup/bspstarthooks.c |
---|
153 | |
---|
154 | # LIBMM |
---|
155 | libbsp_a_SOURCES += startup/mm_config_table.c |
---|
156 | libbsp_a_SOURCES += ../shared/mminit.c |
---|
157 | |
---|
158 | ############################################################################### |
---|
159 | # Network # |
---|
160 | ############################################################################### |
---|
161 | |
---|
162 | #if HAS_NETWORKING |
---|
163 | # |
---|
164 | #noinst_PROGRAMS = network.rel |
---|
165 | # |
---|
166 | #network_rel_SOURCES = ../shared/lpc/network/lpc-ethernet.c |
---|
167 | #network_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE |
---|
168 | #network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
169 | # |
---|
170 | # |
---|
171 | #libbsp_a_LIBADD += network.rel |
---|
172 | # |
---|
173 | #endif |
---|
174 | |
---|
175 | ############################################################################### |
---|
176 | # Special Rules # |
---|
177 | ############################################################################### |
---|
178 | |
---|
179 | DISTCLEANFILES = include/bspopts.h |
---|
180 | |
---|
181 | include $(srcdir)/preinstall.am |
---|
182 | include $(top_srcdir)/../../../../automake/local.am |
---|