Skip to content

Commit a361e49

Browse files
galaknashif
authored andcommitted
newlib: Add cflags -DMISSING_SYSCALL_NAMES
The older 0.9.5 sdk was adding -DMISSING_SYSCALL_NAMES CFLAG to all newlib builds. We need this to match the names of the "system call" functions we implement in zephyr. Signed-off-by: Kumar Gala <[email protected]>
1 parent dcb9f32 commit a361e49

File tree

8 files changed

+8
-0
lines changed

8 files changed

+8
-0
lines changed

configs/arc.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ CT_LOCAL_PATCH_DIR="${CT_TOP_DIR}/../../patches"
88
CT_ARCH_ARC=y
99
CT_MULTILIB=y
1010
CT_TARGET_VENDOR="zephyr"
11+
CT_LIBC_NEWLIB_TARGET_CFLAGS="-DMISSING_SYSCALL_NAMES"
1112
CT_LIBC_NEWLIB_IO_FLOAT=y
1213
# CT_LIBC_NEWLIB_FSEEK_OPTIMIZATION is not set
1314
CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y

configs/arm.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ CT_ARCH_ARM=y
99
CT_ARCH_ARM_INTERWORKING=y
1010
CT_MULTILIB=y
1111
CT_TARGET_VENDOR="zephyr"
12+
CT_LIBC_NEWLIB_TARGET_CFLAGS="-DMISSING_SYSCALL_NAMES"
1213
CT_LIBC_NEWLIB_IO_FLOAT=y
1314
# CT_LIBC_NEWLIB_FSEEK_OPTIMIZATION is not set
1415
CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y

configs/i586.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ CT_ARCH_X86=y
99
CT_ARCH_TUNE="pentium"
1010
CT_TARGET_CFLAGS="-m32"
1111
CT_TARGET_VENDOR="zephyr"
12+
CT_LIBC_NEWLIB_TARGET_CFLAGS="-DMISSING_SYSCALL_NAMES"
1213
CT_LIBC_NEWLIB_IO_FLOAT=y
1314
# CT_LIBC_NEWLIB_FSEEK_OPTIMIZATION is not set
1415
CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y

configs/iamcu.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ CT_ARCH_TUNE="lakemont"
1010
CT_ARCH_X86_IAMCU=y
1111
CT_TARGET_CFLAGS="-miamcu -m32"
1212
CT_TARGET_VENDOR="zephyr"
13+
CT_LIBC_NEWLIB_TARGET_CFLAGS="-DMISSING_SYSCALL_NAMES"
1314
CT_LIBC_NEWLIB_IO_FLOAT=y
1415
# CT_LIBC_NEWLIB_FSEEK_OPTIMIZATION is not set
1516
CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y

configs/mips.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ CT_LOCAL_PATCH_DIR="${CT_TOP_DIR}/../../patches"
88
CT_ARCH_MIPS=y
99
CT_MULTILIB=y
1010
CT_TARGET_VENDOR="zephyr"
11+
CT_LIBC_NEWLIB_TARGET_CFLAGS="-DMISSING_SYSCALL_NAMES"
1112
CT_LIBC_NEWLIB_IO_FLOAT=y
1213
# CT_LIBC_NEWLIB_FSEEK_OPTIMIZATION is not set
1314
CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y

configs/nios2.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ CT_LOCAL_PATCH_DIR="${CT_TOP_DIR}/../../patches"
88
CT_ARCH_NIOS2=y
99
CT_ARCH_USE_MMU=y
1010
CT_TARGET_VENDOR="zephyr"
11+
CT_LIBC_NEWLIB_TARGET_CFLAGS="-DMISSING_SYSCALL_NAMES"
1112
CT_LIBC_NEWLIB_IO_FLOAT=y
1213
# CT_LIBC_NEWLIB_FSEEK_OPTIMIZATION is not set
1314
CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y

configs/riscv32.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ CT_ARCH_ARCH="rv32ima"
1212
CT_ARCH_ABI="ilp32"
1313
CT_TARGET_VENDOR="zephyr"
1414
CT_NEWLIB_V_2_5=y
15+
CT_LIBC_NEWLIB_TARGET_CFLAGS="-DMISSING_SYSCALL_NAMES"
1516
CT_LIBC_NEWLIB_IO_FLOAT=y
1617
# CT_LIBC_NEWLIB_FSEEK_OPTIMIZATION is not set
1718
CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y

configs/xtensa.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ CT_TARGET_VENDOR="zephyr"
1414
CT_NEWLIB_SRC_DEVEL=y
1515
CT_NEWLIB_DEVEL_URL="https://github.com/jcmvbkbc/newlib-xtensa.git"
1616
CT_NEWLIB_DEVEL_BRANCH="xtensa"
17+
CT_LIBC_NEWLIB_TARGET_CFLAGS="-DMISSING_SYSCALL_NAMES"
1718
CT_LIBC_NEWLIB_IO_FLOAT=y
1819
# CT_LIBC_NEWLIB_FSEEK_OPTIMIZATION is not set
1920
CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y

0 commit comments

Comments
 (0)