For USB gadget configfs support. Enabling same features
as kernel.org arm64 defconfig. Enabling as modules
since this feature should not be needed for mounting
rootfs.

Signed-off-by: Mikko Rapeli <[email protected]>
---
 features/usb/usb-configfs.cfg | 13 +++++++++++++
 features/usb/usb-configfs.scc | 10 ++++++++++
 kern-features.rc              |  1 +
 3 files changed, 24 insertions(+)
 create mode 100644 features/usb/usb-configfs.cfg
 create mode 100644 features/usb/usb-configfs.scc

diff --git a/features/usb/usb-configfs.cfg b/features/usb/usb-configfs.cfg
new file mode 100644
index 00000000..06153c1d
--- /dev/null
+++ b/features/usb/usb-configfs.cfg
@@ -0,0 +1,13 @@
+# SPDX-License-Identifier: MIT
+CONFIG_USB_GADGET=m
+CONFIG_USB_CONFIGFS=m
+CONFIG_USB_CONFIGFS_SERIAL=y
+CONFIG_USB_CONFIGFS_ACM=y
+CONFIG_USB_CONFIGFS_OBEX=y
+CONFIG_USB_CONFIGFS_NCM=y
+CONFIG_USB_CONFIGFS_ECM=y
+CONFIG_USB_CONFIGFS_ECM_SUBSET=y
+CONFIG_USB_CONFIGFS_RNDIS=y
+CONFIG_USB_CONFIGFS_EEM=y
+CONFIG_USB_CONFIGFS_MASS_STORAGE=y
+CONFIG_USB_CONFIGFS_F_FS=y
diff --git a/features/usb/usb-configfs.scc b/features/usb/usb-configfs.scc
new file mode 100644
index 00000000..06a4aff7
--- /dev/null
+++ b/features/usb/usb-configfs.scc
@@ -0,0 +1,10 @@
+# SPDX-License-Identifier: MIT
+define KFEATURE_DESCRIPTION "Enable USB gadget configfs modules"
+define KFEATURE_COMPATIBILITY board
+
+include usb-base.scc
+
+# Some gadgets require one or more of the following:
+# NET, BLOCK, VIDEO_DEV
+
+kconf hardware usb-configfs.cfg
diff --git a/kern-features.rc b/kern-features.rc
index 8c4da13f..0d88aa15 100644
--- a/kern-features.rc
+++ b/kern-features.rc
@@ -97,6 +97,7 @@
        config = features/kgdb/kgdb.scc
        config = features/vrf/vrf.scc
        config = features/usb/usb-gadgets.scc
+       config = features/usb/usb-configfs.scc
        config = features/usb/serial-all.scc
        config = features/usb/designware-usb3.scc
        config = features/usb/usb-dummy-hcd.scc
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#15954): 
https://lists.yoctoproject.org/g/linux-yocto/message/15954
Mute This Topic: https://lists.yoctoproject.org/mt/116254764/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to