Skip to content

Commit

Permalink
Build picolibc too
Browse files Browse the repository at this point in the history
To make C++ work, this requires patching the GCC headers that are
built. This would have been done by crosstool-ng, but sdk-ng doesn't
use a GCC version known to crosstool-ng, so none of the crosstool-ng
patches are applied.

Signed-off-by: Keith Packard <keithp@keithp.com>
  • Loading branch information
keith-packard authored and stephanosio committed Aug 18, 2022
1 parent ec525de commit 99906d4
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
6 changes: 6 additions & 0 deletions configs/aarch64-zephyr-elf.config
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,9 @@ CT_LIBC_NEWLIB_NANO_ENABLE_TARGET_OPTSPACE=y
# CT_LIBC_NEWLIB_NANO_LTO is not set
CT_LIBC_NEWLIB_NANO_NANO_MALLOC=y
CT_LIBC_NEWLIB_NANO_NANO_FORMATTED_IO=y
CT_COMP_LIBS_PICOLIBC=y
CT_LIBC_PICOLIBC_SRC_CUSTOM=y
CT_LIBC_PICOLIBC_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/picolibc"
CT_LIBC_PICOLIBC_GLOBAL_ATEXIT=y
CT_LIBC_PICOLIBC_EXTRA_SECTIONS=y
CT_TARGET_CFLAGS="-ftls-model=local-exec"
5 changes: 5 additions & 0 deletions configs/arc-zephyr-elf.config
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,8 @@ CT_LIBC_NEWLIB_NANO_ENABLE_TARGET_OPTSPACE=y
# CT_LIBC_NEWLIB_NANO_LTO is not set
CT_LIBC_NEWLIB_NANO_NANO_MALLOC=y
CT_LIBC_NEWLIB_NANO_NANO_FORMATTED_IO=y
CT_COMP_LIBS_PICOLIBC=y
CT_LIBC_PICOLIBC_SRC_CUSTOM=y
CT_LIBC_PICOLIBC_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/picolibc"
CT_LIBC_PICOLIBC_GLOBAL_ATEXIT=y
CT_LIBC_PICOLIBC_EXTRA_SECTIONS=y
6 changes: 6 additions & 0 deletions configs/arm-zephyr-eabi.config
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,9 @@ CT_LIBC_NEWLIB_NANO_ENABLE_TARGET_OPTSPACE=y
# CT_LIBC_NEWLIB_NANO_LTO is not set
CT_LIBC_NEWLIB_NANO_NANO_MALLOC=y
CT_LIBC_NEWLIB_NANO_NANO_FORMATTED_IO=y
CT_COMP_LIBS_PICOLIBC=y
CT_LIBC_PICOLIBC_SRC_CUSTOM=y
CT_LIBC_PICOLIBC_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/picolibc"
CT_LIBC_PICOLIBC_GLOBAL_ATEXIT=y
CT_LIBC_PICOLIBC_EXTRA_SECTIONS=y
CT_TARGET_CFLAGS="-ftls-model=local-exec"
6 changes: 6 additions & 0 deletions configs/riscv64-zephyr-elf.config
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,9 @@ CT_LIBC_NEWLIB_NANO_ENABLE_TARGET_OPTSPACE=y
# CT_LIBC_NEWLIB_NANO_LTO is not set
CT_LIBC_NEWLIB_NANO_NANO_MALLOC=y
CT_LIBC_NEWLIB_NANO_NANO_FORMATTED_IO=y
CT_COMP_LIBS_PICOLIBC=y
CT_LIBC_PICOLIBC_SRC_CUSTOM=y
CT_LIBC_PICOLIBC_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/picolibc"
CT_LIBC_PICOLIBC_GLOBAL_ATEXIT=y
CT_LIBC_PICOLIBC_EXTRA_SECTIONS=y
CT_TARGET_CFLAGS="-ftls-model=local-exec"

0 comments on commit 99906d4

Please sign in to comment.