Kernel source tree for AvaotaSBC-provided kernel builds.
Kernel Source | Kernel Type | Kernel Source | Kernel Version |
---|---|---|---|
Linux 5.10 LTS | Linux LTS Kernel | https://cdn.kernel.org/pub/linux/kernel/v5.x/ | linux-5.10.214 |
Linux 5.15 LTS | Linux LTS Kernel | https://cdn.kernel.org/pub/linux/kernel/v5.x/ | linux-5.15.161 |
Linux 6.1 AOSP | Android Common Kernels | https://android.googlesource.com/kernel/common/+/refs/heads/android14-6.1-2023-10 | android14-6.1-2023-10 |
openEuler-22.03-LTS-SP2 | openEuler 22.03 LTS SP2 Kernel | https://gitee.com/openeuler/kernel.git | openEuler 22.03 LTS SP2 |
In the Kernel repo, we use Github Action to release kernel source code, and provide latest update of kernel
This GitHub Actions workflow aims to merge different versions of the Linux kernel under specific conditions—either when code is pushed to the main
branch or when a pull_request
is created with the target branch being main
.
Here's a breakdown of its purpose:
- When the triggering conditions are met, the workflow starts executing.
- It runs on the latest version of Ubuntu.
- It uses the
actions/checkout@v3
action to fetch the latest version of the code repository. - Git username and email are set to "GitHub Actions" and "actions@github.com" respectively.
- The
init.sh
script is executed to merge version 5.15 of the Linux kernel. This script requires parameters specifying the URL for downloading the kernel, the patch file, version number, and branch name. - The
ad-m/github-push-action@master
action is utilized to push the merged code to a branch namedlinux-5.15
, with the specified directory beingkernel/dst/linux-5.15/linux-5.15
.
In summary, this workflow automates the merging of specified versions of the Linux kernel and pushes the merged code to the corresponding branch, facilitating automated code management and updates.
This shell script init.sh
performs several tasks related to managing Linux kernel source code:
- It initializes various variables such as
HOST_ARCH
,ROOT_PATH
,DATE
,PATCH_PATH
, andTARBALL
. - It sets default parameters using the
default_param
function and parses command-line arguments using theparseargs
function. - It displays the system architecture on which the script is running.
- It creates a directory for the specified kernel version and downloads the corresponding kernel source code from the provided URL.
- It unarchives the downloaded kernel source code and copies BSP (Board Support Package) files into the kernel directory.
- It applies patches to the kernel source code.
- It clones an old version of the kernel from a Git repository and merges it with the newly downloaded kernel.
- Finally, it commits the changes to the Git repository with a message containing the current date and "Kernel update".
Overall, this script automates the process of downloading, patching, and merging Linux kernel source code for development or customization purposes.
Usage: init [OPTIONS]
Build Kernel repo.
Options:
-u, --url URL The url of kernel
-v, --version VERSION The version of kernel
-p, --patch PATCHFILE The patch file of kernel
-b, --branch BRANCH NAME The branch of dst kernel
-h, --help Show command help.