Missing build scripts in spring-v-oss kernel source
Hi Xiaomi Kernel Team,
I am working with the kernel source for the spring-v-oss branch, and I noticed that the required build scripts used to compile the kernel do not appear to be included in the published source.
At the moment, this makes it difficult to reproduce builds or properly work with the kernel as intended, since key parts of the build process seem to be missing.
Could you please:
- Provide the missing build scripts used for compiling this kernel, or
- Share documentation on the correct build process (including toolchain, configs, and steps)
This would greatly help developers and maintainers who are trying to build and contribute to the kernel.
Thanks in advance!
Hi suchit-7x,
Thank you for reaching out and for your interest in contributing to the Xiaomi Kernel Open Source project. We appreciate you bringing this to our attention. We noticed you mentioned missing build scripts for the spring-v-oss branch. Before we dive deeper, could you please confirm if you have reviewed our official standalone kernel compilation guide? The complete documentation is available at:
https://github.com/MiCode/Xiaomi_Kernel_OpenSource/wiki/How-to-compile-kernel-standalone
Hi,
Thank you for your response.
I have reviewed the provided standalone kernel compilation guide. However, it appears to be quite outdated (last updated around 2019) and applies to older non-GKI kernels.
For the spring-v-oss branch (Android V), the structure is significantly different. After analyzing the source:
- There is no clear standalone defconfig available for this device
- The repository lacks necessary build scripts typically required for standalone compilation
- The kernel appears to depend on external components (vendor modules / GKI environment), making the provided guide inapplicable
Because of this, it is currently not possible to compile the kernel using the standalone method described in the documentation.
Could you please clarify:
- Whether the spring-v-oss kernel is intended to be built standalone?
- If standalone build is supported, can you provide:
- The correct defconfig (targeted to device)
- New compilation guide for GKI kernels
- If not, is this source considered complete as per GPL requirements?
At the moment, the available source does not seem sufficient for independent kernel.
Looking forward to your clarification.
Thank you.
@mi-code
Hii Xiaomi Kernel Team,
I have successfully build kernel from source through guidance of seniors. But keeping this issue open to track improvements toward a new GKI based build guide.
Thanks!
Hi suchit-7x,
Thank you for your feedback. We're glad to hear that you've successfully built the kernel.
Regarding the GKI build process, the kernel and vendor modules are decoupled under the GKI architecture. The GKI kernel is maintained by Google, and the standard build process is publicly available at:
- https://android.googlesource.com/kernel/common/ — GKI kernel source
- https://android.googlesource.com/kernel/build/ — Build scripts and toolchain configuration (Bazel-based build is recommended)
We suggest you follow the build process provided by the Google community first. If you encounter any issues during the process, feel free to reach out and we'll be happy to assist.
Best regards, Xiaomi Kernel Team
@mi-code
Hii Xiaomi Kernel Team,
I have checked out google's gki build guide, However, the guide not compatible with MI Sources, theres too much conflicts with loadable kernel modules. So I am kindly requesting a build guide for building GKI kernel including all loadable kernel modules from MI Sources. We will appreciate, if you publish this build guide.
Thanks!