Skip to content
Snippets Groups Projects

Add build command to create an apk package from envkernel

Merged Imported Administrator requested to merge feature/envkernel-packaging into master
All threads resolved!

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  
Edited by Administrator

Merge request reports

Approval is optional

Merged by AdministratorAdministrator 6 years ago (Feb 15, 2019 3:32pm UTC)

Merge details

  • Changes merged into master with 43326b55.
  • Deleted the source branch.

Pipeline #189602 passed

Pipeline passed for 43326b55 on master

Deployed to dep‎loy‎ 6 months ago

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Administrator
  • Administrator added 4 commits · Imported

    added 4 commits

    • dfad9b29 - parser: Common function to read the contents of an APKBUILD file
    • 5696e1d4 - parser: Add function to read a function from an APKBUILD
    • 6e761929 - envkernel: Add build command to create an apk package from envkernel
    • fe9b20dc - envkernel: Add run-script alias to run local scripts within the chroot

    Compare with previous version

    By ryang on 2019-02-05T16:43:01

  • Administrator added 6 commits · Imported

    added 6 commits

    • fe9b20dc...a3b826b0 - 2 commits from branch postmarketOS:master
    • 0cffbb29 - parser: Common function to read the contents of an APKBUILD file
    • 9b46e0eb - parser: Add function to read a function from an APKBUILD
    • d4926aab - envkernel: Add build command to create an apk package from envkernel
    • bf433efe - envkernel: Add run-script alias to run local scripts within the chroot

    Compare with previous version

    By ryang on 2019-02-05T16:46:09

  • Administrator added 4 commits · Imported

    added 4 commits

    • fb8faad2 - parser: Common function to read the contents of an APKBUILD file
    • fa2db39d - parser: Add function to read a function from an APKBUILD
    • f3c3e3a5 - envkernel: Add build command to create an apk package from envkernel
    • b87ff928 - envkernel: Add run-script alias to run local scripts within the chroot

    Compare with previous version

    By ryang on 2019-02-05T17:15:04

  • Administrator changed the description · Imported

    changed the description

    By Oliver Smith on 2019-02-09T20:42:46

  • Administrator
  • Administrator
  • Administrator
  • Administrator
  • Administrator
  • Administrator
  • Administrator
  • Administrator
  • Administrator
  • Administrator
  • Administrator
  • Administrator
  • Administrator
  • Administrator
  • Administrator
  • Administrator
  • Administrator
  • Administrator
  • Administrator
  • Administrator
  • Administrator
  • Administrator
  • Author Owner

    As always your patches have excellent quality and most of my points are nitpicks. It's great that you have added test cases and refactored the APKBUILD file reading. And of course this is a super useful feature in general.

    Keep up that amazing stuff @ryang2678 :tada:

    By Oliver Smith on 2019-02-09T20:45:38

  • Administrator added 4 commits · Imported

    added 4 commits

    • 1d3da8ba - parser: Common function to read the contents of an APKBUILD file
    • c730d42c - parser: Add function to read a function from an APKBUILD
    • a1fc7ee6 - envkernel: Add build command to create an apk package from envkernel
    • 27b797c6 - envkernel: Add run-script alias to run local scripts within the chroot

    Compare with previous version

    By ryang on 2019-02-13T15:15:05

  • Administrator added 9 commits · Imported

    added 9 commits

    Compare with previous version

    By Oliver Smith on 2019-02-15T15:25:30

  • Administrator resolved all discussions · Imported

    resolved all discussions

    By Oliver Smith on 2019-02-15T15:25:37

  • Author Owner

    (envkernel.sh did not mention "run-script" in the list of aliases output, I've added it there.)

    I've linked to this MR in the wiki: https://wiki.postmarketos.org/wiki/Mainlining_Guide#envkernel.sh

    envkernel.sh supports quite a few features now, especially with the complete workflow you have described here. I think it deserves its own wiki page, in case somebody wants to start it. (Otherwise, the references to the advanced features are linked, so it's good enough for now.)

    Tested and working both the pmbootstrap command, as well as run-script, and it is working as expected. Thanks again @ryang2678! :tada:

    By Oliver Smith on 2019-02-15T15:31:50

  • Administrator merged · Imported

    merged

    By Oliver Smith on 2019-02-15T15:32:35

  • Administrator mentioned in commit wiki@3a6d3399 · Imported

    mentioned in commit wiki@3a6d3399

    By postmarketOS Wiki bot on 2019-02-15T15:42:54

  • Author Owner

    envkernel.sh supports quite a few features now, especially with the complete workflow you have described here. I think it deserves its own wiki page, in case somebody wants to start it. (Otherwise, the references to the advanced features are linked, so it's good enough for now.)

    I've started a page here.
    https://wiki.postmarketos.org/wiki/Compiling_kernels_with_envkernel.sh

    By ryang on 2019-02-20T14:20:26

  • Administrator mentioned in commit 43326b55 · Imported

    mentioned in commit 43326b55

    By ryang on 2019-02-21T18:39:45

  • Administrator mentioned in commit cd7d6a24 · Imported

    mentioned in commit cd7d6a24

    By ryang on 2019-02-21T18:39:46

  • Author Owner

    Awesome work! I've linked to it from the mainlining guide, and removed the "see also" part to the new page.

    By Oliver Smith on 2019-02-27T19:19:33

  • Administrator mentioned in issue #1686 (closed) · Imported

    mentioned in issue #1686 (closed)

    By ryang on 2019-02-28T14:17:39

  • Administrator mentioned in issue #1999 · Imported

    mentioned in issue #1999

    By Oliver Smith on 2021-01-02T11:37:48

  • Please register or sign in to reply
    Loading