[4407ee6] | 1 | ## |
---|
| 2 | # |
---|
| 3 | # @file makefile.am |
---|
| 4 | # |
---|
| 5 | # @brief Makefile of LibBSP for the TMS570 boards. |
---|
| 6 | # |
---|
| 7 | |
---|
| 8 | ACLOCAL_AMFLAGS = -I ../../../../aclocal |
---|
| 9 | |
---|
| 10 | include $(top_srcdir)/../../../../automake/compile.am |
---|
| 11 | |
---|
| 12 | include_bspdir = $(includedir)/bsp |
---|
[e629076] | 13 | include_libcpudir = $(includedir)/libcpu |
---|
[4407ee6] | 14 | |
---|
[bea49c9] | 15 | include_bsp_ti_herculesdir = $(includedir)/bsp/ti_herc |
---|
| 16 | |
---|
[4407ee6] | 17 | dist_project_lib_DATA = bsp_specs |
---|
| 18 | |
---|
| 19 | # ---------------------------- |
---|
| 20 | # ------ Headers |
---|
| 21 | # ---------------------------- |
---|
| 22 | |
---|
| 23 | include_HEADERS = include/bsp.h |
---|
| 24 | |
---|
| 25 | nodist_include_HEADERS = ../../shared/include/coverhd.h |
---|
| 26 | nodist_include_HEADERS += include/bspopts.h |
---|
| 27 | |
---|
| 28 | nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h |
---|
| 29 | |
---|
| 30 | include_bsp_HEADERS = |
---|
| 31 | include_bsp_HEADERS += ../../shared/include/utility.h |
---|
| 32 | include_bsp_HEADERS += ../../shared/include/irq-generic.h |
---|
| 33 | include_bsp_HEADERS += ../../shared/include/irq-info.h |
---|
| 34 | include_bsp_HEADERS += ../../shared/include/stackalloc.h |
---|
| 35 | include_bsp_HEADERS += ../../shared/include/uart-output-char.h |
---|
| 36 | include_bsp_HEADERS += ../shared/include/start.h |
---|
| 37 | include_bsp_HEADERS += include/tms570.h |
---|
| 38 | include_bsp_HEADERS += include/tms570-sci.h |
---|
| 39 | include_bsp_HEADERS += include/irq.h |
---|
| 40 | include_bsp_HEADERS += include/tms570-rti.h |
---|
| 41 | include_bsp_HEADERS += include/tms570-vim.h |
---|
| 42 | include_bsp_HEADERS += include/tms570-pom.h |
---|
| 43 | include_bsp_HEADERS += include/tms570-sci-driver.h |
---|
[46265063] | 44 | include_bsp_HEADERS += include/system-clocks.h |
---|
[e5d5767e] | 45 | include_bsp_HEADERS += include/tms570-pinmux.h |
---|
[4407ee6] | 46 | |
---|
[6626efe6] | 47 | include_bsp_HEADERS += include/tms570-pins.h |
---|
| 48 | include_bsp_HEADERS += include/tms570ls3137zwt-pins.h |
---|
| 49 | |
---|
[e629076] | 50 | include_libcpu_HEADERS = ../../../libcpu/arm/shared/include/arm-cp15.h |
---|
| 51 | |
---|
[bea49c9] | 52 | include_bsp_ti_hercules_HEADERS = include/ti_herc/reg_adc.h |
---|
| 53 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_ccmsr.h |
---|
| 54 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_crc.h |
---|
| 55 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_dcan.h |
---|
| 56 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_dcc.h |
---|
| 57 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_dma.h |
---|
| 58 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_dmm.h |
---|
| 59 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_efuse.h |
---|
[6302c61] | 60 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_emacc.h |
---|
[bea49c9] | 61 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_emacm.h |
---|
| 62 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_emif.h |
---|
| 63 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_esm.h |
---|
| 64 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_flash.h |
---|
| 65 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_flex_ray.h |
---|
| 66 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_gio.h |
---|
| 67 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_htu.h |
---|
| 68 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_i2c.h |
---|
| 69 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_iomm.h |
---|
| 70 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_lin.h |
---|
| 71 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_mdio.h |
---|
| 72 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_n2het.h |
---|
| 73 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_pbist.h |
---|
| 74 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_pll.h |
---|
| 75 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_pmm.h |
---|
| 76 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_rti.h |
---|
| 77 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_rtp.h |
---|
| 78 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_sci.h |
---|
| 79 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_tcr.h |
---|
| 80 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_tcram.h |
---|
| 81 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_vim.h |
---|
| 82 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_pom.h |
---|
| 83 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_spi.h |
---|
| 84 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_stc.h |
---|
| 85 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_sys.h |
---|
| 86 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_sys2.h |
---|
| 87 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_pcr.h |
---|
| 88 | |
---|
[4407ee6] | 89 | include_HEADERS += ../../shared/include/tm27.h |
---|
| 90 | |
---|
| 91 | # ---------------------------- |
---|
| 92 | # ------ Data |
---|
| 93 | # ---------------------------- |
---|
| 94 | |
---|
| 95 | noinst_LIBRARIES = libbspstart.a |
---|
| 96 | |
---|
| 97 | libbspstart_a_SOURCES = ../shared/start/start.S |
---|
| 98 | |
---|
| 99 | project_lib_DATA = start.$(OBJEXT) |
---|
| 100 | project_lib_DATA += startup/linkcmds |
---|
| 101 | |
---|
| 102 | EXTRA_DIST = |
---|
| 103 | EXTRA_DIST += startup/linkcmds.tms570ls3137_hdk |
---|
[38404cb] | 104 | EXTRA_DIST += startup/linkcmds.tms570ls3137_hdk_with_loader |
---|
[4407ee6] | 105 | EXTRA_DIST += startup/linkcmds.tms570ls3137_hdk_sdram |
---|
| 106 | EXTRA_DIST += startup/linkcmds.tms570ls3137_hdk_intram |
---|
| 107 | |
---|
| 108 | # ---------------------------- |
---|
| 109 | # ------ LibBSP |
---|
| 110 | # ---------------------------- |
---|
| 111 | |
---|
| 112 | noinst_LIBRARIES += libbsp.a |
---|
| 113 | |
---|
| 114 | libbsp_a_SOURCES = |
---|
| 115 | libbsp_a_CPPFLAGS = |
---|
| 116 | libbsp_a_LIBADD = |
---|
| 117 | |
---|
| 118 | # Shared |
---|
| 119 | libbsp_a_SOURCES += ../../shared/bootcard.c |
---|
| 120 | libbsp_a_SOURCES += ../../shared/bspclean.c |
---|
| 121 | libbsp_a_SOURCES += ../../shared/bspgetworkarea.c |
---|
| 122 | libbsp_a_SOURCES += ../../shared/bsppredriverhook.c |
---|
| 123 | libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c |
---|
| 124 | libbsp_a_SOURCES += ../../shared/sbrk.c |
---|
| 125 | libbsp_a_SOURCES += ../../shared/src/stackalloc.c |
---|
[46265063] | 126 | libbsp_a_SOURCES += ../../shared/cpucounterdiff.c |
---|
[e629076] | 127 | libbsp_a_SOURCES += ../shared/arm-cp15-set-exception-handler.c |
---|
| 128 | libbsp_a_SOURCES += ../shared/arm-cp15-set-ttb-entries.c |
---|
[4407ee6] | 129 | |
---|
| 130 | # Startup |
---|
| 131 | libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S |
---|
[991fdb33] | 132 | libbsp_a_SOURCES += ../shared/startup/bsp-start-init-registers.S |
---|
[4407ee6] | 133 | libbsp_a_SOURCES += startup/bspreset.c |
---|
| 134 | libbsp_a_SOURCES += startup/bspstart.c |
---|
| 135 | |
---|
| 136 | # POM |
---|
| 137 | libbsp_a_SOURCES += pom/tms570-pom.c |
---|
| 138 | |
---|
| 139 | # IRQ |
---|
| 140 | libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c |
---|
| 141 | libbsp_a_SOURCES += ../../shared/src/irq-generic.c |
---|
| 142 | libbsp_a_SOURCES += ../../shared/src/irq-info.c |
---|
| 143 | libbsp_a_SOURCES += ../../shared/src/irq-legacy.c |
---|
| 144 | libbsp_a_SOURCES += ../../shared/src/irq-server.c |
---|
| 145 | libbsp_a_SOURCES += ../../shared/src/irq-shell.c |
---|
| 146 | libbsp_a_SOURCES += irq/irq.c |
---|
| 147 | |
---|
| 148 | # Console |
---|
| 149 | libbsp_a_SOURCES += ../../shared/console-termios.c |
---|
| 150 | libbsp_a_SOURCES += console/printk-support.c |
---|
| 151 | libbsp_a_SOURCES += console/tms570-sci.c |
---|
| 152 | |
---|
| 153 | # Clock |
---|
| 154 | libbsp_a_SOURCES += ../../shared/clockdrv_shell.h |
---|
| 155 | libbsp_a_SOURCES += clock/clock.c |
---|
[46265063] | 156 | libbsp_a_SOURCES += clock/benchmark_timer.c |
---|
[4407ee6] | 157 | |
---|
| 158 | # RTC |
---|
| 159 | |
---|
| 160 | # GPIO |
---|
[e5d5767e] | 161 | libbsp_a_SOURCES += pinmux/pinmux.c |
---|
[4407ee6] | 162 | # Timer |
---|
| 163 | |
---|
| 164 | # Benchmark Timer |
---|
| 165 | |
---|
| 166 | # Misc |
---|
[46265063] | 167 | libbsp_a_SOURCES += misc/cpucounterread.c |
---|
[4407ee6] | 168 | |
---|
| 169 | # Watchdog |
---|
| 170 | |
---|
[46265063] | 171 | # Cache |
---|
| 172 | libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c |
---|
| 173 | libbsp_a_SOURCES += ../../../libcpu/arm/shared/include/cache_.h |
---|
| 174 | libbsp_a_CPPFLAGS += -I$(srcdir)/../../../libcpu/arm/shared/include |
---|
| 175 | |
---|
[98b6874] | 176 | if TMS570_USE_HWINIT_STARTUP |
---|
| 177 | libbsp_a_SOURCES += hwinit/tms570_sys_core.S |
---|
| 178 | libbsp_a_SOURCES += hwinit/fail_notification.c |
---|
| 179 | libbsp_a_SOURCES += hwinit/init_emif_sdram.c |
---|
| 180 | libbsp_a_SOURCES += hwinit/init_esm.c |
---|
| 181 | libbsp_a_SOURCES += hwinit/init_pinmux.c |
---|
| 182 | libbsp_a_SOURCES += hwinit/init_system.c |
---|
| 183 | libbsp_a_SOURCES += hwinit/tms570_selftest.c |
---|
| 184 | libbsp_a_SOURCES += hwinit/tms570_selftest_par_can.c |
---|
| 185 | libbsp_a_SOURCES += hwinit/tms570_selftest_par_mibspi.c |
---|
| 186 | libbsp_a_SOURCES += hwinit/tms570_selftest_par_std.c |
---|
| 187 | libbsp_a_SOURCES += hwinit/tms570_selftest_parity.c |
---|
| 188 | libbsp_a_SOURCES += hwinit/tms570_tcram_tests.c |
---|
| 189 | |
---|
| 190 | include_bsp_HEADERS += hwinit/tms570_selftest_parity.h |
---|
| 191 | include_bsp_HEADERS += hwinit/tms570_hwinit.h |
---|
| 192 | include_bsp_HEADERS += hwinit/tms570_selftest.h |
---|
| 193 | |
---|
| 194 | # Start hooks |
---|
| 195 | libbsp_a_SOURCES += hwinit/bspstarthooks-hwinit.c |
---|
| 196 | else |
---|
[4407ee6] | 197 | # Start hooks |
---|
| 198 | libbsp_a_SOURCES += startup/bspstarthooks.c |
---|
[98b6874] | 199 | endif |
---|
[4407ee6] | 200 | |
---|
| 201 | # ---------------------------- |
---|
| 202 | # ------ Special Rules |
---|
| 203 | # ---------------------------- |
---|
| 204 | |
---|
| 205 | DISTCLEANFILES = include/bspopts.h |
---|
| 206 | |
---|
| 207 | include $(srcdir)/preinstall.am |
---|
| 208 | include $(top_srcdir)/../../../../automake/local.am |
---|