[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.
This commit is contained in:
parent
32215d5bff
commit
5c2052fd47
3 changed files with 22 additions and 12 deletions
|
@ -22,6 +22,7 @@
|
|||
* the _reent struct has to be defined. */
|
||||
#if defined(USE_PICOLIBC)
|
||||
struct _reent;
|
||||
struct timeval;
|
||||
#endif
|
||||
|
||||
#pragma GCC diagnostic ignored "-Wmissing-prototypes"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue