1 | ## |
---|
2 | # |
---|
3 | # @file |
---|
4 | # |
---|
5 | # @brief Makefile of LibBSP for the BeagleBoards. |
---|
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 += ../../shared/include/utility.h |
---|
31 | include_bsp_HEADERS += ../../shared/include/irq-generic.h |
---|
32 | include_bsp_HEADERS += ../../shared/include/irq-info.h |
---|
33 | include_bsp_HEADERS += ../../shared/include/stackalloc.h |
---|
34 | include_bsp_HEADERS += ../../shared/include/uart-output-char.h |
---|
35 | include_bsp_HEADERS += ../shared/include/arm-a8core-start.h |
---|
36 | include_bsp_HEADERS += ../shared/include/arm-cp15-start.h |
---|
37 | include_bsp_HEADERS += ../shared/include/arm-errata.h |
---|
38 | include_bsp_HEADERS += ../shared/include/arm-release-id.h |
---|
39 | include_bsp_HEADERS += ../shared/include/start.h |
---|
40 | include_bsp_HEADERS += include/irq.h |
---|
41 | include_bsp_HEADERS += include/i2c.h |
---|
42 | include_bsp_HEADERS += include/beagleboneblack.h |
---|
43 | include_bsp_HEADERS += include/bbb-gpio.h |
---|
44 | include_bsp_HEADERS += include/bbb-pwm.h |
---|
45 | |
---|
46 | include_libcpu_HEADERS = |
---|
47 | include_libcpu_HEADERS += ../../../libcpu/arm/shared/include/arm-cp15.h |
---|
48 | include_libcpu_HEADERS += ../../../libcpu/arm/shared/include/omap3.h |
---|
49 | include_libcpu_HEADERS += ../../../libcpu/arm/shared/include/am335x.h |
---|
50 | include_libcpu_HEADERS += ../../../libcpu/arm/shared/include/omap_timer.h |
---|
51 | |
---|
52 | ############################################################################### |
---|
53 | # Data # |
---|
54 | ############################################################################### |
---|
55 | |
---|
56 | noinst_LIBRARIES = libbspstart.a |
---|
57 | |
---|
58 | libbspstart_a_SOURCES = ../shared/start/start.S |
---|
59 | |
---|
60 | project_lib_DATA = start.$(OBJEXT) |
---|
61 | |
---|
62 | project_lib_DATA += startup/linkcmds |
---|
63 | project_lib_DATA += startup/linkcmds.beagle |
---|
64 | |
---|
65 | EXTRA_DIST = startup/linkcmds.beagle |
---|
66 | |
---|
67 | ############################################################################### |
---|
68 | # LibBSP # |
---|
69 | ############################################################################### |
---|
70 | |
---|
71 | noinst_LIBRARIES += libbsp.a |
---|
72 | |
---|
73 | libbsp_a_SOURCES = |
---|
74 | libbsp_a_CPPFLAGS = |
---|
75 | libbsp_a_LIBADD = |
---|
76 | |
---|
77 | # Shared |
---|
78 | libbsp_a_SOURCES += ../../shared/bootcard.c |
---|
79 | libbsp_a_SOURCES += ../../shared/bspclean.c |
---|
80 | libbsp_a_SOURCES += ../../shared/bspgetworkarea.c |
---|
81 | libbsp_a_SOURCES += ../../shared/bsppredriverhook.c |
---|
82 | libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c |
---|
83 | libbsp_a_SOURCES += ../../shared/sbrk.c |
---|
84 | libbsp_a_SOURCES += ../../shared/src/stackalloc.c |
---|
85 | libbsp_a_SOURCES += ../../shared/gpio.c |
---|
86 | libbsp_a_SOURCES += ../../shared/cpucounterdiff.c |
---|
87 | libbsp_a_SOURCES += ../../shared/timerstub.c |
---|
88 | libbsp_a_SOURCES += ../../shared/cpucounterread.c |
---|
89 | libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S |
---|
90 | libbsp_a_SOURCES += ../shared/arm-cp15-set-exception-handler.c |
---|
91 | |
---|
92 | # Startup |
---|
93 | libbsp_a_SOURCES += startup/bspreset.c |
---|
94 | libbsp_a_SOURCES += startup/bspstart.c |
---|
95 | libbsp_a_SOURCES += startup/bspstarthooks.c |
---|
96 | libbsp_a_SOURCES += startup/bspstartmmu.c |
---|
97 | |
---|
98 | # IRQ |
---|
99 | libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c |
---|
100 | libbsp_a_SOURCES += ../../shared/src/irq-generic.c |
---|
101 | libbsp_a_SOURCES += ../../shared/src/irq-info.c |
---|
102 | libbsp_a_SOURCES += ../../shared/src/irq-legacy.c |
---|
103 | libbsp_a_SOURCES += ../../shared/src/irq-server.c |
---|
104 | libbsp_a_SOURCES += ../../shared/src/irq-shell.c |
---|
105 | libbsp_a_SOURCES += irq.c |
---|
106 | |
---|
107 | # Console |
---|
108 | libbsp_a_SOURCES += ../../shared/console.c \ |
---|
109 | ../../shared/console_select.c \ |
---|
110 | console/console-config.c \ |
---|
111 | ../../shared/console_read.c \ |
---|
112 | ../../shared/console_write.c \ |
---|
113 | ../../shared/console_control.c |
---|
114 | |
---|
115 | # I2C |
---|
116 | libbsp_a_SOURCES += misc/i2c.c |
---|
117 | |
---|
118 | # GPIO |
---|
119 | libbsp_a_SOURCES += gpio/bbb-gpio.c |
---|
120 | |
---|
121 | #pwm |
---|
122 | libbsp_a_SOURCES += pwm/pwm.c |
---|
123 | |
---|
124 | #RTC |
---|
125 | libbsp_a_SOURCES += rtc.c |
---|
126 | libbsp_a_SOURCES += ../../shared/tod.c |
---|
127 | # Clock |
---|
128 | libbsp_a_SOURCES += clock.c |
---|
129 | libbsp_a_SOURCES += ../../shared/clockdrv_shell.h |
---|
130 | |
---|
131 | # Cache |
---|
132 | libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c |
---|
133 | libbsp_a_SOURCES += ../shared/include/arm-cache-l1.h |
---|
134 | libbsp_a_SOURCES += ../shared/armv467ar-basic-cache/cache_.h |
---|
135 | libbsp_a_CPPFLAGS += -I$(srcdir)/../shared/armv467ar-basic-cache |
---|
136 | |
---|
137 | ############################################################################### |
---|
138 | # Special Rules # |
---|
139 | ############################################################################### |
---|
140 | |
---|
141 | DISTCLEANFILES = include/bspopts.h |
---|
142 | |
---|
143 | include $(srcdir)/preinstall.am |
---|
144 | include $(top_srcdir)/../../../../automake/local.am |
---|