pmb.parse.kconfig: implement anbox kconfig check (MR 1916)

fixes https://gitlab.com/postmarketOS/pmbootstrap/-/issues/1891.
This commit is contained in:
Antoine Fontaine 2020-04-13 10:51:56 +02:00 committed by Oliver Smith
parent e36e160167
commit 28da033267
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
5 changed files with 116 additions and 30 deletions

View file

@ -247,7 +247,9 @@ def kconfig(args):
if args.action_kconfig == "check":
# Handle passing a file directly
if args.file:
if pmb.parse.kconfig.check_file(args, args.package, details=True):
if pmb.parse.kconfig.check_file(args, args.package,
force_anbox_check=args.anbox,
details=True):
logging.info("kconfig check succeeded!")
return
raise RuntimeError("kconfig check failed!")
@ -273,7 +275,9 @@ def kconfig(args):
if "!pmb:kconfigcheck" in apkbuild["options"]:
skipped += 1
continue
if not pmb.parse.kconfig.check(args, package, details=True):
if not pmb.parse.kconfig.check(args, package,
force_anbox_check=args.anbox,
details=True):
error = True
# At least one failure