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