Close #554: kernel config checking (#589)

* Check kernel config
* Allow specifying multiple kernel packages, and also no packages
  which defaults to scanning all kernel configs (it is super fast
  anyway)
* Add the check to Travis CI
* Adjust existing kernel configs, so they pass the kconfig_check.
(We've had to put in a lot of defaults in the aarch64
linux-postmarketos configs, that's why the diff is a bit unclean.)
* Increase modified kernel pkgrels
This commit is contained in:
Attila Szöllősi 2017-09-18 23:36:54 +02:00 committed by Oliver Smith
parent 7349874925
commit ae6a58b6ed
14 changed files with 353 additions and 91 deletions

View file

@ -27,6 +27,7 @@ import pmb.chroot.initfs
import pmb.chroot.other
import pmb.export.frontend
import pmb.helpers.frontend
import pmb.parse.kconfig
def kernel(args):
@ -34,6 +35,9 @@ def kernel(args):
flavor = pmb.helpers.frontend._parse_flavor(args)
pmb.chroot.initfs.build(args, flavor, "rootfs_" + args.device)
# Check kernel config
pmb.parse.kconfig.check(args, flavor)
# Generate the paths and run the flasher
if args.action_flasher == "boot":
logging.info("(native) boot " + flavor + " kernel")