native: Fix entropy generator kconfig warning

Fixed the FAKE_ENTROPY_NATIVE_POSIX config warning
by setting it only if the entropy generator is used,
instead of setting it always and relying on it
being set to "no" by not meeting that dependency.

Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
This commit is contained in:
Alberto Escolar Piedras 2018-06-13 15:52:34 +02:00 committed by Carles Cufí
parent 8f3fea300a
commit 3a87e0ed05
2 changed files with 7 additions and 1 deletions

View File

@ -23,4 +23,11 @@ config ETH_NATIVE_POSIX
endif # NETWORKING
if ENTROPY_GENERATOR
config FAKE_ENTROPY_NATIVE_POSIX
def_bool y
endif # ENTROPY_GENERATOR
endif

View File

@ -5,5 +5,4 @@ CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=1000000
CONFIG_COVERAGE=y
CONFIG_FAKE_ENTROPY_NATIVE_POSIX=y
CONFIG_BT_USERCHAN=y