source: rtems/c/src/lib/libbsp/arm/xilinx-zynq/Makefile.am @ e5d706c

4.115
Last change on this file since e5d706c was e5d706c, checked in by Chris Johns <chrisj@…>, on 01/28/14 at 03:02:35

bsp/xilinx_zynq: Support configuraton of memory map. Remove SMP variants.

Generate a linker command file from configure letting the user override the
defaults to suite their custom needs. Refer to configure.ac for the details.

Remove the SMP variants and let --enable-smp control if a BSP is built for
SMP.

Make USE_FAST_IDLE 1 only for the realview qemu BSP.

  • Property mode set to 100644
File size: 4.7 KB
Line 
1##
2#
3# @file
4#
5# @brief Makefile of LibBSP for the Xilinx Zynq platform.
6#
7
8ACLOCAL_AMFLAGS = -I ../../../../aclocal
9
10include $(top_srcdir)/../../../../automake/compile.am
11
12include_bspdir = $(includedir)/bsp
13include_libcpudir = $(includedir)/libcpu
14
15dist_project_lib_DATA = bsp_specs
16
17###############################################################################
18#                  Header                                                     #
19###############################################################################
20
21include_HEADERS = include/bsp.h
22include_HEADERS += include/tm27.h
23
24nodist_include_HEADERS = ../../shared/include/coverhd.h \
25        include/bspopts.h
26
27nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
28
29include_bsp_HEADERS =
30include_bsp_HEADERS += ../../shared/include/utility.h
31include_bsp_HEADERS += ../../shared/include/irq-generic.h
32include_bsp_HEADERS += ../../shared/include/irq-info.h
33include_bsp_HEADERS += ../../shared/include/stackalloc.h
34include_bsp_HEADERS += ../../shared/tod.h
35include_bsp_HEADERS += ../shared/include/start.h
36include_bsp_HEADERS += ../shared/include/arm-a9mpcore-clock.h
37include_bsp_HEADERS += ../shared/include/arm-a9mpcore-irq.h
38include_bsp_HEADERS += ../shared/include/arm-a9mpcore-regs.h
39include_bsp_HEADERS += ../shared/include/arm-a9mpcore-start.h
40include_bsp_HEADERS += ../shared/include/arm-cp15-start.h
41include_bsp_HEADERS += ../shared/include/arm-gic.h
42include_bsp_HEADERS += ../shared/include/arm-gic-irq.h
43include_bsp_HEADERS += ../shared/include/arm-gic-regs.h
44include_bsp_HEADERS += ../shared/include/arm-gic-tm27.h
45include_bsp_HEADERS += include/irq.h
46include_bsp_HEADERS += include/zynq-uart.h
47include_bsp_HEADERS += include/zynq-uart-regs.h
48
49include_libcpu_HEADERS = ../../../libcpu/arm/shared/include/arm-cp15.h
50
51###############################################################################
52#                  Data                                                       #
53###############################################################################
54
55noinst_LIBRARIES = libbspstart.a
56
57libbspstart_a_SOURCES = ../shared/start/start.S
58
59project_lib_DATA = start.$(OBJEXT)
60
61project_lib_DATA += startup/linkcmds
62
63###############################################################################
64#                  LibBSP                                                     #
65###############################################################################
66
67noinst_LIBRARIES += libbsp.a
68
69libbsp_a_SOURCES =
70libbsp_a_CPPFLAGS =
71libbsp_a_LIBADD =
72
73# Shared
74libbsp_a_SOURCES += ../../shared/bootcard.c
75libbsp_a_SOURCES += ../../shared/bspclean.c
76libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
77libbsp_a_SOURCES += ../../shared/bsplibc.c
78libbsp_a_SOURCES += ../../shared/bsppost.c
79libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
80libbsp_a_SOURCES += ../../shared/bsppretaskinghook.c
81libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
82libbsp_a_SOURCES += ../../shared/sbrk.c
83libbsp_a_SOURCES += ../../shared/timerstub.c
84libbsp_a_SOURCES += ../../shared/src/stackalloc.c
85libbsp_a_SOURCES += ../shared/abort/simple_abort.c
86libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S
87libbsp_a_SOURCES += ../shared/arm-cp15-set-exception-handler.c
88libbsp_a_SOURCES += ../shared/arm-cp15-set-ttb-entries.c
89
90# Startup
91libbsp_a_SOURCES += startup/bspreset.c
92libbsp_a_SOURCES += startup/bspstart.c
93
94# IRQ
95libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
96libbsp_a_SOURCES += ../../shared/src/irq-generic.c
97libbsp_a_SOURCES += ../../shared/src/irq-info.c
98libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
99libbsp_a_SOURCES += ../../shared/src/irq-server.c
100libbsp_a_SOURCES += ../../shared/src/irq-shell.c
101libbsp_a_SOURCES += ../shared/arm-gic-irq.c
102
103# Console
104libbsp_a_SOURCES += ../../shared/console.c
105libbsp_a_SOURCES += ../../shared/console_control.c
106libbsp_a_SOURCES += ../../shared/console_read.c
107libbsp_a_SOURCES += ../../shared/console_select_simple.c
108libbsp_a_SOURCES += ../../shared/console_write.c
109libbsp_a_SOURCES += console/console-config.c
110libbsp_a_SOURCES += console/zynq-uart.c
111
112# Clock
113libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
114libbsp_a_SOURCES += ../shared/arm-a9mpcore-clock-config.c
115
116# Cache
117libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
118libbsp_a_SOURCES += include/cache_.h
119libbsp_a_CPPFLAGS += -I$(srcdir)/include
120
121# Start hooks
122libbsp_a_SOURCES += startup/bspstarthooks.c startup/bspstartmmu.c
123
124if HAS_SMP
125libbsp_a_SOURCES += ../shared/arm-a9mpcore-smp.c
126endif
127
128###############################################################################
129#                  Special Rules                                              #
130###############################################################################
131
132DISTCLEANFILES = include/bspopts.h
133
134include $(srcdir)/preinstall.am
135include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.