Add kconfig check for containers (MR 2060)

Usage: pmbootstrap kconfig check --containers linux-postmarketos-qcom-msm8974
This commit is contained in:
Alexey Min 2021-06-02 00:24:04 +03:00 committed by Oliver Smith
parent 716336e30b
commit 687807fa73
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
5 changed files with 140 additions and 10 deletions

View file

@ -376,6 +376,7 @@ def kconfig(args):
if pmb.parse.kconfig.check_file(args, args.package,
anbox=args.anbox,
nftables=args.nftables,
containers=args.containers,
details=True):
logging.info("kconfig check succeeded!")
return
@ -403,10 +404,12 @@ def kconfig(args):
if "!pmb:kconfigcheck" in apkbuild["options"]:
skipped += 1
continue
if not pmb.parse.kconfig.check(args, package,
force_anbox_check=args.anbox,
force_nftables_check=args.nftables,
details=True):
if not pmb.parse.kconfig.check(
args, package,
force_anbox_check=args.anbox,
force_nftables_check=args.nftables,
force_containers_check=args.containers,
details=True):
error = True
# At least one failure