diff options
| author | Nick Brassel <nick@tzarc.org> | 2021-10-19 08:29:27 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-18 22:29:27 +0100 |
| commit | d9be6dea3a545da8d6f3d3ace14b6df7e9b6f30e (patch) | |
| tree | f5e8bf1806b71c6a4a783d016cd0bf000c0e7b0e /tmk_core | |
| parent | 01b702bece4de0aa17c1df39a3305a1b643fd762 (diff) | |
| download | qmk_firmware-d9be6dea3a545da8d6f3d3ace14b6df7e9b6f30e.tar.gz qmk_firmware-d9be6dea3a545da8d6f3d3ace14b6df7e9b6f30e.zip | |
Fix builds for ChibiOS + Cortex-M0[+] (#14879)
Diffstat (limited to 'tmk_core')
| -rw-r--r-- | tmk_core/chibios.mk | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tmk_core/chibios.mk b/tmk_core/chibios.mk index cae840fa4..ad0ffa762 100644 --- a/tmk_core/chibios.mk +++ b/tmk_core/chibios.mk | |||
| @@ -330,7 +330,7 @@ ifeq ($(strip $(MCU)), risc-v) | |||
| 330 | endif | 330 | endif |
| 331 | endif | 331 | endif |
| 332 | endif | 332 | endif |
| 333 | 333 | ||
| 334 | # Default to compiling with picolibc for RISC-V targets if available, | 334 | # Default to compiling with picolibc for RISC-V targets if available, |
| 335 | # which is available by default on current (bullseye) debian based systems. | 335 | # which is available by default on current (bullseye) debian based systems. |
| 336 | ifeq ($(shell $(TOOLCHAIN)gcc --specs=picolibc.specs -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0) | 336 | ifeq ($(shell $(TOOLCHAIN)gcc --specs=picolibc.specs -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0) |
| @@ -338,11 +338,11 @@ ifeq ($(strip $(MCU)), risc-v) | |||
| 338 | # Note that we still link with our own linker script | 338 | # Note that we still link with our own linker script |
| 339 | # by providing it via the -T flag above. | 339 | # by providing it via the -T flag above. |
| 340 | TOOLCHAIN_CFLAGS = --specs=picolibc.specs | 340 | TOOLCHAIN_CFLAGS = --specs=picolibc.specs |
| 341 | 341 | ||
| 342 | # Tell QMK that we are compiling with picolibc. | 342 | # Tell QMK that we are compiling with picolibc. |
| 343 | OPT_DEFS += -DUSE_PICOLIBC | 343 | OPT_DEFS += -DUSE_PICOLIBC |
| 344 | endif | 344 | endif |
| 345 | 345 | ||
| 346 | # MCU architecture flags | 346 | # MCU architecture flags |
| 347 | MCUFLAGS = -march=$(MCU_ARCH) \ | 347 | MCUFLAGS = -march=$(MCU_ARCH) \ |
| 348 | -mabi=$(MCU_ABI) \ | 348 | -mabi=$(MCU_ABI) \ |
| @@ -394,6 +394,9 @@ LDFLAGS += $(SHARED_LDFLAGS) $(TOOLCHAIN_LDFLAGS) $(MCUFLAGS) | |||
| 394 | # Tell QMK that we are hosting it on ChibiOS. | 394 | # Tell QMK that we are hosting it on ChibiOS. |
| 395 | OPT_DEFS += -DPROTOCOL_CHIBIOS | 395 | OPT_DEFS += -DPROTOCOL_CHIBIOS |
| 396 | 396 | ||
| 397 | # Workaround to stop ChibiOS from complaining about new GCC -- it's been fixed for 7/8/9 already | ||
| 398 | OPT_DEFS += -DPORT_IGNORE_GCC_VERSION_CHECK=1 | ||
| 399 | |||
| 397 | # Speed up recompilations by opt-in usage of ccache | 400 | # Speed up recompilations by opt-in usage of ccache |
| 398 | USE_CCACHE ?= no | 401 | USE_CCACHE ?= no |
| 399 | ifneq ($(USE_CCACHE),no) | 402 | ifneq ($(USE_CCACHE),no) |
