Last active
April 7, 2025 23:30
-
-
Save pranav083/9dd30f1aef00cf9ec5a43d6c59b99b2d to your computer and use it in GitHub Desktop.
testing kernel with rust
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH=~/kernel-tools/llvm-19.1.7-rust-1.86.0-x86_64/bin:$PATH | |
export LIBCLANG_PATH=~/kernel-tools/llvm-19.1.7-rust-1.86.0-x86_64/lib/libclang.so | |
echo "export PATH=$llvm_prefix/bin:\$PATH" >> ~/.bashrc | |
echo "export LIBCLANG_PATH=$llvm_prefix/lib" >> ~/.bashrc | |
export PATH=$llvm_prefix/bin:$PATH | |
export RUSTC=/home/pranav/kernel-tools/llvm-19.1.7-rust-1.86.0-x86_64/bin/rustc | |
export BINDGEN=/home/pranav/kernel-tools/llvm-19.1.7-rust-1.86.0-x86_64/bin/bindgen | |
export PATH=/home/pranav/kernel-tools/llvm-19.1.7-rust-1.86.0-x86_64/bin:$PATH | |
source ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://hackerbikepacker.com/rust-in-linux-kernel-configuration
avoid this line from above setup
rustup override set $(scripts/min-tool-version.sh rustc)
make LLVM=1 KCFLAGS="-Wno-frame-larger-than" -j$(nproc) > build.log 2> error.log
rest follow from the above build