xref: /DragonOS/build-scripts/kernel_build/src/lib.rs (revision fae6e9ade46a52976ad5d099643d51cc20876448)
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