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