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 | include $(top_srcdir)/../../bsp.am |
---|
12 | |
---|
13 | dist_project_lib_DATA = ../../../../../../bsps/arm/altera-cyclone-v/start/bsp_specs |
---|
14 | |
---|
15 | ############################################################################### |
---|
16 | # Header # |
---|
17 | ############################################################################### |
---|
18 | |
---|
19 | # Altera hwlib |
---|
20 | #The following Altera hwlib header files have been left out because so far |
---|
21 | #they are not required: |
---|
22 | #include_bsp_HEADERS += hwlib/include/alt_bridge_manager.h |
---|
23 | #include_bsp_HEADERS += hwlib/include/alt_fpga_manager.h |
---|
24 | #include_bsp_HEADERS += hwlib/include/alt_globaltmr.h |
---|
25 | #include_bsp_HEADERS += hwlib/include/alt_system_manager.h |
---|
26 | #include_bsp_HEADERS += hwlib/include/alt_timers.h |
---|
27 | #include_bsp_HEADERS += hwlib/include/alt_watchdog.h |
---|
28 | #The following Altera hwlib headers would be problematic with RTEMS: |
---|
29 | #include_bsp_HEADERS += hwlib/include/alt_interrupt.h |
---|
30 | |
---|
31 | # Some of the headers from hwlib need the files from socal. Install them. |
---|
32 | ############################################################################### |
---|
33 | # Data # |
---|
34 | ############################################################################### |
---|
35 | |
---|
36 | start.$(OBJEXT): ../../../../../../bsps/arm/shared/start/start.S |
---|
37 | $(CPPASCOMPILE) -o $@ -c $< |
---|
38 | project_lib_DATA = start.$(OBJEXT) |
---|
39 | |
---|
40 | project_lib_DATA += linkcmds |
---|
41 | dist_project_lib_DATA += ../../../../../../bsps/arm/altera-cyclone-v/start/linkcmds.altcycv |
---|
42 | dist_project_lib_DATA += ../../../../../../bsps/arm/altera-cyclone-v/start/linkcmds.altcycv_devkit |
---|
43 | dist_project_lib_DATA += ../../../../../../bsps/arm/altera-cyclone-v/start/linkcmds.altcycv_devkit_smp |
---|
44 | |
---|
45 | ############################################################################### |
---|
46 | # LibBSP # |
---|
47 | ############################################################################### |
---|
48 | |
---|
49 | project_lib_LIBRARIES = librtemsbsp.a |
---|
50 | |
---|
51 | librtemsbsp_a_SOURCES = |
---|
52 | librtemsbsp_a_CPPFLAGS = $(AM_CPPFLAGS) |
---|
53 | |
---|
54 | # for the Altera hwlib |
---|
55 | librtemsbsp_a_CPPFLAGS += -I${srcdir}/hwlib/include |
---|
56 | librtemsbsp_a_CPPFLAGS += -std=gnu99 |
---|
57 | CFLAGS += -Wno-missing-prototypes |
---|
58 | |
---|
59 | # hwlib from Altera |
---|
60 | librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_16550_uart.c |
---|
61 | librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_address_space.c |
---|
62 | librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_clock_manager.c |
---|
63 | librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_dma.c |
---|
64 | librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_dma_program.c |
---|
65 | librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_generalpurpose_io.c |
---|
66 | librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_i2c.c |
---|
67 | librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_qspi.c |
---|
68 | librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_reset_manager.c |
---|
69 | #The following Altera hwlib source files have been left out because so far |
---|
70 | #they are not required: |
---|
71 | #librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_bridge_manager.c |
---|
72 | #librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_fpga_manager.c |
---|
73 | #librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_globaltmr.c |
---|
74 | #librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_system_manager.c |
---|
75 | #librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_timers.c |
---|
76 | #librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_watchdog.c |
---|
77 | # The following Altera hwlib source files would be problematic with RTEMS: |
---|
78 | #librtemsbsp_a_SOURCES += hwlib/src/hwmgr/alt_interrupt.c |
---|
79 | |
---|
80 | |
---|
81 | # Shared |
---|
82 | librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/getentropy/getentropy-cpucounter.c |
---|
83 | librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/cpucounter/cpucounterdiff.c |
---|
84 | librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/sbrk.c |
---|
85 | librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/btimer/btimer-stub.c |
---|
86 | librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/bsp-fdt.c |
---|
87 | librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/stackalloc.c |
---|
88 | librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/start/bsp-start-memcpy.S |
---|
89 | librtemsbsp_a_SOURCES += ../shared/arm-cp15-set-exception-handler.c |
---|
90 | librtemsbsp_a_SOURCES += ../shared/arm-cp15-set-ttb-entries.c |
---|
91 | |
---|
92 | # Startup |
---|
93 | librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/altera-cyclone-v/start/bspclean.c |
---|
94 | librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/altera-cyclone-v/start/bspgetworkarea.c |
---|
95 | librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/altera-cyclone-v/start/bspreset.c |
---|
96 | librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/altera-cyclone-v/start/bspstart.c |
---|
97 | librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/altera-cyclone-v/start/bspstarthooks.c |
---|
98 | librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/altera-cyclone-v/start/mmu-config.c |
---|
99 | if HAS_SMP |
---|
100 | librtemsbsp_a_SOURCES += ../shared/arm-a9mpcore-smp.c |
---|
101 | librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/altera-cyclone-v/start/bspsmp.c |
---|
102 | endif |
---|
103 | |
---|
104 | # IRQ |
---|
105 | librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/irq/irq-default-handler.c |
---|
106 | librtemsbsp_a_SOURCES += ../shared/arm-gic-irq.c |
---|
107 | |
---|
108 | # Console |
---|
109 | librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/console-termios-init.c |
---|
110 | librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/console-termios.c |
---|
111 | librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/altera-cyclone-v/console/console-config.c |
---|
112 | |
---|
113 | # Clock |
---|
114 | librtemsbsp_a_SOURCES += ../shared/arm-a9mpcore-clock-config.c |
---|
115 | |
---|
116 | # I2C |
---|
117 | librtemsbsp_a_SOURCES += i2c/i2cdrv.c |
---|
118 | librtemsbsp_a_SOURCES += i2c/i2cdrv-config.c |
---|
119 | # RTC |
---|
120 | librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/rtc/rtc-support.c |
---|
121 | librtemsbsp_a_SOURCES += rtc/rtc.c |
---|
122 | |
---|
123 | # Cache |
---|
124 | librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/cache/cache-l2c-310.c |
---|
125 | |
---|
126 | ############################################################################### |
---|
127 | # Special Rules # |
---|
128 | ############################################################################### |
---|
129 | |
---|
130 | |
---|
131 | include $(top_srcdir)/../../../../automake/local.am |
---|
132 | include $(srcdir)/../../../../../../bsps/shared/irq-sources.am |
---|
133 | include $(srcdir)/../../../../../../bsps/shared/shared-sources.am |
---|
134 | include $(srcdir)/../../../../../../bsps/arm/altera-cyclone-v/headers.am |
---|