diff --git a/pmb/config/__init__.py b/pmb/config/__init__.py index 6d95efe4..db4fbdc7 100644 --- a/pmb/config/__init__.py +++ b/pmb/config/__init__.py @@ -636,6 +636,20 @@ kconfig_options_filesystems = { }, } +kconfig_options_usb_gadgets = { + ">=0.0.0": { # all versions + "all": { # all arches + # disable legacy gadgets + "USB_ETH": False, + "USB_FUNCTIONFS": False, + "USB_MASS_STORAGE": False, + "USB_G_SERIAL": False, + # enable configfs gadgets + "USB_CONFIGFS_RNDIS": True, # USB networking via RNDIS + }, + }, +} + # Various other kernel config options kconfig_options_community = { ">=0.0.0": { # all versions diff --git a/pmb/parse/kconfig.py b/pmb/parse/kconfig.py index 7b1863a0..9562dd71 100644 --- a/pmb/parse/kconfig.py +++ b/pmb/parse/kconfig.py @@ -199,6 +199,7 @@ def check_config(config_path, config_arch, pkgver, components_list=[], "iwd", "netboot", "nftables", + "usb_gadgets", "waydroid", "wireguard", "zram",