Rev 8 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 8 | Rev 9 | ||
|---|---|---|---|
| Line 7... | Line 7... | ||
| 7 | # Compiler options here. |
7 | # Compiler options here. |
| 8 | ifeq ($(USE_OPT),) |
8 | ifeq ($(USE_OPT),) |
| 9 | USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16 |
9 | USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16 |
| 10 | endif |
10 | endif |
| 11 | 11 | ||
| - | 12 | ||
| 12 | # C specific options here (added to USE_OPT). |
13 | # C specific options here (added to USE_OPT). |
| 13 | ifeq ($(USE_COPT),) |
14 | ifeq ($(USE_COPT),) |
| 14 | USE_COPT = |
15 | USE_COPT = |
| 15 | endif |
16 | endif |
| 16 | 17 | ||
| Line 94... | Line 95... | ||
| 94 | # Define project name here |
95 | # Define project name here |
| 95 | PROJECT = ChibiGauge |
96 | PROJECT = ChibiGauge |
| 96 | #define board |
97 | #define board |
| 97 | BOARD = ST_bluePillF103 |
98 | BOARD = ST_bluePillF103 |
| 98 | 99 | ||
| 99 | CHIBIOS = c:/Projects/ChibiOS_21.11.4 |
100 | CHIBIOS = ../rusefi/firmware/ChibiOS |
| 100 | CHIBIOS_CONTRIB = c:/Projects/ChibiOS_21.11.4/community |
101 | CHIBIOS_CONTRIB = ../rusefi/firmware/ChibiOS |
| 101 | CONFDIR := ./cfg |
102 | CONFDIR := ./cfg |
| 102 | BUILDDIR := ./build |
103 | BUILDDIR := ./build |
| 103 | DEPDIR := ./.dep |
104 | DEPDIR := ./.dep |
| 104 | # Licensing files. |
105 | # Licensing files. |
| 105 | include $(CHIBIOS)/os/license/license.mk |
106 | include $(CHIBIOS)/os/license/license.mk |
| Line 115... | Line 116... | ||
| 115 | include $(CHIBIOS)/os/rt/rt.mk |
116 | include $(CHIBIOS)/os/rt/rt.mk |
| 116 | include $(CHIBIOS)/os/common/ports/ARMv7-M/compilers/GCC/mk/port.mk |
117 | include $(CHIBIOS)/os/common/ports/ARMv7-M/compilers/GCC/mk/port.mk |
| 117 | # Auto-build files in ./source recursively. |
118 | # Auto-build files in ./source recursively. |
| 118 | include $(CHIBIOS)/tools/mk/autobuild.mk |
119 | include $(CHIBIOS)/tools/mk/autobuild.mk |
| 119 | # Other files (optional). |
120 | # Other files (optional). |
| 120 | include $(CHIBIOS)/os/test/test.mk |
121 | #include $(CHIBIOS)/os/test/test.mk |
| 121 | include $(CHIBIOS)/test/rt/rt_test.mk |
122 | #include $(CHIBIOS)/test/rt/rt_test.mk |
| 122 | include $(CHIBIOS)/test/oslib/oslib_test.mk |
123 | #include $(CHIBIOS)/test/oslib/oslib_test.mk |
| 123 | include $(CHIBIOS)/os/hal/lib/streams/streams.mk |
124 | include $(CHIBIOS)/os/hal/lib/streams/streams.mk |
| 124 | include $(CHIBIOS)/test/rt/rt_test.mk |
- | |
| 125 | include $(CHIBIOS)/os/various/shell/shell.mk |
125 | include $(CHIBIOS)/os/various/shell/shell.mk |
| 126 | 126 | ||
| 127 | # Define linker script file here |
127 | # Define linker script file here |
| 128 | LDSCRIPT= $(STARTUPLD)/STM32F103xB.ld |
128 | LDSCRIPT= $(STARTUPLD)/STM32F103xB.ld |
| 129 | 129 | ||
| Line 244... | Line 244... | ||
| 244 | ############################################################################## |
244 | ############################################################################## |
| 245 | # Start of user section |
245 | # Start of user section |
| 246 | # |
246 | # |
| 247 | 247 | ||
| 248 | # List all user C define here, like -D_DEBUG=1 |
248 | # List all user C define here, like -D_DEBUG=1 |
| 249 | UDEFS = -DUSE_I2C_2V8 |
249 | UDEFS = -DUSE_I2C_2V8 -DSHELL_CMD_TEST_ENABLED=0 |
| 250 | 250 | ||
| 251 | # Define ASM defines here |
251 | # Define ASM defines here |
| 252 | UADEFS = |
252 | UADEFS = |
| 253 | 253 | ||
| 254 | # List all user directories here |
254 | # List all user directories here |