forked from Mirror/pmbootstrap
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:
parent
7d7a29d032
commit
a6db644f00
6 changed files with 373 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue