- C 79.3%
- Python 16.5%
- Shell 4.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
The prebuilt kernel and scripts/update-prebuilt.sh moved from device_xiaomi_onyx to device_xiaomi_onyx-kernel. Assisted-by: LLM Change-Id: Ibb77d59eaeda2acef1c6eb2ab47bc5b190fdf806 |
||
| tools | ||
| .gitignore | ||
| build-prebuilt.sh | ||
| default.xml | ||
| README.md | ||
onyx kernel build manifest
Separate manifest for building the onyx kernel artifacts from source.
It is a normal repo manifest, so a single repo init is enough.
The ROM manifest is not modified.
Init
repo init -u https://zenin.crwnd.dev/xiaomi-sm8735-dev/kernel_manifest -b oss-prebuilt
Sync
repo sync -c --force-sync --no-tags --no-clone-bundle -j$(nproc)
This manifest replaces the AOSP common kernel with kernel_xiaomi_sm8735
and adds the onyx external modules, devicetrees, and clang-r596125 at the
pinned revision. Bazel/Kleaf projects and the kernel superproject are
intentionally left out — the artifacts are built with plain make instead.
Build
From the repository workspace root:
.repo/manifests/build-prebuilt.sh ~/kernel
The script builds the kernel image, devicetrees, DTBO, and external modules with
ThinLTO and clang-r596125 from prebuilts/clang/host/linux-x86/clang-r596125, then stages
them for the device update script. Built artifacts are placed in:
out/dist/
After a successful build the script offers to publish kernelsu.ko to the
lkm release
on ksulkm. To upload an existing module without rebuilding:
.repo/manifests/tools/publish-ksulkm.sh out/dist/modules/kernelsu.ko
Update device prebuilt
From the
device_xiaomi_onyx-kernel
checkout (device/xiaomi/onyx-kernel):
scripts/update-prebuilt.sh ~/kernel
The script stages and validates the artifacts, then replaces them in that
repository, keeping headers_stub/. It does not commit or push.