From a5d3171a8cc7e72a41e130595eb3ab56bc1a0222 Mon Sep 17 00:00:00 2001 From: Mikhail Cherkashin Date: Tue, 8 Aug 2017 13:12:46 +0300 Subject: [PATCH] Turn on DISABLE_POLL when NFILE_DESCRIPTORS = 0 When NFILE_DESCRIPTORS = 0, set DISABLE_POLL to y and make it invisible. Change-Id: I846e1da62d1cfffc5052a99a8e6fcc7bfe2a96b3 Signed-off-by: Mikhail Cherkashin --- os/drivers/Kconfig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/os/drivers/Kconfig b/os/drivers/Kconfig index 23d4412..aada052 100644 --- a/os/drivers/Kconfig +++ b/os/drivers/Kconfig @@ -1,7 +1,9 @@ config DISABLE_POLL - bool "Disable driver poll interfaces" - default n + bool + prompt "Disable driver poll interfaces" if NFILE_DESCRIPTORS != 0 + default n if NFILE_DESCRIPTORS != 0 + default y if NFILE_DESCRIPTORS = 0 ---help--- The sizes of drivers can be reduced if the poll() method is not supported. If you do not use poll() or select(), then you can -- 2.7.4