libc: some architectures do not require baremetal libc
When building a native application, we use the host provided libc, so do not build minimal libc or newlib. Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com> Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
94d034dd5e
commit
95cd063280
3 changed files with 11 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
||||||
add_subdirectory(crc)
|
add_subdirectory(crc)
|
||||||
add_subdirectory_ifdef(CONFIG_JSON_LIBRARY json)
|
add_subdirectory_ifdef(CONFIG_JSON_LIBRARY json)
|
||||||
|
if(NOT CONFIG_NATIVE_APPLICATION)
|
||||||
add_subdirectory(libc)
|
add_subdirectory(libc)
|
||||||
|
endif()
|
||||||
add_subdirectory_if_kconfig(ring_buffer)
|
add_subdirectory_if_kconfig(ring_buffer)
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
menu "C Library"
|
menu "C Library"
|
||||||
|
depends on !NATIVE_APPLICATION
|
||||||
|
|
||||||
config NEWLIB_LIBC
|
config NEWLIB_LIBC
|
||||||
bool
|
bool
|
||||||
|
|
|
@ -122,6 +122,13 @@ config CROSS_COMPILE
|
||||||
need to set this unless you want the configured kernel build
|
need to set this unless you want the configured kernel build
|
||||||
directory to select the cross-compiler automatically.
|
directory to select the cross-compiler automatically.
|
||||||
|
|
||||||
|
config NATIVE_APPLICATION
|
||||||
|
bool "Build as a native host application"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
Build as a native application that can run on the host and using
|
||||||
|
resources and libraries provided by the host.
|
||||||
|
|
||||||
config COMPILER_OPT
|
config COMPILER_OPT
|
||||||
string
|
string
|
||||||
prompt "Custom compiler options"
|
prompt "Custom compiler options"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue