Add build command to create an apk package from envkernel
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
Merge request reports
Activity
added type::feature label
added 3 commits
-
67254b62 - 1 commit from branch
postmarketOS:master
- b24e3ac5 - envkernel: Add build command to create an apk package from envkernel (!1747 (merged))
- 45c8ce81 - envkernel: Add run-script alias to run local scripts within the chroot (!1747 (merged))
By Oliver Smith on 2019-02-03T01:12:06
-
67254b62 - 1 commit from branch
- Resolved by Administrator
- Resolved by Administrator
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
By ryang on 2019-02-05T16:43:01
Toggle commit listadded 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
By ryang on 2019-02-05T16:46:09
Toggle commit list-
fe9b20dc...a3b826b0 - 2 commits from branch
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
By ryang on 2019-02-05T17:15:04
Toggle commit list- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
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
By Oliver Smith on 2019-02-09T20:45:38
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
By ryang on 2019-02-13T15:15:05
Toggle commit listadded 9 commits
-
27b797c6...69e2e22f - 5 commits from branch
postmarketOS:master
- cd7d6a24 - parser: Common function to read the contents of an APKBUILD file (!1747 (merged))
- 7d7a29d0 - parser: Add function to read a function from an APKBUILD (!1747 (merged))
- a6db644f - envkernel: Add build command to create an apk package from envkernel (!1747 (merged))
- 43326b55 - envkernel: Add run-script alias to run local scripts within the chroot (!1747 (merged))
By Oliver Smith on 2019-02-15T15:25:30
Toggle commit list-
27b797c6...69e2e22f - 5 commits from branch
(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!
By Oliver Smith on 2019-02-15T15:31:50
mentioned in commit wiki@3a6d3399
By postmarketOS Wiki bot on 2019-02-15T15:42:54
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.shBy ryang on 2019-02-20T14:20:26
mentioned in commit 43326b55
By ryang on 2019-02-21T18:39:45
mentioned in commit cd7d6a24
By ryang on 2019-02-21T18:39:46
mentioned in issue #1686 (closed)
By ryang on 2019-02-28T14:17:39
mentioned in issue #1999
By Oliver Smith on 2021-01-02T11:37:48