-
Notifications
You must be signed in to change notification settings - Fork 113
Eliminate Linux SUBLEVEL bump and decouple Linux image build CI #574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The workflow_dispatch event should be manually triggered periodically to build the latest Linux image. After these are merged, only the |
The Doom and Quake patches shall be applied when building rootfs.cpio by Buildroot. The patches could stored at rv32emu-prebuilt. Will do in future PR. |
6f167f3
to
9865a41
Compare
Code Review Agent Run Status
|
9865a41
to
0b8c241
Compare
Add SHA256SUM as a new checksum verifier for downloading Linux tarballs since the latest Linux tarball is available at https://cdn.kernel.org/pub/linux/kernel/v6.x/ and the official SHA256 values can be found at https://cdn.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc. To maintain compatibility with SHA1SUM, the verify function in mk/external.mk has been modified to support multiple SHA commands. Additionally, strip-components option has been added to ensure correct extraction when using tar to address variations in top-level directory structures such as the Linux tarball including a top-level directory while the Timidity tarball does not. With these changes, the Linux kernel SUBLEVEL bump is no longer necessary, and builds can be triggered via a workflow dispatch event. Afterwards, version updates of Linux will only apply to the VERSION and PATCHLEVEL.
0b8c241
to
e1b6764
Compare
Separate the Linux image build process from the build-artifact CI. The Linux image is now majorly built via a workflow dispatch event while ELF artifacts do not need to be built in the same event, thus decoupling these processes ensures that ELF artifacts are not unnecessarily rebuilt. This modular approach improves the flexibility of the artifact building workflow.
e1b6764
to
ec4a794
Compare
Code Review Agent Run Status
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thank @ChinYikMing for contributing! |
Add SHA256SUM as a new checksum verifier for downloading Linux tarballs since the latest Linux tarball is available at https://cdn.kernel.org/pub/linux/kernel/v6.x/, and the official SHA256 values can be found at https://cdn.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc. To maintain compatibility with SHA1SUM, the verify function in mk/external.mk has been modified to support multiple SHA algorithms. With these changes, the Linux kernel SUBLEVEL bump is no longer necessary and builds can be triggered via a workflow dispatch event. Afterwards, version updates of Linux will only apply to the VERSION and PATCHLEVEL.
Separate the Linux image build process from the build-artifact CI. The Linux image is now majorly built via a workflow dispatch event while ELF artifacts do not need to be built in the same event, thus decoupling these processes ensures that ELF artifacts are not unnecessarily rebuilt. This modular approach improves the flexibility of the artifact building workflow.
Summary by Bito
This pull request enhances the Linux image build process by replacing SHA1SUM with SHA256SUM for improved security. It modifies the verify function to support multiple SHA algorithms and decouples the build processes for Linux images and ELF artifacts, streamlining workflows and enhancing verification accuracy.Unit tests added: False
Estimated effort to review (1-5, lower is better): 2