[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 |
---|
| 13 | |
---|
[bea49c9] | 14 | include_bsp_ti_herculesdir = $(includedir)/bsp/ti_herc |
---|
| 15 | |
---|
[4407ee6] | 16 | dist_project_lib_DATA = bsp_specs |
---|
| 17 | |
---|
| 18 | # ---------------------------- |
---|
| 19 | # ------ Headers |
---|
| 20 | # ---------------------------- |
---|
| 21 | |
---|
| 22 | include_HEADERS = include/bsp.h |
---|
| 23 | |
---|
| 24 | nodist_include_HEADERS = ../../shared/include/coverhd.h |
---|
| 25 | nodist_include_HEADERS += include/bspopts.h |
---|
| 26 | |
---|
| 27 | nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h |
---|
| 28 | |
---|
| 29 | include_bsp_HEADERS = |
---|
| 30 | include_bsp_HEADERS += ../../shared/include/utility.h |
---|
| 31 | include_bsp_HEADERS += ../../shared/include/irq-generic.h |
---|
| 32 | include_bsp_HEADERS += ../../shared/include/irq-info.h |
---|
| 33 | include_bsp_HEADERS += ../../shared/include/stackalloc.h |
---|
| 34 | include_bsp_HEADERS += ../../shared/include/uart-output-char.h |
---|
| 35 | include_bsp_HEADERS += ../shared/include/start.h |
---|
| 36 | include_bsp_HEADERS += include/tms570.h |
---|
| 37 | include_bsp_HEADERS += include/tms570-sci.h |
---|
| 38 | include_bsp_HEADERS += include/irq.h |
---|
| 39 | include_bsp_HEADERS += include/tms570-rti.h |
---|
| 40 | include_bsp_HEADERS += include/tms570-vim.h |
---|
| 41 | include_bsp_HEADERS += include/tms570-pom.h |
---|
| 42 | include_bsp_HEADERS += include/tms570-sci-driver.h |
---|
[46265063] | 43 | include_bsp_HEADERS += include/system-clocks.h |
---|
[e5d5767e] | 44 | include_bsp_HEADERS += include/tms570-pinmux.h |
---|
[4407ee6] | 45 | |
---|
[bea49c9] | 46 | include_bsp_ti_hercules_HEADERS = include/ti_herc/reg_adc.h |
---|
| 47 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_ccmsr.h |
---|
| 48 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_crc.h |
---|
| 49 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_dcan.h |
---|
| 50 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_dcc.h |
---|
| 51 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_dma.h |
---|
| 52 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_dmm.h |
---|
| 53 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_efuse.h |
---|
[6302c61] | 54 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_emacc.h |
---|
[bea49c9] | 55 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_emacm.h |
---|
| 56 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_emif.h |
---|
| 57 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_esm.h |
---|
| 58 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_flash.h |
---|
| 59 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_flex_ray.h |
---|
| 60 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_gio.h |
---|
| 61 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_htu.h |
---|
| 62 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_i2c.h |
---|
| 63 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_iomm.h |
---|
| 64 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_lin.h |
---|
| 65 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_mdio.h |
---|
| 66 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_n2het.h |
---|
| 67 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_pbist.h |
---|
| 68 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_pll.h |
---|
| 69 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_pmm.h |
---|
| 70 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_rti.h |
---|
| 71 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_rtp.h |
---|
| 72 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_sci.h |
---|
| 73 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_tcr.h |
---|
| 74 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_tcram.h |
---|
| 75 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_vim.h |
---|
| 76 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_pom.h |
---|
| 77 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_spi.h |
---|
| 78 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_stc.h |
---|
| 79 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_sys.h |
---|
| 80 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_sys2.h |
---|
| 81 | include_bsp_ti_hercules_HEADERS += include/ti_herc/reg_pcr.h |
---|
| 82 | |
---|
[4407ee6] | 83 | include_HEADERS += ../../shared/include/tm27.h |
---|
| 84 | |
---|
| 85 | # ---------------------------- |
---|
| 86 | # ------ Data |
---|
| 87 | # ---------------------------- |
---|
| 88 | |
---|
| 89 | noinst_LIBRARIES = libbspstart.a |
---|
| 90 | |
---|
| 91 | libbspstart_a_SOURCES = ../shared/start/start.S |
---|
| 92 | |
---|
| 93 | project_lib_DATA = start.$(OBJEXT) |
---|
| 94 | project_lib_DATA += startup/linkcmds |
---|
| 95 | |
---|
| 96 | EXTRA_DIST = |
---|
| 97 | EXTRA_DIST += startup/linkcmds.tms570ls3137_hdk |
---|
[38404cb] | 98 | EXTRA_DIST += startup/linkcmds.tms570ls3137_hdk_with_loader |
---|
[4407ee6] | 99 | EXTRA_DIST += startup/linkcmds.tms570ls3137_hdk_sdram |
---|
| 100 | EXTRA_DIST += startup/linkcmds.tms570ls3137_hdk_intram |
---|
| 101 | |
---|
| 102 | # ---------------------------- |
---|
| 103 | # ------ LibBSP |
---|
| 104 | # ---------------------------- |
---|
| 105 | |
---|
| 106 | noinst_LIBRARIES += libbsp.a |
---|
| 107 | |
---|
| 108 | libbsp_a_SOURCES = |
---|
| 109 | libbsp_a_CPPFLAGS = |
---|
| 110 | libbsp_a_LIBADD = |
---|
| 111 | |
---|
| 112 | # Shared |
---|
| 113 | libbsp_a_SOURCES += ../../shared/bootcard.c |
---|
| 114 | libbsp_a_SOURCES += ../../shared/bspclean.c |
---|
| 115 | libbsp_a_SOURCES += ../../shared/bspgetworkarea.c |
---|
| 116 | libbsp_a_SOURCES += ../../shared/bsppredriverhook.c |
---|
| 117 | libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c |
---|
| 118 | libbsp_a_SOURCES += ../../shared/sbrk.c |
---|
| 119 | libbsp_a_SOURCES += ../../shared/src/stackalloc.c |
---|
[46265063] | 120 | libbsp_a_SOURCES += ../../shared/cpucounterdiff.c |
---|
[4407ee6] | 121 | |
---|
| 122 | # Startup |
---|
| 123 | libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S |
---|
[991fdb33] | 124 | libbsp_a_SOURCES += ../shared/startup/bsp-start-init-registers.S |
---|
[4407ee6] | 125 | libbsp_a_SOURCES += startup/bspreset.c |
---|
| 126 | libbsp_a_SOURCES += startup/bspstart.c |
---|
| 127 | |
---|
| 128 | # POM |
---|
| 129 | libbsp_a_SOURCES += pom/tms570-pom.c |
---|
| 130 | |
---|
| 131 | # IRQ |
---|
| 132 | libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c |
---|
| 133 | libbsp_a_SOURCES += ../../shared/src/irq-generic.c |
---|
| 134 | libbsp_a_SOURCES += ../../shared/src/irq-info.c |
---|
| 135 | libbsp_a_SOURCES += ../../shared/src/irq-legacy.c |
---|
| 136 | libbsp_a_SOURCES += ../../shared/src/irq-server.c |
---|
| 137 | libbsp_a_SOURCES += ../../shared/src/irq-shell.c |
---|
| 138 | libbsp_a_SOURCES += irq/irq.c |
---|
| 139 | |
---|
| 140 | # Console |
---|
| 141 | libbsp_a_SOURCES += ../../shared/console-termios.c |
---|
| 142 | libbsp_a_SOURCES += console/printk-support.c |
---|
| 143 | libbsp_a_SOURCES += console/tms570-sci.c |
---|
| 144 | |
---|
| 145 | # Clock |
---|
| 146 | libbsp_a_SOURCES += ../../shared/clockdrv_shell.h |
---|
| 147 | libbsp_a_SOURCES += clock/clock.c |
---|
[46265063] | 148 | libbsp_a_SOURCES += clock/benchmark_timer.c |
---|
[4407ee6] | 149 | |
---|
| 150 | # RTC |
---|
| 151 | |
---|
| 152 | # GPIO |
---|
[e5d5767e] | 153 | libbsp_a_SOURCES += pinmux/pinmux.c |
---|
[4407ee6] | 154 | # Timer |
---|
| 155 | |
---|
| 156 | # Benchmark Timer |
---|
| 157 | |
---|
| 158 | # Misc |
---|
[46265063] | 159 | libbsp_a_SOURCES += misc/cpucounterread.c |
---|
[4407ee6] | 160 | |
---|
| 161 | # Watchdog |
---|
| 162 | |
---|
[46265063] | 163 | # Cache |
---|
| 164 | libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c |
---|
| 165 | libbsp_a_SOURCES += ../../../libcpu/arm/shared/include/cache_.h |
---|
| 166 | libbsp_a_CPPFLAGS += -I$(srcdir)/../../../libcpu/arm/shared/include |
---|
| 167 | |
---|
[4407ee6] | 168 | # Start hooks |
---|
| 169 | libbsp_a_SOURCES += startup/bspstarthooks.c |
---|
| 170 | |
---|
| 171 | # ---------------------------- |
---|
| 172 | # ------ Special Rules |
---|
| 173 | # ---------------------------- |
---|
| 174 | |
---|
| 175 | DISTCLEANFILES = include/bspopts.h |
---|
| 176 | |
---|
| 177 | include $(srcdir)/preinstall.am |
---|
| 178 | include $(top_srcdir)/../../../../automake/local.am |
---|