source: rtems/c/src/lib/libbsp/riscv/riscv/Makefile.am @ 8db3f0e

Last change on this file since 8db3f0e was 8db3f0e, checked in by Sebastian Huber <sebastian.huber@…>, on Jul 19, 2018 at 10:11:19 AM

riscv: Rework exception handling

Remove _CPU_ISR_install_raw_handler() and _CPU_ISR_install_vector()
functions. Applications can install an exception handler via the fatal
error handler to handle synchronous exceptions.

Handle interrupt exceptions via _RISCV_Interrupt_dispatch() which must
be provided by the BSP.

Update #3433.

  • Property mode set to 100644
File size: 2.9 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
9include $(top_srcdir)/../../bsp.am
10
11dist_project_lib_DATA = ../../../../../../bsps/riscv/riscv/start/bsp_specs
12
13###############################################################################
14#                  Header                                                     #
15###############################################################################
16
17###############################################################################
18#                  Data                                                       #
19###############################################################################
20
21start.$(OBJEXT): ../../../../../../bsps/riscv/riscv/start/start.S
22        $(CPPASCOMPILE) -o $@ -c $<
23project_lib_DATA = start.$(OBJEXT)
24
25project_lib_DATA += linkcmds
26project_lib_DATA += ../../../../../../bsps/riscv/riscv/start/linkcmds.base
27
28###############################################################################
29#                  LibBSP                                                     #
30###############################################################################
31
32project_lib_LIBRARIES = librtemsbsp.a
33
34# Startup
35librtemsbsp_a_SOURCES = ../../../../../../bsps/shared/start/bspreset-empty.c
36librtemsbsp_a_SOURCES += ../../../../../../bsps/riscv/riscv/start/bspstart.c
37librtemsbsp_a_SOURCES += ../../../../../../bsps/riscv/riscv/start/bsp_fatal_halt.c
38
39# Shared
40librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
41librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/getentropy/getentropy-cpucounter.c
42librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bsp-fdt.c
43librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/stackalloc.c
44librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
45
46# clock
47librtemsbsp_a_SOURCES +=../../../../../../bsps/riscv/riscv/clock/clockdrv.c
48
49# Timer
50librtemsbsp_a_SOURCES += ../../../../../../bsps/riscv/riscv/btimer/btimer.c
51
52# IRQ
53librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/irq/irq-default-handler.c
54librtemsbsp_a_SOURCES += ../../../../../../bsps/riscv/riscv/irq/irq.c
55
56# Cache
57librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/cache/nocache.c
58
59# Console
60librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/console-termios.c
61librtemsbsp_a_SOURCES += ../../../../../../bsps/riscv/riscv/console/console-config.c
62librtemsbsp_a_SOURCES += ../../../../../../bsps/riscv/riscv/console/htif.c
63
64if HAS_SMP
65librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspsmp-dummy.c
66endif
67
68include $(top_srcdir)/../../../../automake/local.am
69include $(srcdir)/../../../../../../bsps/shared/irq-sources.am
70include $(srcdir)/../../../../../../bsps/shared/shared-sources.am
71include $(srcdir)/../../../../../../bsps/riscv/riscv/headers.am
Note: See TracBrowser for help on using the repository browser.