source: rtems/c/src/lib/libbsp/riscv/riscv_generic/Makefile.am @ 642ef00

Last change on this file since 642ef00 was 642ef00, checked in by Sebastian Huber <sebastian.huber@…>, on Nov 27, 2017 at 5:23:29 AM

bsps: Provide <tm27.h> in each BSP

Since the <tm27.h> is highly BSP-dependent and used only by the tm27
test program we must provide this header file for each BSP. Without the
preinstall build target each header file must have a unique source
header file.

Update #3254.

  • Property mode set to 100644
File size: 3.0 KB
Line 
1##
2#
3# @brief Makefile of LibBSP for the RISCV/Spike simulator.
4#
5#
6ACLOCAL_AMFLAGS = -I ../../../../aclocal
7
8include $(top_srcdir)/../../../../automake/compile.am
9
10include_bspdir = $(includedir)/bsp
11include_libcpudir = $(includedir)/libcpu
12
13dist_project_lib_DATA = bsp_specs
14
15###############################################################################
16#                  Header                                                     #
17###############################################################################
18
19include_HEADERS = include/bsp.h
20include_HEADERS += include/tm27.h
21
22nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
23include_bsp_HEADERS = ../shared/include/linker-symbols.h
24
25include_bsp_HEADERS += ../../../libbsp/shared/include/mm.h
26include_bsp_HEADERS += ../../shared/include/utility.h
27include_bsp_HEADERS += ../../shared/include/irq-generic.h
28include_bsp_HEADERS += ../../shared/include/irq-info.h
29include_bsp_HEADERS += ../../shared/include/stackalloc.h
30include_bsp_HEADERS += ../../shared/include/console-polled.h
31include_bsp_HEADERS += include/irq.h
32
33nodist_include_HEADERS = include/bspopts.h
34
35###############################################################################
36#                  Data                                                       #
37###############################################################################
38noinst_LIBRARIES = libbspstart.a
39
40libbspstart_a_SOURCES = start/start.S
41
42project_lib_DATA = start.$(OBJEXT)
43
44project_lib_DATA += startup/linkcmds
45
46###############################################################################
47#                  LibBSP                                                     #
48###############################################################################
49
50noinst_LIBRARIES += libbsp.a
51
52# Startup
53libbsp_a_SOURCES = ../../shared/bspreset.c
54libbsp_a_SOURCES += ../../shared/bspstart.c
55libbsp_a_SOURCES += startup/bsp_fatal_halt.c
56
57# Shared
58libbsp_a_SOURCES += ../../shared/bootcard.c
59libbsp_a_SOURCES += ../../shared/bspclean.c
60libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
61libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
62libbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
63libbsp_a_SOURCES += ../../shared/sbrk.c
64libbsp_a_SOURCES += ../../shared/src/stackalloc.c
65libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
66
67# clock
68libbsp_a_SOURCES += clock/clockdrv.c ../../../shared/clockdrv_shell.h
69
70# Timer
71libbsp_a_SOURCES += timer/timer.c
72
73# console
74libbsp_a_SOURCES += ../../shared/console-polled.c
75
76# IRQ
77libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
78libbsp_a_SOURCES += ../../shared/src/irq-generic.c
79libbsp_a_SOURCES += ../../shared/src/irq-info.c
80libbsp_a_SOURCES += irq/irq.c
81
82# Cache
83libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
84libbsp_a_SOURCES += ../../shared/include/cache_.h
85libbsp_a_CPPFLAGS = -I$(srcdir)/../../shared/include
86
87# debugio
88libbsp_a_SOURCES += console/console-io.c
89
90DISTCLEANFILES = include/bspopts.h
91
92include $(srcdir)/preinstall.am
93include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.