From 792ae6ca9e29cf56ea4f305c95aac87ed99adb92 Mon Sep 17 00:00:00 2001 From: Stijn Tintel Date: Wed, 9 Nov 2022 12:52:42 +0200 Subject: [PATCH] kernel: add KERNEL_GPIOLIB config option Add a new kernel config option to enable GPIOLIB. This is currently enabled in the generic kernel configs, even for targets that do not enable the gpio feature. Signed-off-by: Stijn Tintel --- config/Config-kernel.in | 10 ++++++++++ target/linux/generic/config-5.10 | 1 - target/linux/generic/config-5.15 | 1 - 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/config/Config-kernel.in b/config/Config-kernel.in index 34c606a848..ebc242ab83 100644 --- a/config/Config-kernel.in +++ b/config/Config-kernel.in @@ -1246,6 +1246,16 @@ menu "Filesystem ACL and attr support options" endmenu +# +# GPIO related symbols +# + +config KERNEL_GPIOLIB + bool "GPIO support" + default GPIO_SUPPORT + help + Enable GPIO support through the generic GPIO library. + config KERNEL_DEVMEM bool "/dev/mem virtual device support" help diff --git a/target/linux/generic/config-5.10 b/target/linux/generic/config-5.10 index 103fe6de15..05a51430b3 100644 --- a/target/linux/generic/config-5.10 +++ b/target/linux/generic/config-5.10 @@ -2082,7 +2082,6 @@ CONFIG_GENERIC_VDSO_TIME_NS=y # CONFIG_GP2AP002 is not set # CONFIG_GP2AP020A00F is not set # CONFIG_GPD_POCKET_FAN is not set -CONFIG_GPIOLIB=y CONFIG_GPIOLIB_FASTPATH_LIMIT=512 # CONFIG_GPIO_104_DIO_48E is not set # CONFIG_GPIO_104_IDIO_16 is not set diff --git a/target/linux/generic/config-5.15 b/target/linux/generic/config-5.15 index c36cba7053..3ecd124e46 100644 --- a/target/linux/generic/config-5.15 +++ b/target/linux/generic/config-5.15 @@ -2164,7 +2164,6 @@ CONFIG_GENERIC_VDSO_TIME_NS=y # CONFIG_GP2AP002 is not set # CONFIG_GP2AP020A00F is not set # CONFIG_GPD_POCKET_FAN is not set -CONFIG_GPIOLIB=y CONFIG_GPIOLIB_FASTPATH_LIMIT=512 # CONFIG_GPIO_104_DIO_48E is not set # CONFIG_GPIO_104_IDIO_16 is not set -- 2.30.2