source: rtems/c/src/lib/libbsp/arm/lpc24xx/Makefile.am @ 762fa62

5
Last change on this file since 762fa62 was 762fa62, checked in by Sebastian Huber <sebastian.huber@…>, on May 22, 2018 at 6:52:13 AM

arm: Simplify CPU counter support

Use the standard ARMv7-M systick module for the ARMv7-M CPU counter
instead of DWT counter since the DWT counter is affected by power saving
states.

Use an inline function for _CPU_Counter_difference() for all ARM BSPs.

Update #3456.

  • Property mode set to 100644
File size: 6.8 KB
Line 
1##
2#
3# @file
4#
5# @brief Makefile of LibBSP for the LPC24XX boards.
6#
7
8ACLOCAL_AMFLAGS = -I ../../../../aclocal
9
10include $(top_srcdir)/../../../../automake/compile.am
11include $(top_srcdir)/../../bsp.am
12
13dist_project_lib_DATA = ../../../../../../bsps/arm/lpc24xx/start/bsp_specs
14
15###############################################################################
16#                  Header                                                     #
17###############################################################################
18
19###############################################################################
20#                  Data                                                       #
21###############################################################################
22
23start.$(OBJEXT): ../../../../../../bsps/arm/shared/start/start.S
24        $(CPPASCOMPILE) -o $@ -c $<
25project_lib_DATA = start.$(OBJEXT)
26
27project_lib_DATA += linkcmds
28dist_project_lib_DATA += ../../../../../../bsps/arm/lpc24xx/start/linkcmds.lpc17xx_ea_ram
29dist_project_lib_DATA += ../../../../../../bsps/arm/lpc24xx/start/linkcmds.lpc17xx_ea_rom_int
30dist_project_lib_DATA += ../../../../../../bsps/arm/lpc24xx/start/linkcmds.lpc17xx_plx800_ram
31dist_project_lib_DATA += ../../../../../../bsps/arm/lpc24xx/start/linkcmds.lpc17xx_plx800_rom_int
32dist_project_lib_DATA += ../../../../../../bsps/arm/lpc24xx/start/linkcmds.lpc2362
33dist_project_lib_DATA += ../../../../../../bsps/arm/lpc24xx/start/linkcmds.lpc23xx_tli800
34dist_project_lib_DATA += ../../../../../../bsps/arm/lpc24xx/start/linkcmds.lpc24xx_ea
35dist_project_lib_DATA += ../../../../../../bsps/arm/lpc24xx/start/linkcmds.lpc24xx_ncs_ram
36dist_project_lib_DATA += ../../../../../../bsps/arm/lpc24xx/start/linkcmds.lpc24xx_ncs_rom_ext
37dist_project_lib_DATA += ../../../../../../bsps/arm/lpc24xx/start/linkcmds.lpc24xx_ncs_rom_int
38dist_project_lib_DATA += ../../../../../../bsps/arm/lpc24xx/start/linkcmds.lpc24xx_plx800_ram
39dist_project_lib_DATA += ../../../../../../bsps/arm/lpc24xx/start/linkcmds.lpc24xx_plx800_rom_int
40dist_project_lib_DATA += ../../../../../../bsps/arm/lpc24xx/start/linkcmds.lpc40xx_ea_ram
41dist_project_lib_DATA += ../../../../../../bsps/arm/lpc24xx/start/linkcmds.lpc40xx_ea_rom_int
42
43###############################################################################
44#                  LibBSP                                                     #
45###############################################################################
46
47project_lib_LIBRARIES = librtemsbsp.a
48
49librtemsbsp_a_SOURCES =
50
51# Shared
52librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/getentropy/getentropy-cpucounter.c
53librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspfatal-default.c
54librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bspgetworkarea-default.c
55librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/sbrk.c
56librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/stackalloc.c
57librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/uart-output-char.c
58
59# Startup
60librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/start/bsp-start-memcpy.S
61librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/start/bspreset-armv7m.c
62librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/lpc24xx/start/bspreset-armv4.c
63librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/lpc24xx/start/bspstart.c
64
65# IRQ
66librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/irq/irq-default-handler.c
67librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/irq/irq-armv7m.c
68librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/irq/irq-dispatch-armv7m.c
69librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/lpc24xx/irq/irq.c
70librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/lpc24xx/irq/irq-dispatch.c
71
72# Console
73librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/console-termios-init.c
74librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/console-termios.c
75librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/lpc24xx/console/console-config.c
76librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/lpc24xx/console/uart-probe-1.c
77librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/lpc24xx/console/uart-probe-2.c
78librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/lpc24xx/console/uart-probe-3.c
79
80# Clock
81librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/clock/clock-nxp-lpc.c
82librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/clock/clock-armv7m.c
83
84# RTC
85librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/rtc/rtc-support.c
86librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/lpc24xx/rtc/rtc-config.c
87
88# Misc
89librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/lpc24xx/start/system-clocks.c
90librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/lpc24xx/start/dma.c
91librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/lpc24xx/start/dma-copy.c
92librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/lpc24xx/start/bspidle.c
93librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/lpc24xx/start/io.c
94librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/lpc24xx/fb/lcd.c
95librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/lpc24xx/start/restart.c
96librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/lpc24xx/start/timer.c
97
98# SSP
99librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/lpc24xx/spi/ssp.c
100
101# I2C
102librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/lpc24xx/i2c/i2c.c
103librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/lpc24xx/i2c/i2c-config.c
104
105# Framebuffer
106librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/fb/arm-pl111.c
107librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/lpc24xx/start/fb-config.c
108
109# Cache
110librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/cache/nocache.c
111
112# Start hooks
113librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/lpc24xx/start/bspstarthooks.c
114librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/lpc24xx/start/start-config-emc-dynamic.c
115librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/lpc24xx/start/start-config-emc-static.c
116librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/lpc24xx/start/start-config-mpu.c
117librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/lpc24xx/start/start-config-pinsel.c
118
119###############################################################################
120#                  Network                                                    #
121###############################################################################
122
123if HAS_NETWORKING
124librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/net/
125endif
126
127###############################################################################
128#                  Special Rules                                              #
129###############################################################################
130
131
132include $(top_srcdir)/../../../../automake/local.am
133include $(srcdir)/../../../../../../bsps/shared/irq-sources.am
134include $(srcdir)/../../../../../../bsps/shared/shared-sources.am
135include $(srcdir)/../../../../../../bsps/arm/lpc24xx/headers.am
Note: See TracBrowser for help on using the repository browser.