From 1097bea2e005cd220738b0bc76ad11c3ec75f411 Mon Sep 17 00:00:00 2001 From: Kévin PETIT Date: Sun, 28 Aug 2011 20:12:26 +0200 Subject: libc/newlib: add a config option allowing to disable builtin syscalls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- scripts/build/libc/newlib.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts/build/libc') diff --git a/scripts/build/libc/newlib.sh b/scripts/build/libc/newlib.sh index 012f39c4..289c4dfb 100644 --- a/scripts/build/libc/newlib.sh +++ b/scripts/build/libc/newlib.sh @@ -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: -- cgit v1.2.3