Compile kernel using LLVM and enable rust support

This commit is contained in:
2025-08-22 21:35:08 +03:00
parent 3dccfd1708
commit e24274d99c
3 changed files with 40 additions and 31 deletions
+4 -4
View File
@@ -2,7 +2,7 @@
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
DOWNLOAD="https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-${BPM_PKG_VERSION}.tar.xz"
DOWNLOAD="https://cdn.kernel.org/pub/linux/kernel/v${BPM_PKG_VERSION%%.*}.x/linux-${BPM_PKG_VERSION}.tar.xz"
FILENAME="${DOWNLOAD##*/}"
# The prepare function is executed in the root of the temp directory
@@ -18,9 +18,9 @@ prepare() {
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
make olddefconfig
make
make headers
make LLVM=1 olddefconfig
make LLVM=1
make LLVM=1 headers
}
# The package function is executed in the source directory