kconfig check: Add USB gadget check to community

Make sure that we disable legacy gadgets like USB_ETH. Our initramfs
uses configfs gadgets instead, currently RNDIS for USB networking.

In the future this can be expanded to more options like mass storage,
MIDI or whatever we're going to integrate into the OS that can be
configured by the user.

Reviewed-by: Oliver Smith <ollieparanoid@postmarketos.org>
Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230423163438.746054-1-luca@z3ntu.xyz%3E
This commit is contained in:
Luca Weiss 2023-04-23 18:34:39 +02:00 committed by Oliver Smith
parent 204419fe49
commit d200414d87
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 15 additions and 0 deletions

View file

@ -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

View file

@ -199,6 +199,7 @@ def check_config(config_path, config_arch, pkgver, components_list=[],
"iwd",
"netboot",
"nftables",
"usb_gadgets",
"waydroid",
"wireguard",
"zram",