1
0
Fork 0
forked from forks/qmk_firmware
qmk_firmware/platforms/chibios
Stefan Kerkmann 5c2052fd47
[Core] RISC-V toolchain and picolibc fixes (#15109)
* [Core] Fix RISC-V toolchain installation

The risc-v toolchain is only available on distributions based on Debian 11+
so we check for their availability before installing them.

* [Core] Fix heap symbols and syscalls for picolibc

picolibc internally uses __heap_start and __heap_end instead of the
defacto chibios linker script standard __heap_base__ and __heap_end__
therefore we introduce these symbols as an alias. Usually all memory
used within QMK is statically allocated, but some algorithms make usage
of malloc and friends.

Also the timeval struct is not defined by picolibc for syscalls, therefore it
is declared as stub.
2021-11-20 20:04:16 +00:00
..
boards Update to ChibiOS 20.3.4, support builds against trunk (#14208) 2021-11-03 08:26:40 +11:00
drivers Update UART driver API (#14839) 2021-11-13 18:23:14 +00:00
_timer.h Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
_wait.c Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
_wait.h Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
atomic_util.h Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
bootloader.c Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
chibios_config.h Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
eeprom_stm32.c Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
eeprom_stm32.h Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
eeprom_stm32_defs.h Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
eeprom_teensy.c Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
flash.mk [Core] Add support for RISC-V builds and GD32VF103 MCU (#12508) 2021-10-18 16:23:20 +11:00
flash_stm32.c Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
flash_stm32.h Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
gd32v_compatibility.h Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
gpio.h Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
pin_defs.h Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
platform.c Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
platform.mk [Core] RISC-V toolchain and picolibc fixes (#15109) 2021-11-20 20:04:16 +00:00
platform_deps.h Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
sleep_led.c Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
suspend.c Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
syscall-fallbacks.c [Core] RISC-V toolchain and picolibc fixes (#15109) 2021-11-20 20:04:16 +00:00
timer.c Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00
wait.c Move tmk_core/common/<plat> (#13918) 2021-11-19 10:41:02 -08:00