From 3a87e0ed057d21158dfbbd0358594892d296d770 Mon Sep 17 00:00:00 2001 From: Alberto Escolar Piedras Date: Wed, 13 Jun 2018 15:52:34 +0200 Subject: [PATCH] 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 --- boards/posix/native_posix/Kconfig.defconfig | 7 +++++++ boards/posix/native_posix/native_posix_defconfig | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/boards/posix/native_posix/Kconfig.defconfig b/boards/posix/native_posix/Kconfig.defconfig index 9364e67dc53..3bc71a22548 100644 --- a/boards/posix/native_posix/Kconfig.defconfig +++ b/boards/posix/native_posix/Kconfig.defconfig @@ -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 diff --git a/boards/posix/native_posix/native_posix_defconfig b/boards/posix/native_posix/native_posix_defconfig index 3fde45a174b..341a2332944 100644 --- a/boards/posix/native_posix/native_posix_defconfig +++ b/boards/posix/native_posix/native_posix_defconfig @@ -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