From d4cd4f7ccba5a8613efc63aca8f8882550bccd1c Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Tue, 10 Dec 2019 00:20:25 +0900 Subject: [PATCH] newlib: Enable long long support This commit enables 'long long' (64-bit) support in the newlib. Note that 'long long' support is only enabled for the normal newlib (libc.a), without affecting the newlib nano variant (libc_nano.a). Signed-off-by: Stephanos Ioannidis --- configs/arc.config | 1 + configs/arm.config | 1 + configs/arm64.config | 1 + configs/i586.config | 1 + configs/iamcu.config | 1 + configs/mips.config | 1 + configs/nios2.config | 1 + configs/riscv64.config | 1 + configs/sparc.config | 1 + configs/x86_64-zephyr-elf.config | 1 + configs/xtensa_intel_apl_adsp.config | 1 + configs/xtensa_intel_s1000.config | 1 + configs/xtensa_sample_controller.config | 1 + 13 files changed, 13 insertions(+) diff --git a/configs/arc.config b/configs/arc.config index 32d1258a..ff81487e 100644 --- a/configs/arc.config +++ b/configs/arc.config @@ -10,6 +10,7 @@ CT_MULTILIB=y CT_TARGET_CFLAGS="-mno-sdata" CT_TARGET_VENDOR="zephyr" CT_LIBC_NEWLIB_TARGET_CFLAGS="-DMISSING_SYSCALL_NAMES" +CT_LIBC_NEWLIB_IO_LL=y CT_LIBC_NEWLIB_IO_FLOAT=y # CT_LIBC_NEWLIB_FSEEK_OPTIMIZATION is not set CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y diff --git a/configs/arm.config b/configs/arm.config index 798a2de9..ef552655 100644 --- a/configs/arm.config +++ b/configs/arm.config @@ -10,6 +10,7 @@ CT_ARCH_ARM_INTERWORKING=y CT_MULTILIB=y CT_TARGET_VENDOR="zephyr" CT_LIBC_NEWLIB_TARGET_CFLAGS="-DMISSING_SYSCALL_NAMES" +CT_LIBC_NEWLIB_IO_LL=y CT_LIBC_NEWLIB_IO_FLOAT=y # CT_LIBC_NEWLIB_FSEEK_OPTIMIZATION is not set CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y diff --git a/configs/arm64.config b/configs/arm64.config index 215c8b0c..fef8a8fd 100644 --- a/configs/arm64.config +++ b/configs/arm64.config @@ -10,6 +10,7 @@ CT_MULTILIB=y CT_ARCH_64=y CT_TARGET_VENDOR="zephyr" CT_LIBC_NEWLIB_TARGET_CFLAGS="-DMISSING_SYSCALL_NAMES" +CT_LIBC_NEWLIB_IO_LL=y CT_LIBC_NEWLIB_IO_FLOAT=y # CT_LIBC_NEWLIB_FSEEK_OPTIMIZATION is not set CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y diff --git a/configs/i586.config b/configs/i586.config index 046f5082..24d9a9b8 100644 --- a/configs/i586.config +++ b/configs/i586.config @@ -11,6 +11,7 @@ CT_MULTILIB=y CT_TARGET_CFLAGS="-m32" CT_TARGET_VENDOR="zephyr" CT_LIBC_NEWLIB_TARGET_CFLAGS="-DMISSING_SYSCALL_NAMES" +CT_LIBC_NEWLIB_IO_LL=y CT_LIBC_NEWLIB_IO_FLOAT=y # CT_LIBC_NEWLIB_FSEEK_OPTIMIZATION is not set CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y diff --git a/configs/iamcu.config b/configs/iamcu.config index cb23978a..c90e84f2 100644 --- a/configs/iamcu.config +++ b/configs/iamcu.config @@ -11,6 +11,7 @@ CT_ARCH_X86_IAMCU=y CT_TARGET_CFLAGS="-miamcu -m32" CT_TARGET_VENDOR="zephyr" CT_LIBC_NEWLIB_TARGET_CFLAGS="-DMISSING_SYSCALL_NAMES" +CT_LIBC_NEWLIB_IO_LL=y CT_LIBC_NEWLIB_IO_FLOAT=y # CT_LIBC_NEWLIB_FSEEK_OPTIMIZATION is not set CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y diff --git a/configs/mips.config b/configs/mips.config index 5d9e6e4a..167c8164 100644 --- a/configs/mips.config +++ b/configs/mips.config @@ -9,6 +9,7 @@ CT_ARCH_MIPS=y CT_MULTILIB=y CT_TARGET_VENDOR="zephyr" CT_LIBC_NEWLIB_TARGET_CFLAGS="-DMISSING_SYSCALL_NAMES" +CT_LIBC_NEWLIB_IO_LL=y CT_LIBC_NEWLIB_IO_FLOAT=y # CT_LIBC_NEWLIB_FSEEK_OPTIMIZATION is not set CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y diff --git a/configs/nios2.config b/configs/nios2.config index 52525f24..b9efe5f7 100644 --- a/configs/nios2.config +++ b/configs/nios2.config @@ -10,6 +10,7 @@ CT_MULTILIB=y CT_ARCH_USE_MMU=y CT_TARGET_VENDOR="zephyr" CT_LIBC_NEWLIB_TARGET_CFLAGS="-DMISSING_SYSCALL_NAMES" +CT_LIBC_NEWLIB_IO_LL=y CT_LIBC_NEWLIB_IO_FLOAT=y # CT_LIBC_NEWLIB_FSEEK_OPTIMIZATION is not set CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y diff --git a/configs/riscv64.config b/configs/riscv64.config index dd41ad37..91161269 100644 --- a/configs/riscv64.config +++ b/configs/riscv64.config @@ -13,6 +13,7 @@ CT_ARCH_ARCH="rv32ima" CT_ARCH_ABI="ilp32" CT_TARGET_VENDOR="zephyr" CT_LIBC_NEWLIB_TARGET_CFLAGS="-DMISSING_SYSCALL_NAMES" +CT_LIBC_NEWLIB_IO_LL=y CT_LIBC_NEWLIB_IO_FLOAT=y # CT_LIBC_NEWLIB_FSEEK_OPTIMIZATION is not set CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y diff --git a/configs/sparc.config b/configs/sparc.config index fce0e54a..a31a3042 100644 --- a/configs/sparc.config +++ b/configs/sparc.config @@ -9,6 +9,7 @@ CT_ARCH_SPARC=y CT_MULTILIB=y CT_TARGET_VENDOR="zephyr" CT_LIBC_NEWLIB_TARGET_CFLAGS="-DMISSING_SYSCALL_NAMES" +CT_LIBC_NEWLIB_IO_LL=y CT_LIBC_NEWLIB_IO_FLOAT=y # CT_LIBC_NEWLIB_FSEEK_OPTIMIZATION is not set CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y diff --git a/configs/x86_64-zephyr-elf.config b/configs/x86_64-zephyr-elf.config index bf0d38ea..1878d8f2 100644 --- a/configs/x86_64-zephyr-elf.config +++ b/configs/x86_64-zephyr-elf.config @@ -9,6 +9,7 @@ CT_MULTILIB=y CT_ARCH_64=y CT_TARGET_VENDOR="zephyr" CT_LIBC_NEWLIB_TARGET_CFLAGS="-DMISSING_SYSCALL_NAMES" +CT_LIBC_NEWLIB_IO_LL=y CT_LIBC_NEWLIB_IO_FLOAT=y # CT_LIBC_NEWLIB_FSEEK_OPTIMIZATION is not set CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y diff --git a/configs/xtensa_intel_apl_adsp.config b/configs/xtensa_intel_apl_adsp.config index 1b0a3fea..d7adc352 100644 --- a/configs/xtensa_intel_apl_adsp.config +++ b/configs/xtensa_intel_apl_adsp.config @@ -16,6 +16,7 @@ CT_NEWLIB_SRC_DEVEL=y CT_NEWLIB_DEVEL_URL="https://github.com/jcmvbkbc/newlib-xtensa.git" CT_NEWLIB_DEVEL_BRANCH="xtensa" CT_LIBC_NEWLIB_TARGET_CFLAGS="-DMISSING_SYSCALL_NAMES" +CT_LIBC_NEWLIB_IO_LL=y CT_LIBC_NEWLIB_IO_FLOAT=y # CT_LIBC_NEWLIB_FSEEK_OPTIMIZATION is not set CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y diff --git a/configs/xtensa_intel_s1000.config b/configs/xtensa_intel_s1000.config index 199e8098..67566f27 100644 --- a/configs/xtensa_intel_s1000.config +++ b/configs/xtensa_intel_s1000.config @@ -15,6 +15,7 @@ CT_NEWLIB_SRC_DEVEL=y CT_NEWLIB_DEVEL_URL="https://github.com/jcmvbkbc/newlib-xtensa.git" CT_NEWLIB_DEVEL_BRANCH="xtensa" CT_LIBC_NEWLIB_TARGET_CFLAGS="-DMISSING_SYSCALL_NAMES" +CT_LIBC_NEWLIB_IO_LL=y CT_LIBC_NEWLIB_IO_FLOAT=y # CT_LIBC_NEWLIB_FSEEK_OPTIMIZATION is not set CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y diff --git a/configs/xtensa_sample_controller.config b/configs/xtensa_sample_controller.config index 0ca44303..469d6d8a 100644 --- a/configs/xtensa_sample_controller.config +++ b/configs/xtensa_sample_controller.config @@ -15,6 +15,7 @@ CT_NEWLIB_SRC_DEVEL=y CT_NEWLIB_DEVEL_URL="https://github.com/jcmvbkbc/newlib-xtensa.git" CT_NEWLIB_DEVEL_BRANCH="xtensa" CT_LIBC_NEWLIB_TARGET_CFLAGS="-DMISSING_SYSCALL_NAMES" +CT_LIBC_NEWLIB_IO_LL=y CT_LIBC_NEWLIB_IO_FLOAT=y # CT_LIBC_NEWLIB_FSEEK_OPTIMIZATION is not set CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y