mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-20 17:12:55 +00:00
libc/newlib: add a config option allowing to disable builtin syscalls
Allows to choose if one wants to keep or not the syscalls that are provided with newlib. It passes the --disable-newlib-supplied-syscalls or --enable-newlib-supplied-syscalls to the configure script. If one chooses to disable the builtin syscalls, he/she will have to write his/her own. This can be usefull to port newlib to a new platform/board. Signed-off-by: Kévin PETIT <kpet@free.fr>
This commit is contained in:
parent
4c1666134b
commit
1097bea2e0
@ -25,3 +25,13 @@ config LIBC_NEWLIB_IO_LDBL
|
||||
depends on LIBC_NEWLIB_IO_FLOAT
|
||||
help
|
||||
Enable support for IOs on long doubles.
|
||||
|
||||
config LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS
|
||||
bool
|
||||
prompt "Disable the syscalls supplied with newlib"
|
||||
help
|
||||
Disable the syscalls that come with newlib. You
|
||||
will have to implement your own _sbrk, _read,
|
||||
_write... If you plan to port newlib to a new
|
||||
platform/board, say Yes.
|
||||
|
||||
|
@ -79,6 +79,11 @@ do_libc_start_files() {
|
||||
newlib_opts+=( "--disable-newlib-io-float" )
|
||||
newlib_opts+=( "--disable-newlib-io-long-double" )
|
||||
fi
|
||||
if [ "${CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS}" = "y" ]; then
|
||||
newlib_opts+=( "--disable-newlib-supplied-syscalls" )
|
||||
else
|
||||
newlib_opts+=( "--enable-newlib-supplied-syscalls" )
|
||||
fi
|
||||
|
||||
# Note: newlib handles the build/host/target a little bit differently
|
||||
# than one would expect:
|
||||
|
Loading…
x
Reference in New Issue
Block a user