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