[f73cfe99] | 1 | ## |
---|
| 2 | # |
---|
| 3 | # @file |
---|
| 4 | # |
---|
| 5 | # @brief Makefile of LibBSP for the Altera Cyclone-V platform. |
---|
| 6 | # |
---|
| 7 | |
---|
| 8 | ACLOCAL_AMFLAGS = -I ../../../../aclocal |
---|
| 9 | |
---|
| 10 | include $(top_srcdir)/../../../../automake/compile.am |
---|
| 11 | |
---|
| 12 | include_bspdir = $(includedir)/bsp |
---|
| 13 | include_libcpudir = $(includedir)/libcpu |
---|
| 14 | |
---|
| 15 | dist_project_lib_DATA = bsp_specs |
---|
| 16 | |
---|
| 17 | ############################################################################### |
---|
| 18 | # Header # |
---|
| 19 | ############################################################################### |
---|
| 20 | |
---|
| 21 | include_HEADERS = include/bsp.h |
---|
| 22 | include_HEADERS += include/tm27.h |
---|
| 23 | |
---|
| 24 | nodist_include_HEADERS = ../../shared/include/coverhd.h \ |
---|
| 25 | 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/tod.h |
---|
| 35 | include_bsp_HEADERS += ../shared/include/start.h |
---|
| 36 | include_bsp_HEADERS += ../shared/include/arm-a9mpcore-clock.h |
---|
| 37 | include_bsp_HEADERS += ../shared/include/arm-a9mpcore-irq.h |
---|
| 38 | include_bsp_HEADERS += ../shared/include/arm-a9mpcore-regs.h |
---|
| 39 | include_bsp_HEADERS += ../shared/include/arm-a9mpcore-start.h |
---|
| 40 | include_bsp_HEADERS += ../shared/include/arm-cp15-start.h |
---|
| 41 | include_bsp_HEADERS += ../shared/include/arm-errata.h |
---|
| 42 | include_bsp_HEADERS += ../shared/include/arm-gic.h |
---|
| 43 | include_bsp_HEADERS += ../shared/include/arm-gic-irq.h |
---|
| 44 | include_bsp_HEADERS += ../shared/include/arm-gic-regs.h |
---|
| 45 | include_bsp_HEADERS += ../shared/include/arm-gic-tm27.h |
---|
| 46 | include_bsp_HEADERS += ../shared/include/arm-release-id.h |
---|
| 47 | include_bsp_HEADERS += include/irq.h |
---|
| 48 | include_bsp_HEADERS += include/nocache-heap.h |
---|
| 49 | |
---|
| 50 | # Altera hwlib |
---|
| 51 | include_bsp_HEADERS += hwlib/include/alt_address_space.h |
---|
| 52 | include_bsp_HEADERS += hwlib/include/alt_clock_group.h |
---|
| 53 | include_bsp_HEADERS += hwlib/include/alt_clock_manager.h |
---|
| 54 | include_bsp_HEADERS += hwlib/include/alt_generalpurpose_io.h |
---|
| 55 | include_bsp_HEADERS += hwlib/include/alt_hwlibs_ver.h |
---|
| 56 | include_bsp_HEADERS += hwlib/include/alt_interrupt_common.h |
---|
| 57 | include_bsp_HEADERS += hwlib/include/alt_mpu_registers.h |
---|
| 58 | include_bsp_HEADERS += hwlib/include/alt_reset_manager.h |
---|
| 59 | include_bsp_HEADERS += hwlib/include/hwlib.h |
---|
| 60 | #The following Altera hwlib header files have been left out because so far |
---|
| 61 | #they are not required: |
---|
| 62 | #include_bsp_HEADERS += hwlib/include/alt_16550_uart.h |
---|
| 63 | #include_bsp_HEADERS += hwlib/include/alt_bridge_manager.h |
---|
| 64 | #include_bsp_HEADERS += hwlib/include/alt_dma_common.h |
---|
| 65 | #include_bsp_HEADERS += hwlib/include/alt_dma_program.h |
---|
| 66 | #include_bsp_HEADERS += hwlib/include/alt_dma.h |
---|
| 67 | #include_bsp_HEADERS += hwlib/include/alt_fpga_manager.h |
---|
| 68 | #include_bsp_HEADERS += hwlib/include/alt_globaltmr.h |
---|
| 69 | #include_bsp_HEADERS += hwlib/include/alt_system_manager.h |
---|
| 70 | #include_bsp_HEADERS += hwlib/include/alt_timers.h |
---|
| 71 | #include_bsp_HEADERS += hwlib/include/alt_watchdog.h |
---|
| 72 | #The following Altera hwlib headers would be problematic with RTEMS: |
---|
| 73 | #include_bsp_HEADERS += hwlib/include/alt_interrupt.h |
---|
| 74 | #All header files from hwlib/include/socal are regarded as BSP |
---|
| 75 | #internal and thus not installed |
---|
| 76 | |
---|
| 77 | include_libcpu_HEADERS = ../../../libcpu/arm/shared/include/arm-cp15.h |
---|
| 78 | |
---|
| 79 | |
---|
| 80 | |
---|
| 81 | ############################################################################### |
---|
| 82 | # Data # |
---|
| 83 | ############################################################################### |
---|
| 84 | |
---|
| 85 | noinst_LIBRARIES = libbspstart.a |
---|
| 86 | |
---|
| 87 | libbspstart_a_SOURCES = ../shared/start/start.S |
---|
| 88 | |
---|
| 89 | project_lib_DATA = start.$(OBJEXT) |
---|
| 90 | |
---|
| 91 | project_lib_DATA += startup/linkcmds |
---|
| 92 | project_lib_DATA += startup/linkcmds.altcycv |
---|
| 93 | project_lib_DATA += startup/linkcmds.altcycv_devkit |
---|
| 94 | project_lib_DATA += startup/linkcmds.altcycv_devkit_smp |
---|
| 95 | |
---|
| 96 | ############################################################################### |
---|
| 97 | # LibBSP # |
---|
| 98 | ############################################################################### |
---|
| 99 | |
---|
| 100 | noinst_LIBRARIES += libbsp.a |
---|
| 101 | |
---|
| 102 | libbsp_a_SOURCES = |
---|
| 103 | libbsp_a_CPPFLAGS = |
---|
| 104 | libbsp_a_LIBADD = |
---|
| 105 | |
---|
| 106 | # for the Altera hwlib |
---|
| 107 | libbsp_a_CPPFLAGS += -I ${srcdir}/hwlib/include |
---|
| 108 | libbsp_a_CPPFLAGS += -std=gnu99 |
---|
| 109 | |
---|
| 110 | # hwlib from Altera |
---|
| 111 | libbsp_a_SOURCES += hwlib/src/hwmgr/alt_address_space.c |
---|
| 112 | libbsp_a_SOURCES += hwlib/src/hwmgr/alt_clock_manager.c |
---|
| 113 | libbsp_a_SOURCES += hwlib/src/hwmgr/alt_generalpurpose_io.c |
---|
| 114 | libbsp_a_SOURCES += hwlib/src/hwmgr/alt_reset_manager.c |
---|
| 115 | #The following Altera hwlib source files have been left out because so far |
---|
| 116 | #they are not required: |
---|
| 117 | #libbsp_a_SOURCES += hwlib/src/hwmgr/alt_16550_uart.c |
---|
| 118 | #libbsp_a_SOURCES += hwlib/src/hwmgr/alt_bridge_manager.c |
---|
| 119 | #libbsp_a_SOURCES += hwlib/src/hwmgr/alt_dma_program.c |
---|
| 120 | #libbsp_a_SOURCES += hwlib/src/hwmgr/alt_dma.c |
---|
| 121 | #libbsp_a_SOURCES += hwlib/src/hwmgr/alt_fpga_manager.c |
---|
| 122 | #libbsp_a_SOURCES += hwlib/src/hwmgr/alt_globaltmr.c |
---|
| 123 | #libbsp_a_SOURCES += hwlib/src/hwmgr/alt_system_manager.c |
---|
| 124 | #libbsp_a_SOURCES += hwlib/src/hwmgr/alt_timers.c |
---|
| 125 | #libbsp_a_SOURCES += hwlib/src/hwmgr/alt_watchdog.c |
---|
| 126 | # The following Altera hwlib source files would be problematic with RTEMS: |
---|
| 127 | #libbsp_a_SOURCES += hwlib/src/hwmgr/alt_interrupt.c |
---|
| 128 | |
---|
| 129 | |
---|
| 130 | # Shared |
---|
| 131 | libbsp_a_SOURCES += ../../shared/bootcard.c |
---|
| 132 | libbsp_a_SOURCES += ../../shared/bspclean.c |
---|
| 133 | libbsp_a_SOURCES += ../../shared/bspgetworkarea.c |
---|
| 134 | libbsp_a_SOURCES += ../../shared/bsplibc.c |
---|
| 135 | libbsp_a_SOURCES += ../../shared/bsppost.c |
---|
| 136 | libbsp_a_SOURCES += ../../shared/bsppredriverhook.c |
---|
| 137 | libbsp_a_SOURCES += ../../shared/bsppretaskinghook.c |
---|
| 138 | libbsp_a_SOURCES += ../../shared/cpucounterdiff.c |
---|
| 139 | libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c |
---|
| 140 | libbsp_a_SOURCES += ../../shared/sbrk.c |
---|
| 141 | libbsp_a_SOURCES += ../../shared/timerstub.c |
---|
| 142 | libbsp_a_SOURCES += ../../shared/src/stackalloc.c |
---|
| 143 | libbsp_a_SOURCES += ../shared/abort/simple_abort.c |
---|
| 144 | libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S |
---|
| 145 | libbsp_a_SOURCES += ../shared/arm-cp15-set-exception-handler.c |
---|
| 146 | libbsp_a_SOURCES += ../shared/arm-cp15-set-ttb-entries.c |
---|
| 147 | |
---|
| 148 | # Startup |
---|
| 149 | libbsp_a_SOURCES += startup/bspreset.c |
---|
| 150 | libbsp_a_SOURCES += startup/bspstart.c |
---|
| 151 | libbsp_a_SOURCES += startup/nocache-heap.c |
---|
| 152 | |
---|
| 153 | # IRQ |
---|
| 154 | libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c |
---|
| 155 | libbsp_a_SOURCES += ../../shared/src/irq-generic.c |
---|
| 156 | libbsp_a_SOURCES += ../../shared/src/irq-info.c |
---|
| 157 | libbsp_a_SOURCES += ../../shared/src/irq-legacy.c |
---|
| 158 | libbsp_a_SOURCES += ../../shared/src/irq-server.c |
---|
| 159 | libbsp_a_SOURCES += ../../shared/src/irq-shell.c |
---|
| 160 | libbsp_a_SOURCES += ../shared/arm-gic-irq.c |
---|
| 161 | |
---|
| 162 | # Network |
---|
| 163 | libbsp_a_SOURCES += network/network.c |
---|
| 164 | |
---|
| 165 | # Console |
---|
| 166 | libbsp_a_SOURCES += ../../shared/console.c |
---|
| 167 | libbsp_a_SOURCES += ../../shared/console_control.c |
---|
| 168 | libbsp_a_SOURCES += ../../shared/console_read.c |
---|
| 169 | libbsp_a_SOURCES += ../../shared/console_select_simple.c |
---|
| 170 | libbsp_a_SOURCES += ../../shared/console_write.c |
---|
| 171 | libbsp_a_SOURCES += console/console-config.c |
---|
| 172 | |
---|
| 173 | # Clock |
---|
| 174 | libbsp_a_SOURCES += ../../shared/clockdrv_shell.h |
---|
| 175 | libbsp_a_SOURCES += ../shared/arm-a9mpcore-clock-config.c |
---|
| 176 | |
---|
| 177 | # Cache |
---|
| 178 | libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c |
---|
| 179 | libbsp_a_SOURCES += ../shared/include/arm-cache-l1.h |
---|
| 180 | libbsp_a_SOURCES += ../shared/arm-l2c-310/cache_.h |
---|
| 181 | libbsp_a_CPPFLAGS += -I$(srcdir)/../shared/arm-l2c-310 |
---|
| 182 | |
---|
| 183 | # Start hooks |
---|
| 184 | libbsp_a_SOURCES += startup/bspstarthooks.c |
---|
| 185 | |
---|
| 186 | if HAS_SMP |
---|
| 187 | libbsp_a_SOURCES += ../shared/arm-a9mpcore-smp.c |
---|
| 188 | endif |
---|
| 189 | |
---|
| 190 | ############################################################################### |
---|
| 191 | # Special Rules # |
---|
| 192 | ############################################################################### |
---|
| 193 | |
---|
| 194 | DISTCLEANFILES = include/bspopts.h |
---|
| 195 | |
---|
| 196 | include $(srcdir)/preinstall.am |
---|
| 197 | include $(top_srcdir)/../../../../automake/local.am |
---|