pmb.parse.kconfig: add wireguard, filesystems & more to community check

Add wireguard options, supported file systems and some extra options to
the community kconfig check.

Reviewed-by: Oliver Smith <ollieparanoid@postmarketos.org>
Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20221105074432.13804-1-luca@z3ntu.xyz%3E
This commit is contained in:
Luca Weiss 2022-11-05 08:44:32 +01:00 committed by Oliver Smith
parent 6f45a5d5fb
commit 381a1ca907
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
2 changed files with 48 additions and 0 deletions

View File

@ -576,6 +576,51 @@ necessary_kconfig_options_netboot = {
},
}
# Necessary wireguard & wg-quick kernel config options
# From https://gitweb.gentoo.org/repo/gentoo.git/tree/net-vpn/wireguard-tools/wireguard-tools-1.0.20210914.ebuild?id=76aaa1eeb6f001baaa68e6946f917ebb091bbd9d # noqa
necessary_kconfig_options_wireguard = {
">=5.6_rc1": { # all versions
"all": { # all arches
"WIREGUARD": True,
"IP_ADVANCED_ROUTER": True,
"IP_MULTIPLE_TABLES": True,
"IPV6_MULTIPLE_TABLES": True,
"NF_TABLES": True,
"NF_TABLES_IPV4": True,
"NF_TABLES_IPV6": True,
"NFT_CT": True,
"NFT_FIB": True,
"NFT_FIB_IPV4": True,
"NFT_FIB_IPV6": True,
"NF_CONNTRACK_MARK": True,
},
},
}
# Necessary file system config options
necessary_kconfig_options_filesystems = {
">=0.0.0": { # all versions
"all": { # all arches
"BTRFS_FS": True,
"EXFAT_FS": True,
"EXT4_FS": True,
"F2FS_FS": True,
},
},
}
# Various other kernel config options
necessary_kconfig_options_community = {
">=0.0.0": { # all versions
"all": { # all arches
"INPUT_UINPUT": True, # buffyboard
"LEDS_TRIGGER_TIMER": True, # hfd-service
"NETFILTER_XT_MATCH_TCPMSS": True, # change MTU, e.g. for Wireguard
"NETFILTER_XT_TARGET_TCPMSS": True, # change MTU, e.g. for Wireguard
},
},
}
# Necessary UEFI boot config options
necessary_kconfig_options_uefi = {
">=0.0.0": { # all versions

View File

@ -120,6 +120,9 @@ def check_config(config_path, config_path_pretty, config_arch, pkgver,
pmb.config.necessary_kconfig_options_containers
components["zram"] = pmb.config.necessary_kconfig_options_zram
components["netboot"] = pmb.config.necessary_kconfig_options_netboot
components["wireguard"] = pmb.config.necessary_kconfig_options_wireguard
components["filesystems"] = pmb.config.necessary_kconfig_options_filesystems
components["community"] = pmb.config.necessary_kconfig_options_community
if uefi:
components["uefi"] = pmb.config.necessary_kconfig_options_uefi