mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-02 19:02:00 +00:00
updated gcc toolchain for nrf52 boards
This commit is contained in:
@@ -86,6 +86,7 @@ platform_packages =
|
|||||||
; https://github.com/meshcore-dev/MeshCore/pull/1177
|
; https://github.com/meshcore-dev/MeshCore/pull/1177
|
||||||
; https://github.com/meshcore-dev/MeshCore/pull/1295
|
; https://github.com/meshcore-dev/MeshCore/pull/1295
|
||||||
framework-arduinoadafruitnrf52 @ https://github.com/meshcore-dev/Adafruit_nRF52_Arduino#d541301
|
framework-arduinoadafruitnrf52 @ https://github.com/meshcore-dev/Adafruit_nRF52_Arduino#d541301
|
||||||
|
platformio/toolchain-gccarmnoneeabi@^1.140201.0
|
||||||
extra_scripts = create-uf2.py
|
extra_scripts = create-uf2.py
|
||||||
build_flags = ${arduino_base.build_flags}
|
build_flags = ${arduino_base.build_flags}
|
||||||
-D NRF52_PLATFORM
|
-D NRF52_PLATFORM
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
// https://github.com/meshcore-dev/MeshCore/issues/2469
|
||||||
|
// armstubs.cpp exists to silence warnings introduced after upgrading platformio/toolchain-gccarmnoneeabi
|
||||||
|
extern "C" __attribute__((weak)) int _close(int fd) { return -1; }
|
||||||
|
extern "C" __attribute__((weak)) int _lseek(int fd, int offset, int whence) { return 0; }
|
||||||
|
extern "C" __attribute__((weak)) int _read(int fd, char *buf, int len) { return 0; }
|
||||||
|
extern "C" __attribute__((weak)) int _fstat(int fd, struct stat *st) { return 0; }
|
||||||
|
extern "C" __attribute__((weak)) int _isatty(int fd) { return 1; }
|
||||||
|
extern "C" __attribute__((weak)) int _getpid(void) { return 1; }
|
||||||
|
extern "C" __attribute__((weak)) int _kill(int pid, int sig) { return -1; }
|
||||||
Reference in New Issue
Block a user