envkernel: Add build command to create an apk package from envkernel (!1747)

Provides a quick way to incrementally compile a kernel and push it to
device.

Example usage.

Compile the kernel:
$ cd /src/linux/
$ source /src/pmbootstrap/helpers/envkernel.sh
$ make tegra_postmarketos_defconfig
$ make -jX

Package kernel and flash to device:
$ pmbootstrap build --envkernel linux-samsung-p4wifi
$ pmbootstrap flasher flash_kernel

Modify kernel source then incremental compile, package, and flash:
$ make -jX
$ pmbootstrap build --envkernel linux-samsung-p4wifi
$ pmbootstrap flasher flash_kernel
This commit is contained in:
Robert Yang 2018-08-22 16:28:10 -04:00 committed by Oliver Smith
parent 7d7a29d032
commit a6db644f00
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
6 changed files with 373 additions and 0 deletions

View file

@ -92,6 +92,10 @@ def build(args):
if args.strict:
pmb.chroot.zap(args, False)
if args.envkernel:
pmb.build.envkernel.package_kernel(args)
return
# Set src and force
src = os.path.realpath(os.path.expanduser(args.src[0])) if args.src else None
force = True if src else args.force