Kconfig: Add new NATIVE_LIBRARY and NATIVE_BUILD options
To differentiate builds which will produce a native executable as direct output from the Zephyr build, or a library which can be used later. Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
parent
d58b315165
commit
2eb14f1469
1 changed files with 18 additions and 2 deletions
|
|
@ -316,14 +316,30 @@ config CODING_GUIDELINE_CHECK
|
||||||
Use available compiler flags to check coding guideline rules during
|
Use available compiler flags to check coding guideline rules during
|
||||||
the build.
|
the build.
|
||||||
|
|
||||||
config NATIVE_APPLICATION
|
config NATIVE_BUILD
|
||||||
bool "Build as a native host application"
|
bool
|
||||||
select FULL_LIBC_SUPPORTED
|
select FULL_LIBC_SUPPORTED
|
||||||
select FULL_LIBCPP_SUPPORTED if CPP
|
select FULL_LIBCPP_SUPPORTED if CPP
|
||||||
|
help
|
||||||
|
Zephyr will be built targeting the host system for debug and
|
||||||
|
development purposes.
|
||||||
|
|
||||||
|
config NATIVE_APPLICATION
|
||||||
|
bool
|
||||||
|
default y if ARCH_POSIX
|
||||||
|
depends on !NATIVE_LIBRARY
|
||||||
|
select NATIVE_BUILD
|
||||||
help
|
help
|
||||||
Build as a native application that can run on the host and using
|
Build as a native application that can run on the host and using
|
||||||
resources and libraries provided by the host.
|
resources and libraries provided by the host.
|
||||||
|
|
||||||
|
config NATIVE_LIBRARY
|
||||||
|
bool
|
||||||
|
select NATIVE_BUILD
|
||||||
|
help
|
||||||
|
Build as a prelinked library for the native host target.
|
||||||
|
This library can later be built into an executable for the host.
|
||||||
|
|
||||||
config COMPILER_FREESTANDING
|
config COMPILER_FREESTANDING
|
||||||
bool "Build in a freestanding compiler mode"
|
bool "Build in a freestanding compiler mode"
|
||||||
help
|
help
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue