source: rtems/c/src/lib/libbsp/arm/lpc24xx/Makefile.am @ 6a22637

4.115
Last change on this file since 6a22637 was 6a22637, checked in by Sebastian Huber <sebastian.huber@…>, on 02/08/13 at 13:23:22

bsp/lpc24xx: Move UART probes to separate files

  • Property mode set to 100644
File size: 6.4 KB
RevLine 
[5aeed17]1##
2#
3# @file
4#
[29cc1477]5# @brief Makefile of LibBSP for the LPC24XX boards.
[5aeed17]6#
7
8ACLOCAL_AMFLAGS = -I ../../../../aclocal
9
10include $(top_srcdir)/../../../../automake/compile.am
11
12include_bspdir = $(includedir)/bsp
13
[3416c44]14dist_project_lib_DATA = bsp_specs
15
[5aeed17]16###############################################################################
17#                  Header                                                     #
18###############################################################################
19
[f969fcb]20include_HEADERS = include/bsp.h
[5aeed17]21
[9647f7fe]22nodist_include_HEADERS = ../../shared/include/coverhd.h \
23        include/bspopts.h
[29cc1477]24
[3416c44]25nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
[5aeed17]26
[f969fcb]27include_bsp_HEADERS =
28include_bsp_HEADERS += ../../shared/include/utility.h
[ef06d30]29include_bsp_HEADERS += ../../shared/include/irq-generic.h
[9647f7fe]30include_bsp_HEADERS += ../../shared/include/irq-info.h
[7ae2775]31include_bsp_HEADERS += ../../shared/include/stackalloc.h
[a9485d7b]32include_bsp_HEADERS += ../../shared/include/uart-output-char.h
[ef06d30]33include_bsp_HEADERS += ../../shared/tod.h
34include_bsp_HEADERS += ../shared/include/start.h
[c468f18b]35include_bsp_HEADERS += ../shared/lpc/include/lpc-timer.h
[dd853a3]36include_bsp_HEADERS += ../shared/lpc/include/lpc-i2s.h
[d74ed4a]37include_bsp_HEADERS += ../shared/lpc/include/lpc-emc.h
38include_bsp_HEADERS += ../shared/lpc/include/lpc-dma.h
39include_bsp_HEADERS += ../shared/lpc/include/lpc-lcd.h
[bd0fb473]40include_bsp_HEADERS += ../shared/armv7m/include/armv7m-irq.h
[ef06d30]41include_bsp_HEADERS += include/dma.h
[7ae2775]42include_bsp_HEADERS += include/i2c.h
43include_bsp_HEADERS += include/io.h
[4f609eec]44include_bsp_HEADERS += include/irq.h
[dd853a3]45include_bsp_HEADERS += include/lcd.h
[4a6cc2a]46include_bsp_HEADERS += include/lpc17xx.h
[4f609eec]47include_bsp_HEADERS += include/lpc24xx.h
[c468f18b]48include_bsp_HEADERS += include/lpc-clock-config.h
[39c8fdb]49include_bsp_HEADERS += include/lpc-ethernet-config.h
[4f609eec]50include_bsp_HEADERS += include/ssp.h
51include_bsp_HEADERS += include/start-config.h
52include_bsp_HEADERS += include/system-clocks.h
[9647f7fe]53
[ef06d30]54include_HEADERS += ../../shared/include/tm27.h
[5aeed17]55
56###############################################################################
57#                  Data                                                       #
58###############################################################################
59
[c0bea05]60noinst_LIBRARIES = libbspstart.a
[29cc1477]61
[c0bea05]62libbspstart_a_SOURCES = ../shared/start/start.S
[29cc1477]63
[5aeed17]64project_lib_DATA = start.$(OBJEXT)
65
[7187942]66project_lib_DATA += startup/linkcmds
[4f609eec]67EXTRA_DIST =
[14ee5a1e]68EXTRA_DIST += startup/linkcmds.lpc17xx_ea_ram
69EXTRA_DIST += startup/linkcmds.lpc17xx_ea_rom_int
[d40b09d]70EXTRA_DIST += startup/linkcmds.lpc17xx_plx800_ram
71EXTRA_DIST += startup/linkcmds.lpc17xx_plx800_rom_int
[c468f18b]72EXTRA_DIST += startup/linkcmds.lpc2362
[b18fd86]73EXTRA_DIST += startup/linkcmds.lpc23xx_tli800
[4f609eec]74EXTRA_DIST += startup/linkcmds.lpc24xx_ea
75EXTRA_DIST += startup/linkcmds.lpc24xx_ncs_ram
76EXTRA_DIST += startup/linkcmds.lpc24xx_ncs_rom_ext
77EXTRA_DIST += startup/linkcmds.lpc24xx_ncs_rom_int
[4868c771]78EXTRA_DIST += startup/linkcmds.lpc24xx_plx800_ram
[4f609eec]79EXTRA_DIST += startup/linkcmds.lpc24xx_plx800_rom_int
[5aeed17]80
81###############################################################################
82#                  LibBSP                                                     #
83###############################################################################
[29cc1477]84
[c0bea05]85noinst_LIBRARIES += libbsp.a
[29cc1477]86
[64eb0c7]87libbsp_a_SOURCES =
[39c8fdb]88libbsp_a_CPPFLAGS =
89libbsp_a_LIBADD =
[5aeed17]90
[29cc1477]91# Shared
[64eb0c7]92libbsp_a_SOURCES += ../../shared/bootcard.c \
[5aeed17]93        ../../shared/bspclean.c \
94        ../../shared/bspgetworkarea.c \
95        ../../shared/bsplibc.c \
96        ../../shared/bsppost.c \
97        ../../shared/bsppredriverhook.c \
98        ../../shared/gnatinstallhandler.c \
99        ../../shared/sbrk.c \
[7ae2775]100        ../../shared/src/stackalloc.c \
[4a6cc2a]101        ../../shared/src/uart-output-char.c
[5aeed17]102
[29cc1477]103# Startup
[4a6cc2a]104libbsp_a_SOURCES += ../shared/startup/bsp-start-copy-sections.c
105libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S
106libbsp_a_SOURCES += startup/bspreset.c
107libbsp_a_SOURCES += startup/bspstart.c
[5aeed17]108
[29cc1477]109# IRQ
[0f31fddc]110libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
111libbsp_a_SOURCES += ../../shared/src/irq-generic.c
112libbsp_a_SOURCES += ../../shared/src/irq-info.c
113libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
114libbsp_a_SOURCES += ../../shared/src/irq-server.c
115libbsp_a_SOURCES += ../../shared/src/irq-shell.c
[bd0fb473]116libbsp_a_SOURCES += ../shared/armv7m/irq/armv7m-irq.c
117libbsp_a_SOURCES += ../shared/armv7m/irq/armv7m-irq-dispatch.c
[0f31fddc]118libbsp_a_SOURCES += irq/irq.c
119libbsp_a_SOURCES += irq/irq-dispatch.c
[5aeed17]120
[29cc1477]121# Console
[6a22637]122libbsp_a_SOURCES += ../../shared/console.c
123libbsp_a_SOURCES += ../../shared/console_control.c
124libbsp_a_SOURCES += ../../shared/console_read.c
125libbsp_a_SOURCES += ../../shared/console_select.c
126libbsp_a_SOURCES += ../../shared/console_write.c
127libbsp_a_SOURCES += console/console-config.c
128libbsp_a_SOURCES += console/uart-probe-1.c
129libbsp_a_SOURCES += console/uart-probe-2.c
130libbsp_a_SOURCES += console/uart-probe-3.c
[5aeed17]131
[29cc1477]132# Clock
[1f7d0cca]133libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
[34c61517]134libbsp_a_SOURCES += ../shared/lpc/clock/lpc-clock-config.c
135libbsp_a_SOURCES += ../shared/armv7m/clock/armv7m-clock-config.c
[5aeed17]136
[29cc1477]137# RTC
[64eb0c7]138libbsp_a_SOURCES += ../../shared/tod.c \
[5aeed17]139        rtc/rtc-config.c
140
[29cc1477]141# Misc
142libbsp_a_SOURCES += misc/system-clocks.c \
[7ae2775]143        misc/dma.c \
[ba938b8d]144        misc/dma-copy.c \
[e90329f]145        misc/bspidle.c \
[ba938b8d]146        misc/io.c \
[dd853a3]147        misc/lcd.c \
[c446d7c]148        misc/restart.c \
[ba938b8d]149        misc/timer.c
[29cc1477]150
151# SSP
152libbsp_a_SOURCES += ssp/ssp.c
[5aeed17]153
[7ae2775]154# I2C
[d74ed4a]155libbsp_a_SOURCES += i2c/i2c.c \
156        i2c/i2c-config.c
[7ae2775]157
[39c8fdb]158# Cache
[30a45737]159libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
160libbsp_a_SOURCES += ../../../libcpu/arm/shared/include/cache_.h
[39c8fdb]161libbsp_a_CPPFLAGS += -I$(srcdir)/../../../libcpu/arm/shared/include
162
[22f107b6]163# Start hooks
[ba938b8d]164libbsp_a_SOURCES += startup/bspstarthooks.c
[4f609eec]165libbsp_a_SOURCES += startup/start-config-emc-dynamic.c
166libbsp_a_SOURCES += startup/start-config-emc-static.c
[14ee5a1e]167libbsp_a_SOURCES += startup/start-config-mpu.c
[4f609eec]168libbsp_a_SOURCES += startup/start-config-pinsel.c
[ba938b8d]169
[9647f7fe]170###############################################################################
171#                  Network                                                    #
172###############################################################################
173
174if HAS_NETWORKING
175
176noinst_PROGRAMS = network.rel
177
[39c8fdb]178network_rel_SOURCES = ../shared/lpc/network/lpc-ethernet.c
[9647f7fe]179network_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE
180network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
181
[39c8fdb]182libbsp_a_LIBADD += network.rel
[9647f7fe]183
184endif
185
[5aeed17]186###############################################################################
187#                  Special Rules                                              #
188###############################################################################
189
[29cc1477]190DISTCLEANFILES = include/bspopts.h
[5aeed17]191
192include $(srcdir)/preinstall.am
193include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.