xref: /DragonOS/build-scripts/kernel_build/src/lib.rs (revision 406099704eb939ae23b18f0cfb3ed36c534c1c84)
1 #[macro_use]
2 extern crate lazy_static;
3 extern crate cc;
4 
5 mod bindgen;
6 mod cfiles;
7 mod constant;
8 mod kconfig;
9 mod utils;
10 
11 /// 运行构建
12 pub fn run() {
13     println!("cargo:rustc-link-search=src");
14 
15     crate::bindgen::generate_bindings();
16     crate::cfiles::CFilesBuilder::build();
17     crate::kconfig::KConfigBuilder::build();
18 }
19