Kernel manifest for onyx builds
  • C 79.3%
  • Python 16.5%
  • Shell 4.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
zenin1504 ce1860392a Point the prebuilt update at device_xiaomi_onyx-kernel
The prebuilt kernel and scripts/update-prebuilt.sh moved from
device_xiaomi_onyx to device_xiaomi_onyx-kernel.

Assisted-by: LLM
Change-Id: Ibb77d59eaeda2acef1c6eb2ab47bc5b190fdf806
2026-12-06 09:14:34 +01:00
tools build-prebuilt: Publish kernelsu.ko to the ksulkm release 2026-12-03 12:36:35 +01:00
.gitignore kernel: Add onyx prebuilt build manifest 2026-11-30 23:45:00 +08:00
build-prebuilt.sh Point the prebuilt update at device_xiaomi_onyx-kernel 2026-12-06 09:14:34 +01:00
default.xml kernel: Add onyx prebuilt build manifest 2026-11-30 23:45:00 +08:00
README.md Point the prebuilt update at device_xiaomi_onyx-kernel 2026-12-06 09:14:34 +01:00

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.