From: Bartosz Golaszewski <bartosz.golaszew...@linaro.org>

The GPIO sysfs interface is disabled in standard linux config and in
general users should use the character device instead but there are still
programs out there that depend on it so for the time being add a kernel
feature allowing to enable it.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszew...@linaro.org>
---
 features/gpio/sysfs.cfg | 5 +++++
 features/gpio/sysfs.scc | 6 ++++++
 2 files changed, 11 insertions(+)
 create mode 100644 features/gpio/sysfs.cfg
 create mode 100644 features/gpio/sysfs.scc

diff --git a/features/gpio/sysfs.cfg b/features/gpio/sysfs.cfg
new file mode 100644
index 00000000..bf1dc029
--- /dev/null
+++ b/features/gpio/sysfs.cfg
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: MIT
+
+CONFIG_EXPERT=y
+CONFIG_GPIOLIB=y
+CONFIG_GPIO_SYSFS=y
diff --git a/features/gpio/sysfs.scc b/features/gpio/sysfs.scc
new file mode 100644
index 00000000..4eb2f9bf
--- /dev/null
+++ b/features/gpio/sysfs.scc
@@ -0,0 +1,6 @@
+# SPDX-License-Identifier: MIT
+
+define KFEATURE_DESCRIPTION "Enable the GPIO sysfs interface at 
/sys/class/gpio"
+define KFEATURE_COMPATIBILITY all
+
+kconf non-hardware sysfs.cfg
-- 
2.45.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14564): 
https://lists.yoctoproject.org/g/linux-yocto/message/14564
Mute This Topic: https://lists.yoctoproject.org/mt/109514058/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to