diff options
Diffstat (limited to 'lib/chibios/demos/SPC5/RT-SPC560B-EVB/Makefile')
-rw-r--r-- | lib/chibios/demos/SPC5/RT-SPC560B-EVB/Makefile | 189 |
1 files changed, 189 insertions, 0 deletions
diff --git a/lib/chibios/demos/SPC5/RT-SPC560B-EVB/Makefile b/lib/chibios/demos/SPC5/RT-SPC560B-EVB/Makefile new file mode 100644 index 000000000..e54932834 --- /dev/null +++ b/lib/chibios/demos/SPC5/RT-SPC560B-EVB/Makefile | |||
@@ -0,0 +1,189 @@ | |||
1 | ############################################################################## | ||
2 | # Build global options | ||
3 | # NOTE: Can be overridden externally. | ||
4 | # | ||
5 | |||
6 | # Compiler options here. | ||
7 | ifeq ($(USE_OPT),) | ||
8 | USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16 -mno-spe -msoft-float | ||
9 | endif | ||
10 | |||
11 | # C specific options here (added to USE_OPT). | ||
12 | ifeq ($(USE_COPT),) | ||
13 | USE_COPT = | ||
14 | endif | ||
15 | |||
16 | # C++ specific options here (added to USE_OPT). | ||
17 | ifeq ($(USE_CPPOPT),) | ||
18 | USE_CPPOPT = -fno-rtti | ||
19 | endif | ||
20 | |||
21 | # Enable this if you want the linker to remove unused code and data. | ||
22 | ifeq ($(USE_LINK_GC),) | ||
23 | USE_LINK_GC = yes | ||
24 | endif | ||
25 | |||
26 | # Linker extra options here. | ||
27 | ifeq ($(USE_LDOPT),) | ||
28 | USE_LDOPT = | ||
29 | endif | ||
30 | |||
31 | # Enable this if you want link time optimizations (LTO) | ||
32 | ifeq ($(USE_LTO),) | ||
33 | USE_LTO = no | ||
34 | endif | ||
35 | |||
36 | # If enabled, this option allows to compile the application in VLE mode. | ||
37 | ifeq ($(USE_VLE),) | ||
38 | USE_VLE = yes | ||
39 | endif | ||
40 | |||
41 | # Enable this if you want to see the full log while compiling. | ||
42 | ifeq ($(USE_VERBOSE_COMPILE),) | ||
43 | USE_VERBOSE_COMPILE = no | ||
44 | endif | ||
45 | |||
46 | # If enabled, this option makes the build process faster by not compiling | ||
47 | # modules not used in the current configuration. | ||
48 | ifeq ($(USE_SMART_BUILD),) | ||
49 | USE_SMART_BUILD = yes | ||
50 | endif | ||
51 | |||
52 | # | ||
53 | # Build global options | ||
54 | ############################################################################## | ||
55 | |||
56 | ############################################################################## | ||
57 | # Architecture or project specific options | ||
58 | # | ||
59 | |||
60 | # Stack size to be allocated to the process stack. This stack is | ||
61 | # the stack used by the main() thread. | ||
62 | ifeq ($(USE_PROCESS_STACKSIZE),) | ||
63 | USE_PROCESS_STACKSIZE = 0x400 | ||
64 | endif | ||
65 | |||
66 | # Stack size to the allocated to the optional exceptions stack. This | ||
67 | # stack is used for processing interrupts and exceptions. | ||
68 | ifeq ($(USE_EXCEPTIONS_STACKSIZE),) | ||
69 | USE_EXCEPTIONS_STACKSIZE = 0 | ||
70 | endif | ||
71 | |||
72 | # | ||
73 | # Architecture or project specific options | ||
74 | ############################################################################## | ||
75 | |||
76 | ############################################################################## | ||
77 | # Project, sources and paths | ||
78 | # | ||
79 | |||
80 | # Define project name here | ||
81 | PROJECT = ch | ||
82 | |||
83 | # Imported source files and paths | ||
84 | CHIBIOS = ../../.. | ||
85 | CONFDIR := . | ||
86 | BUILDDIR := ./build | ||
87 | DEPDIR := ./.dep | ||
88 | |||
89 | # Licensing files. | ||
90 | include $(CHIBIOS)/os/license/license.mk | ||
91 | # Startup files. | ||
92 | include $(CHIBIOS)/os/common/startup/e200/compilers/GCC/mk/startup_spc560bxx.mk | ||
93 | # HAL-OSAL files (optional). | ||
94 | include $(CHIBIOS)/os/hal/hal.mk | ||
95 | include $(CHIBIOS)/os/hal/boards/ST_EVB_SPC560B/board.mk | ||
96 | include $(CHIBIOS)/os/hal/ports/SPC5/SPC560Bxx/platform.mk | ||
97 | include $(CHIBIOS)/os/hal/osal/rt-nil/osal.mk | ||
98 | # RTOS files (optional). | ||
99 | include $(CHIBIOS)/os/rt/rt.mk | ||
100 | include $(CHIBIOS)/os/common/ports/e200/compilers/GCC/mk/port.mk | ||
101 | # Other files (optional). | ||
102 | include $(CHIBIOS)/test/lib/test.mk | ||
103 | include $(CHIBIOS)/test/rt/rt_test.mk | ||
104 | include $(CHIBIOS)/test/oslib/oslib_test.mk | ||
105 | include $(CHIBIOS)/os/hal/lib/streams/streams.mk | ||
106 | include $(CHIBIOS)/os/various/shell/shell.mk | ||
107 | |||
108 | # Define linker script file here | ||
109 | LDSCRIPT= $(STARTUPLD)/SPC560B60.ld | ||
110 | |||
111 | # C sources here. | ||
112 | CSRC = $(ALLCSRC) \ | ||
113 | $(TESTSRC) \ | ||
114 | main.c | ||
115 | |||
116 | # C++ sources here. | ||
117 | CPPSRC = $(ALLCPPSRC) | ||
118 | |||
119 | # List ASM source files here | ||
120 | ASMSRC = $(ALLASMSRC) | ||
121 | ASMXSRC = $(ALLXASMSRC) | ||
122 | |||
123 | INCDIR = $(ALLINC) $(TESTINC) $(CONFDIR) | ||
124 | |||
125 | # | ||
126 | # Project, sources and paths | ||
127 | ############################################################################## | ||
128 | |||
129 | ############################################################################## | ||
130 | # Compiler settings | ||
131 | # | ||
132 | |||
133 | #MCU = e200zx -meabi -msdata=none -mnew-mnemonics -mregnames # HighTec | ||
134 | MCU = e200z0 -meabi -msdata=none -mregnames # Free GCC | ||
135 | |||
136 | #TRGT = ppc-vle- | ||
137 | #TRGT = powerpc-eabivle- | ||
138 | TRGT = ppc-freevle-eabi- | ||
139 | CC = $(TRGT)gcc | ||
140 | CPPC = $(TRGT)g++ | ||
141 | # Enable loading with g++ only if you need C++ runtime support. | ||
142 | # NOTE: You can use C++ even without C++ support if you are careful. C++ | ||
143 | # runtime support makes code size explode. | ||
144 | LD = $(TRGT)gcc | ||
145 | #LD = $(TRGT)g++ | ||
146 | CP = $(TRGT)objcopy | ||
147 | AS = $(TRGT)gcc -x assembler-with-cpp | ||
148 | AR = $(TRGT)ar | ||
149 | OD = $(TRGT)objdump | ||
150 | SZ = $(TRGT)size | ||
151 | HEX = $(CP) -O ihex | ||
152 | MOT = $(CP) -O srec | ||
153 | BIN = $(CP) -O binary | ||
154 | |||
155 | # Define C warning options here | ||
156 | CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes | ||
157 | |||
158 | # Define C++ warning options here | ||
159 | CPPWARN = -Wall -Wextra -Wundef | ||
160 | |||
161 | # | ||
162 | # Compiler settings | ||
163 | ############################################################################## | ||
164 | |||
165 | ############################################################################## | ||
166 | # Start of user section | ||
167 | # | ||
168 | |||
169 | # List all user C define here, like -D_DEBUG=1 | ||
170 | UDEFS = -DTEST_CFG_SIZE_REPORT=0 | ||
171 | |||
172 | # Define ASM defines here | ||
173 | UADEFS = | ||
174 | |||
175 | # List all user directories here | ||
176 | UINCDIR = | ||
177 | |||
178 | # List the user directory to look for the libraries here | ||
179 | ULIBDIR = | ||
180 | |||
181 | # List all user libraries here | ||
182 | ULIBS = | ||
183 | |||
184 | # | ||
185 | # End of user defines | ||
186 | ############################################################################## | ||
187 | |||
188 | RULESPATH = $(CHIBIOS)/os/common/startup/e200/compilers/GCC | ||
189 | include $(RULESPATH)/rules.mk | ||