diff options
author | Yilin Sun via Newlib <newlib@sourceware.org> | 2022-08-13 19:22:50 +0300 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2022-08-15 22:12:19 +0300 |
commit | b7109cf82e3f180c068b98065f596212ef6b2296 (patch) | |
tree | 9e169f3a1d0a3247d3a2bcc4097389f27f0964cb /newlib/libc/sys | |
parent | 85be74f2951968be7fe1979014d6246171ebd123 (diff) |
SH: Do not build syscalls if option provided
This patch makes syscalls for SH architecture respecting the global option
"--disable-newlib-supplied-syscalls". This is useful when a bare-metal
toolchain is needed.
Signed-off-by: Yilin Sun <imi415@imi.moe>
Diffstat (limited to 'newlib/libc/sys')
-rw-r--r-- | newlib/libc/sys/sh/Makefile.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/sys/sh/Makefile.inc b/newlib/libc/sys/sh/Makefile.inc index d4081ec92..d4ea148f3 100644 --- a/newlib/libc/sys/sh/Makefile.inc +++ b/newlib/libc/sys/sh/Makefile.inc @@ -1 +1,3 @@ +if MAY_SUPPLY_SYSCALLS libc_a_SOURCES += %D%/syscalls.c %D%/trap.S %D%/creat.c %D%/ftruncate.c %D%/truncate.c +endif |