[5aeed17] | 1 | ## |
---|
| 2 | # |
---|
| 3 | # @file |
---|
| 4 | # |
---|
[29cc1477] | 5 | # @brief Makefile of LibBSP for the LPC24XX boards. |
---|
[5aeed17] | 6 | # |
---|
| 7 | |
---|
| 8 | # $Id$ |
---|
| 9 | |
---|
| 10 | ACLOCAL_AMFLAGS = -I ../../../../aclocal |
---|
| 11 | |
---|
| 12 | include $(top_srcdir)/../../../../automake/compile.am |
---|
| 13 | |
---|
| 14 | include_bspdir = $(includedir)/bsp |
---|
[39c8fdb] | 15 | include_libcpudir = $(includedir)/libcpu |
---|
[5aeed17] | 16 | |
---|
[3416c44] | 17 | dist_project_lib_DATA = bsp_specs |
---|
| 18 | |
---|
[5aeed17] | 19 | ############################################################################### |
---|
| 20 | # Header # |
---|
| 21 | ############################################################################### |
---|
| 22 | |
---|
[f969fcb] | 23 | include_HEADERS = include/bsp.h |
---|
[5aeed17] | 24 | |
---|
[9647f7fe] | 25 | nodist_include_HEADERS = ../../shared/include/coverhd.h \ |
---|
| 26 | include/bspopts.h |
---|
[29cc1477] | 27 | |
---|
[3416c44] | 28 | nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h |
---|
[5aeed17] | 29 | |
---|
[f969fcb] | 30 | include_bsp_HEADERS = |
---|
| 31 | include_bsp_HEADERS += ../../shared/include/utility.h |
---|
[ef06d30] | 32 | include_bsp_HEADERS += ../../shared/include/irq-generic.h |
---|
[9647f7fe] | 33 | include_bsp_HEADERS += ../../shared/include/irq-info.h |
---|
[7ae2775] | 34 | include_bsp_HEADERS += ../../shared/include/stackalloc.h |
---|
[a9485d7b] | 35 | include_bsp_HEADERS += ../../shared/include/uart-output-char.h |
---|
[ef06d30] | 36 | include_bsp_HEADERS += ../../shared/tod.h |
---|
| 37 | include_bsp_HEADERS += ../shared/include/linker-symbols.h |
---|
| 38 | include_bsp_HEADERS += ../shared/include/start.h |
---|
[c468f18b] | 39 | include_bsp_HEADERS += ../shared/lpc/include/lpc-timer.h |
---|
[ef06d30] | 40 | include_bsp_HEADERS += include/irq.h |
---|
| 41 | include_bsp_HEADERS += include/lpc24xx.h |
---|
| 42 | include_bsp_HEADERS += include/system-clocks.h |
---|
| 43 | include_bsp_HEADERS += include/ssp.h |
---|
| 44 | include_bsp_HEADERS += include/dma.h |
---|
[7ae2775] | 45 | include_bsp_HEADERS += include/i2c.h |
---|
| 46 | include_bsp_HEADERS += include/io.h |
---|
[c468f18b] | 47 | include_bsp_HEADERS += include/lpc-clock-config.h |
---|
[39c8fdb] | 48 | include_bsp_HEADERS += include/lpc-ethernet-config.h |
---|
[9647f7fe] | 49 | |
---|
[ef06d30] | 50 | include_HEADERS += ../../shared/include/tm27.h |
---|
[5aeed17] | 51 | |
---|
[39c8fdb] | 52 | include_libcpu_HEADERS = ../../../libcpu/arm/shared/include/cache.h |
---|
| 53 | |
---|
[5aeed17] | 54 | ############################################################################### |
---|
| 55 | # Data # |
---|
| 56 | ############################################################################### |
---|
| 57 | |
---|
[c0bea05] | 58 | noinst_LIBRARIES = libbspstart.a |
---|
[29cc1477] | 59 | |
---|
[c0bea05] | 60 | libbspstart_a_SOURCES = ../shared/start/start.S |
---|
[29cc1477] | 61 | |
---|
[5aeed17] | 62 | project_lib_DATA = start.$(OBJEXT) |
---|
| 63 | |
---|
[7187942] | 64 | project_lib_DATA += startup/linkcmds |
---|
| 65 | project_lib_DATA += ../shared/startup/linkcmds.base |
---|
| 66 | EXTRA_DIST = startup/linkcmds.lpc24xx_ea |
---|
| 67 | EXTRA_DIST += startup/linkcmds.lpc24xx_ncs_rom_int |
---|
| 68 | EXTRA_DIST += startup/linkcmds.lpc24xx_ncs_rom_ext |
---|
| 69 | EXTRA_DIST += startup/linkcmds.lpc24xx_ncs_ram |
---|
[c468f18b] | 70 | EXTRA_DIST += startup/linkcmds.lpc2362 |
---|
[b18fd86] | 71 | EXTRA_DIST += startup/linkcmds.lpc23xx_tli800 |
---|
[5aeed17] | 72 | |
---|
| 73 | ############################################################################### |
---|
| 74 | # LibBSP # |
---|
| 75 | ############################################################################### |
---|
[29cc1477] | 76 | |
---|
[c0bea05] | 77 | noinst_LIBRARIES += libbsp.a |
---|
[29cc1477] | 78 | |
---|
[64eb0c7] | 79 | libbsp_a_SOURCES = |
---|
[39c8fdb] | 80 | libbsp_a_CPPFLAGS = |
---|
| 81 | libbsp_a_LIBADD = |
---|
[5aeed17] | 82 | |
---|
[29cc1477] | 83 | # Shared |
---|
[64eb0c7] | 84 | libbsp_a_SOURCES += ../../shared/bootcard.c \ |
---|
[5aeed17] | 85 | ../../shared/bspclean.c \ |
---|
| 86 | ../../shared/bspgetworkarea.c \ |
---|
| 87 | ../../shared/bsplibc.c \ |
---|
| 88 | ../../shared/bsppost.c \ |
---|
| 89 | ../../shared/bsppredriverhook.c \ |
---|
| 90 | ../../shared/gnatinstallhandler.c \ |
---|
| 91 | ../../shared/sbrk.c \ |
---|
[7ae2775] | 92 | ../../shared/src/stackalloc.c \ |
---|
[a9485d7b] | 93 | ../../shared/src/uart-output-char.c \ |
---|
[5aeed17] | 94 | ../shared/abort/simple_abort.c |
---|
| 95 | |
---|
[29cc1477] | 96 | # Startup |
---|
[9647f7fe] | 97 | libbsp_a_SOURCES += startup/bspstart.c \ |
---|
| 98 | startup/bspreset.c |
---|
[5aeed17] | 99 | |
---|
[29cc1477] | 100 | # IRQ |
---|
[64eb0c7] | 101 | libbsp_a_SOURCES += ../../shared/src/irq-generic.c \ |
---|
[5aeed17] | 102 | ../../shared/src/irq-legacy.c \ |
---|
[9647f7fe] | 103 | ../../shared/src/irq-info.c \ |
---|
| 104 | ../../shared/src/irq-shell.c \ |
---|
[ba938b8d] | 105 | ../../shared/src/irq-server.c \ |
---|
[5aeed17] | 106 | irq/irq.c |
---|
| 107 | |
---|
[29cc1477] | 108 | # Console |
---|
[64eb0c7] | 109 | libbsp_a_SOURCES += ../../shared/console.c \ |
---|
[5aeed17] | 110 | console/console-config.c |
---|
| 111 | |
---|
[29cc1477] | 112 | # Clock |
---|
[c468f18b] | 113 | libbsp_a_SOURCES += ../shared/lpc/clock/lpc-clock-config.c \ |
---|
[29cc1477] | 114 | ../../../shared/clockdrv_shell.h |
---|
[5aeed17] | 115 | |
---|
[29cc1477] | 116 | # RTC |
---|
[64eb0c7] | 117 | libbsp_a_SOURCES += ../../shared/tod.c \ |
---|
[5aeed17] | 118 | rtc/rtc-config.c |
---|
| 119 | |
---|
[29cc1477] | 120 | # Misc |
---|
| 121 | libbsp_a_SOURCES += misc/system-clocks.c \ |
---|
[7ae2775] | 122 | misc/dma.c \ |
---|
[ba938b8d] | 123 | misc/dma-copy.c \ |
---|
[e90329f] | 124 | misc/bspidle.c \ |
---|
[ba938b8d] | 125 | misc/io.c \ |
---|
| 126 | misc/timer.c |
---|
[29cc1477] | 127 | |
---|
| 128 | # SSP |
---|
| 129 | libbsp_a_SOURCES += ssp/ssp.c |
---|
[5aeed17] | 130 | |
---|
[7ae2775] | 131 | # I2C |
---|
| 132 | libbsp_a_SOURCES += i2c/i2c.c |
---|
| 133 | |
---|
[39c8fdb] | 134 | # Cache |
---|
| 135 | libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c \ |
---|
| 136 | ../../../libcpu/arm/shared/cache/cache_.h |
---|
| 137 | libbsp_a_CPPFLAGS += -I$(srcdir)/../../../libcpu/arm/shared/include |
---|
| 138 | |
---|
[22f107b6] | 139 | # Start hooks |
---|
[ba938b8d] | 140 | libbsp_a_SOURCES += startup/bspstarthooks.c |
---|
| 141 | |
---|
[9647f7fe] | 142 | ############################################################################### |
---|
| 143 | # Network # |
---|
| 144 | ############################################################################### |
---|
| 145 | |
---|
| 146 | if HAS_NETWORKING |
---|
| 147 | |
---|
| 148 | noinst_PROGRAMS = network.rel |
---|
| 149 | |
---|
[39c8fdb] | 150 | network_rel_SOURCES = ../shared/lpc/network/lpc-ethernet.c |
---|
[9647f7fe] | 151 | network_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE |
---|
| 152 | network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
| 153 | |
---|
[39c8fdb] | 154 | libbsp_a_LIBADD += network.rel |
---|
[9647f7fe] | 155 | |
---|
| 156 | endif |
---|
| 157 | |
---|
[5aeed17] | 158 | ############################################################################### |
---|
| 159 | # Special Rules # |
---|
| 160 | ############################################################################### |
---|
| 161 | |
---|
[29cc1477] | 162 | DISTCLEANFILES = include/bspopts.h |
---|
[5aeed17] | 163 | |
---|
| 164 | include $(srcdir)/preinstall.am |
---|
| 165 | include $(top_srcdir)/../../../../automake/local.am |
---|