Kconfig: Tidy up dependants of NATIVE_APPLICATION

So they depend or select on the right NATIVE_BUILD
instead of NATIVE_APPLICATION.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2023-05-26 13:23:43 +02:00 committed by Chris Friedt
parent 2eb14f1469
commit 56dc20eb1d
9 changed files with 9 additions and 7 deletions

View file

@ -346,7 +346,7 @@ toolchain_ld_force_undefined_symbols(
_ConfigAbsSyms
)
if(NOT CONFIG_NATIVE_APPLICATION)
if(NOT CONFIG_NATIVE_BUILD)
# @Intent: Set linker specific flags for bare metal target
toolchain_ld_baremetal()
endif()

View file

@ -414,7 +414,7 @@ config COMPILER_COLOR_DIAGNOSTICS
choice COMPILER_SECURITY_FORTIFY
prompt "Detect buffer overflows in libc calls"
default FORTIFY_SOURCE_NONE if NO_OPTIMIZATIONS || MINIMAL_LIBC || NATIVE_APPLICATION
default FORTIFY_SOURCE_NONE if NO_OPTIMIZATIONS || MINIMAL_LIBC || NATIVE_BUILD
default FORTIFY_SOURCE_COMPILE_TIME
help
Buffer overflow checking in libc calls. Supported by Clang and

View file

@ -142,7 +142,7 @@ config ARCH_POSIX
select ARCH_HAS_CUSTOM_SWAP_TO_MAIN
select ARCH_HAS_CUSTOM_BUSY_WAIT
select ARCH_HAS_THREAD_ABORT
select NATIVE_APPLICATION
select NATIVE_BUILD
select HAS_COVERAGE_SUPPORT
select BARRIER_OPERATIONS_BUILTIN
help

View file

@ -4,6 +4,7 @@ config BOARD_NATIVE_POSIX
bool
select NATIVE_POSIX_TIMER
select POSIX_ARCH_CONSOLE
select NATIVE_APPLICATION
if BOARD_NATIVE_POSIX

View file

@ -11,6 +11,7 @@ config BOARD_NRF52_BSIM
select CLOCK_CONTROL
select HAS_NRFX
select HAS_NORDIC_DRIVERS
select NATIVE_APPLICATION
help
Will produce a console Linux process which can be executed natively.
It needs the BabbleSim simulator both in compile time and to execute

View file

@ -106,7 +106,7 @@ if (NOT CONFIG_NEWLIB_LIBC AND
NOT (CONFIG_PICOLIBC AND NOT CONFIG_PICOLIBC_USE_MODULE) AND
NOT COMPILER STREQUAL "xcc" AND
NOT CONFIG_HAS_ESPRESSIF_HAL AND
NOT CONFIG_NATIVE_APPLICATION)
NOT CONFIG_NATIVE_BUILD)
set_compiler_property(PROPERTY nostdinc -nostdinc)
set_compiler_property(APPEND PROPERTY nostdinc_include ${NOSTDINC})
endif()

View file

@ -73,7 +73,7 @@ config FULL_LIBCPP_SUPPORTED
choice LIBCPP_IMPLEMENTATION
prompt "C++ Standard Library Implementation"
default EXTERNAL_LIBCPP if REQUIRES_FULL_LIBCPP && NATIVE_APPLICATION
default EXTERNAL_LIBCPP if REQUIRES_FULL_LIBCPP && NATIVE_BUILD
default GLIBCXX_LIBCPP if REQUIRES_FULL_LIBCPP
default MINIMAL_LIBCPP

View file

@ -54,7 +54,7 @@ menu "C Library"
choice LIBC_IMPLEMENTATION
prompt "C Library Implementation"
default EXTERNAL_LIBC if NATIVE_APPLICATION
default EXTERNAL_LIBC if NATIVE_BUILD
default NEWLIB_LIBC if REQUIRES_FULL_LIBC
default PICOLIBC if REQUIRES_FULL_LIBC
default MINIMAL_LIBC

View file

@ -44,7 +44,7 @@ config COVERAGE_GCOV
bool "Create Coverage data from hardware platform"
default y
depends on COVERAGE
depends on !NATIVE_APPLICATION
depends on !NATIVE_BUILD
help
This option will select the custom gcov library. The reports will
be available over serial. This serial dump can be passed to