toolchain: Have Kconfig NEWLIB_LIBC_NANO depend on toolchain support
Introduce HAS_NEWLIB_LIBC_NANO Kconfig option that the toolchain specific Kconfig (gnuarmemb & zephyr 0.11) can select to convey that the feature is supported. This removes the need to if protect the NEWLIB_LIBC_NANO Kconfig with: if "$(ZEPHYR_TOOLCHAIN_VARIANT)" = "gnuarmemb" Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
2630fbaa75
commit
6317c82f06
3 changed files with 6 additions and 2 deletions
|
@ -5,3 +5,4 @@
|
||||||
|
|
||||||
config TOOLCHAIN_GNUARMEMB
|
config TOOLCHAIN_GNUARMEMB
|
||||||
def_bool y
|
def_bool y
|
||||||
|
select HAS_NEWLIB_LIBC_NANO
|
||||||
|
|
|
@ -5,3 +5,4 @@
|
||||||
|
|
||||||
config TOOLCHAIN_ZEPHYR_0_11
|
config TOOLCHAIN_ZEPHYR_0_11
|
||||||
def_bool y
|
def_bool y
|
||||||
|
select HAS_NEWLIB_LIBC_NANO
|
||||||
|
|
|
@ -38,17 +38,19 @@ config EXTERNAL_LIBC
|
||||||
|
|
||||||
endchoice # LIBC_IMPLEMENTATION
|
endchoice # LIBC_IMPLEMENTATION
|
||||||
|
|
||||||
|
config HAS_NEWLIB_LIBC_NANO
|
||||||
|
bool
|
||||||
|
|
||||||
if NEWLIB_LIBC
|
if NEWLIB_LIBC
|
||||||
|
|
||||||
if "$(ZEPHYR_TOOLCHAIN_VARIANT)" = "gnuarmemb"
|
|
||||||
config NEWLIB_LIBC_NANO
|
config NEWLIB_LIBC_NANO
|
||||||
bool "Build with newlib-nano C library"
|
bool "Build with newlib-nano C library"
|
||||||
|
depends on HAS_NEWLIB_LIBC_NANO
|
||||||
default y
|
default y
|
||||||
help
|
help
|
||||||
Build with newlib-nano library, for small embedded apps.
|
Build with newlib-nano library, for small embedded apps.
|
||||||
The newlib-nano library for ARM embedded processors is a part of the
|
The newlib-nano library for ARM embedded processors is a part of the
|
||||||
GNU Tools for ARM Embedded Processors.
|
GNU Tools for ARM Embedded Processors.
|
||||||
endif
|
|
||||||
|
|
||||||
config NEWLIB_LIBC_ALIGNED_HEAP_SIZE
|
config NEWLIB_LIBC_ALIGNED_HEAP_SIZE
|
||||||
int "Newlib aligned heap size"
|
int "Newlib aligned heap size"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue