Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Linux kernel as a library

Builds the Linux kernel sources as a rust crate for convenient use in your rust project. Beware of the license since this is essentially Linux.

Steps the build.rs script does for you

git clone --depth=1 https://github.com/lkl/linux.git
make -C tools/lkl
ar rcs liblinux.a tools/lkl/lib/lkl.o

To link against it in your application you can add

println!("cargo:rustc-link-lib=static=linux");

during the build.

Dependencies & Testing

For running the tests of lkl some python packages are required:

pip install junit_xml yamlish
make run-tests
cd tools/lkl

Resources

About

Wrapper to use the Linux LKL library in Rust

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages