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 | include $(top_srcdir)/../../bsp.am |
---|
12 | |
---|
13 | dist_project_lib_DATA = startup/bsp_specs |
---|
14 | |
---|
15 | # ---------------------------- |
---|
16 | # ------ Headers |
---|
17 | # ---------------------------- |
---|
18 | |
---|
19 | # ---------------------------- |
---|
20 | # ------ Data |
---|
21 | # ---------------------------- |
---|
22 | |
---|
23 | start.$(OBJEXT): ../shared/start/start.S |
---|
24 | $(CPPASCOMPILE) -o $@ -c $< |
---|
25 | project_lib_DATA = start.$(OBJEXT) |
---|
26 | |
---|
27 | project_lib_DATA += linkcmds |
---|
28 | dist_project_lib_DATA += startup/linkcmds.tms570ls3137_hdk |
---|
29 | dist_project_lib_DATA += startup/linkcmds.tms570ls3137_hdk_intram |
---|
30 | dist_project_lib_DATA += startup/linkcmds.tms570ls3137_hdk_sdram |
---|
31 | dist_project_lib_DATA += startup/linkcmds.tms570ls3137_hdk_with_loader |
---|
32 | |
---|
33 | # ---------------------------- |
---|
34 | # ------ LibBSP |
---|
35 | # ---------------------------- |
---|
36 | |
---|
37 | project_lib_LIBRARIES = librtemsbsp.a |
---|
38 | |
---|
39 | librtemsbsp_a_SOURCES = |
---|
40 | |
---|
41 | # Shared |
---|
42 | librtemsbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c |
---|
43 | librtemsbsp_a_SOURCES += ../../shared/bspclean.c |
---|
44 | librtemsbsp_a_SOURCES += ../../shared/bspgetworkarea.c |
---|
45 | librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c |
---|
46 | librtemsbsp_a_SOURCES += ../../shared/sbrk.c |
---|
47 | librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/stackalloc.c |
---|
48 | librtemsbsp_a_SOURCES += ../../shared/cpucounterdiff.c |
---|
49 | librtemsbsp_a_SOURCES += ../shared/arm-cp15-set-exception-handler.c |
---|
50 | librtemsbsp_a_SOURCES += ../shared/arm-cp15-set-ttb-entries.c |
---|
51 | |
---|
52 | # Startup |
---|
53 | librtemsbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S |
---|
54 | librtemsbsp_a_SOURCES += ../shared/startup/bsp-start-init-registers.S |
---|
55 | librtemsbsp_a_SOURCES += startup/bspreset.c |
---|
56 | librtemsbsp_a_SOURCES += startup/bspstart.c |
---|
57 | |
---|
58 | # POM |
---|
59 | librtemsbsp_a_SOURCES += pom/tms570-pom.c |
---|
60 | |
---|
61 | # IRQ |
---|
62 | librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/irq/irq-default-handler.c |
---|
63 | librtemsbsp_a_SOURCES += irq/irq.c |
---|
64 | |
---|
65 | # Console |
---|
66 | librtemsbsp_a_SOURCES += ../../shared/console-termios.c |
---|
67 | librtemsbsp_a_SOURCES += console/printk-support.c |
---|
68 | librtemsbsp_a_SOURCES += console/tms570-sci.c |
---|
69 | |
---|
70 | # Clock |
---|
71 | librtemsbsp_a_SOURCES += clock/clock.c |
---|
72 | |
---|
73 | # RTC |
---|
74 | |
---|
75 | # GPIO |
---|
76 | librtemsbsp_a_SOURCES += pinmux/pinmux.c |
---|
77 | |
---|
78 | # Benchmark Timer |
---|
79 | librtemsbsp_a_SOURCES += ../../shared/timercpucounter.c |
---|
80 | |
---|
81 | # Misc |
---|
82 | librtemsbsp_a_SOURCES += misc/cpucounterread.c |
---|
83 | |
---|
84 | # Watchdog |
---|
85 | |
---|
86 | # Cache |
---|
87 | librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/cache/nocache.c |
---|
88 | |
---|
89 | if TMS570_USE_HWINIT_STARTUP |
---|
90 | librtemsbsp_a_SOURCES += hwinit/tms570_sys_core.S |
---|
91 | librtemsbsp_a_SOURCES += hwinit/fail_notification.c |
---|
92 | librtemsbsp_a_SOURCES += hwinit/init_emif_sdram.c |
---|
93 | librtemsbsp_a_SOURCES += hwinit/init_esm.c |
---|
94 | librtemsbsp_a_SOURCES += hwinit/init_pinmux.c |
---|
95 | librtemsbsp_a_SOURCES += hwinit/init_system.c |
---|
96 | librtemsbsp_a_SOURCES += hwinit/tms570_selftest.c |
---|
97 | librtemsbsp_a_SOURCES += hwinit/tms570_selftest_par_can.c |
---|
98 | librtemsbsp_a_SOURCES += hwinit/tms570_selftest_par_mibspi.c |
---|
99 | librtemsbsp_a_SOURCES += hwinit/tms570_selftest_par_std.c |
---|
100 | librtemsbsp_a_SOURCES += hwinit/tms570_selftest_parity.c |
---|
101 | librtemsbsp_a_SOURCES += hwinit/tms570_tcram_tests.c |
---|
102 | |
---|
103 | # Start hooks |
---|
104 | librtemsbsp_a_SOURCES += hwinit/bspstarthooks-hwinit.c |
---|
105 | else |
---|
106 | # Start hooks |
---|
107 | librtemsbsp_a_SOURCES += startup/bspstarthooks.c |
---|
108 | endif |
---|
109 | |
---|
110 | # ---------------------------- |
---|
111 | # ------ Special Rules |
---|
112 | # ---------------------------- |
---|
113 | |
---|
114 | |
---|
115 | include $(top_srcdir)/../../../../automake/local.am |
---|
116 | include $(srcdir)/../../../../../../bsps/shared/irq-sources.am |
---|
117 | include $(srcdir)/../../../../../../bsps/shared/shared-sources.am |
---|
118 | include $(srcdir)/../../../../../../bsps/arm/tms570/headers.am |
---|