From 67b2519a7da12391c138edb7dd2c309e0bc7eaee Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Mon, 27 Jul 2020 17:28:31 +0200 Subject: [PATCH] sys: add newlib modules to Kconfig --- sys/Kconfig | 1 + sys/Kconfig.newlib | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 sys/Kconfig.newlib diff --git a/sys/Kconfig b/sys/Kconfig index bd6cdf7ed6..1348803f44 100644 --- a/sys/Kconfig +++ b/sys/Kconfig @@ -8,6 +8,7 @@ menu "System" rsource "auto_init/Kconfig" rsource "net/Kconfig" +rsource "Kconfig.newlib" rsource "usb/Kconfig" config MOD_SYS diff --git a/sys/Kconfig.newlib b/sys/Kconfig.newlib new file mode 100644 index 0000000000..93533ceda4 --- /dev/null +++ b/sys/Kconfig.newlib @@ -0,0 +1,30 @@ +# Copyright (c) 2020 HAW Hamburg +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. +# + +menuconfig MOD_NEWLIB + bool "NewLib" + depends on TEST_KCONFIG + +if MOD_NEWLIB + +config MOD_NEWLIB_NANO + bool "NewLib Nano" + +config MOD_NEWLIB_GNU_SOURCE + bool "NewLib GNU source" + +config MOD_NEWLIB_SYSCALLS_DEFAULT + bool "NewLib Syscalls default implementation" + default y + depends on !HAVE_CUSTOM_NEWLIB_SYSCALLS + +endif # MOD_NEWLIB + +config HAVE_CUSTOM_NEWLIB_SYSCALLS + bool + help + Indicates that a custom newlib syscalls implementation is present.