Skip to content

Commit 2984507

Browse files
committed
Optimize libaries for speed, provide space versions for arm, arc and riscv
Targets that want to add the -Os versions can include CT_MULTILIB_SPACE=y to their config files like arm, arc and riscv do. Signed-off-by: Keith Packard <[email protected]>
1 parent d240531 commit 2984507

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

configs/arc-zephyr-elf.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ CT_ARCH_ARC=y
44
CT_TARGET_VENDOR="zephyr"
55
CT_TARGET_CFLAGS="-mno-sdata -mtp-regno=26 -ftls-model=local-exec"
66
CT_MULTILIB=y
7+
CT_MULTILIB_SPACE=y

configs/arm-zephyr-eabi.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ CT_ARCH_ARM_INTERWORKING=y
55
CT_TARGET_VENDOR="zephyr"
66
CT_TARGET_CFLAGS="-ftls-model=local-exec"
77
CT_MULTILIB=y
8+
CT_MULTILIB_SPACE=y
89
CT_CC_GCC_MULTILIB_LIST="rmprofile"
910
CT_LIBC_NEWLIB_NANO_TARGET_CFLAGS="-mthumb-interwork"

configs/common.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ CT_GCC_SRC_CUSTOM=y
1717
CT_GCC_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/gcc"
1818
CT_CC_GCC_EXTRA_CONFIG_ARRAY="--with-gnu-ld --with-gnu-as --enable-initfini-array"
1919
CT_CC_LANG_CXX=y
20-
CT_MULTILIB_SPACE=y
2120

2221
# Newlib
2322
CT_NEWLIB_SRC_CUSTOM=y
@@ -73,4 +72,5 @@ CT_PICOLIBC_SRC_CUSTOM=y
7372
CT_PICOLIBC_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/picolibc"
7473
CT_LIBC_PICOLIBC_GLOBAL_ATEXIT=y
7574
CT_LIBC_PICOLIBC_EXTRA_SECTIONS=y
75+
CT_LIBC_PICOLIBC_ENABLE_TARGET_OPTSPACE=n
7676
CT_LIBC_PICOLIBC_EXTRA_CONFIG_ARRAY="-Dthread-local-storage=auto -Derrno-function=zephyr -Dsysroot-install=true -Dsysroot-install-skip-checks=true -Dassert-verbose=false"

configs/riscv64-zephyr-elf.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ CT_ARCH_ABI="ilp32"
77
CT_TARGET_VENDOR="zephyr"
88
CT_TARGET_CFLAGS="-ftls-model=local-exec"
99
CT_MULTILIB=y
10+
CT_MULTILIB_SPACE=y

0 commit comments

Comments
 (0)