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