Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

picolibc: get --picolibc-buildtype=release working #820

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmake/zephyr/generic.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ set(CROSS_COMPILE ${one_toolchain_root}/${CROSS_COMPILE_TARGET}/bin/${CROSS_COMP
set(SYSROOT_DIR ${one_toolchain_root}/${SYSROOT_TARGET}/${SYSROOT_TARGET})
set(TOOLCHAIN_HAS_NEWLIB ON CACHE BOOL "True if toolchain supports newlib")
set(TOOLCHAIN_HAS_PICOLIBC ON CACHE BOOL "True if toolchain supports picolibc")
set(TOOLCHAIN_HAS_PICOLIBC_DUAL ON CACHE BOOL "True if toolchain supports --picolibc-buildtype=release")
1 change: 1 addition & 0 deletions configs/common.config
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,6 @@ CT_COMP_LIBS_PICOLIBC=y
CT_PICOLIBC_SRC_CUSTOM=y
CT_PICOLIBC_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/picolibc"
CT_LIBC_PICOLIBC_GLOBAL_ATEXIT=y
CT_LIBC_PICOLIBC_ENABLE_TARGET_OPTBOTH=y
CT_LIBC_PICOLIBC_EXTRA_SECTIONS=y
CT_LIBC_PICOLIBC_EXTRA_CONFIG_ARRAY="-Dthread-local-storage=auto -Derrno-function=zephyr -Dsysroot-install=true -Dsysroot-install-skip-checks=true -Dassert-verbose=false"
4 changes: 2 additions & 2 deletions contrib/linux_build_toolchain.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function usage()
echo " Default is ${SDK_DIR}"
echo ""
echo " -o Build directory, for building artifacts and final output. Optional."
echo " Default is ${WORKSPACE}"
echo " Default is ${BUILD_DIR}"
echo ""
echo " -h This help."
echo ""
Expand Down Expand Up @@ -119,7 +119,7 @@ CT_LOG_EXTRA=y
CT_LOG_LEVEL_MAX="EXTRA"
CT_GDB_CROSS_PYTHON=y
CT_GDB_CROSS_PYTHON_VARIANT=y
CT_GDB_CROSS_PYTHON_BINARY="python3.10"
CT_GDB_CROSS_PYTHON_BINARY="python3.12"
CT_EXPERIMENTAL=y
CT_ALLOW_BUILD_AS_ROOT=y
CT_ALLOW_BUILD_AS_ROOT_SURE=y
Expand Down
2 changes: 1 addition & 1 deletion gcc
Submodule gcc updated 1 files
+11 −1 gcc/gcc.cc
2 changes: 1 addition & 1 deletion picolibc
Submodule picolibc updated 50 files
+13 −18 .github/do-linux
+49 −0 .github/do-test-noopt
+1 −1 .github/linux-files.txt
+3 −3 .github/linux-packages.txt
+1 −1 CMakeLists.txt
+1 −0 cmake/TC-clang-thumbv6m.cmake
+1 −0 cmake/TC-clang-thumbv7m.cmake
+64 −34 meson.build
+2 −0 newlib/libc/errno/errno.c
+3 −3 newlib/libc/include/machine/ieeefp.h
+13 −0 newlib/libc/locale/locale.c
+29 −3 newlib/libc/machine/aarch64/machine/fenv.h
+26 −4 newlib/libc/machine/arc/strchr-stub.c
+4 −4 newlib/libc/machine/arm/machine/fenv.h
+4 −4 newlib/libc/machine/arm/machine/math.h
+62 −62 newlib/libc/machine/arm/memchr.S
+1 −1 newlib/libc/machine/arm/memcpy-armv7a.S
+3 −3 newlib/libc/machine/arm/memcpy-armv7m.S
+1 −1 newlib/libc/machine/arm/memset.S
+1 −1 newlib/libc/machine/arm/memset.c
+2 −1 newlib/libc/stdio/vfscanf.c
+4 −0 newlib/libc/tinystdio/conv_flt.c
+1 −1 newlib/libm/machine/arm/s_ceil.c
+1 −1 newlib/libm/machine/arm/s_fabs.c
+1 −1 newlib/libm/machine/arm/s_floor.c
+1 −1 newlib/libm/machine/arm/s_nearbyint.c
+1 −1 newlib/libm/machine/arm/s_rint.c
+1 −1 newlib/libm/machine/arm/s_round.c
+1 −1 newlib/libm/machine/arm/s_sqrt.c
+1 −1 newlib/libm/machine/arm/s_trunc.c
+1 −1 newlib/libm/machine/arm/sf_ceil.c
+1 −1 newlib/libm/machine/arm/sf_fabs.c
+1 −1 newlib/libm/machine/arm/sf_floor.c
+1 −1 newlib/libm/machine/arm/sf_nearbyint.c
+1 −1 newlib/libm/machine/arm/sf_rint.c
+1 −1 newlib/libm/machine/arm/sf_round.c
+1 −1 newlib/libm/machine/arm/sf_sqrt.c
+1 −1 newlib/libm/machine/arm/sf_trunc.c
+8 −0 picocrt/machine/aarch64/crt0.c
+3 −3 picocrt/machine/arm/crt0.c
+7 −7 scripts/cross-clang-aarch64-none-elf.txt
+46 −0 scripts/cross-clang-arm-none-eabi.txt
+2 −2 scripts/cross-clang-riscv64-unknown-elf.txt
+2 −2 scripts/cross-clang-rv32imafdc-unknown-elf.txt
+4 −1 scripts/do-arc-configure
+1 −1 scripts/do-clang-aarch64-configure
+1 −1 scripts/do-clang-arm-configure
+4 −0 scripts/run-arc
+18 −1 scripts/run-arm
+14 −3 test/math_errhandling_tests.c
Loading