xref: /DragonOS/build-scripts/kernel_build/src/bindgen/arch/riscv64.rs (revision d8e29bffeee4fe4fe76ead3c761dd03f5395e6c2)
1 use super::BindgenArch;
2 
3 pub struct RiscV64BindgenArch;
4 impl BindgenArch for RiscV64BindgenArch {
5     fn generate_bindings(&self, builder: bindgen::Builder) -> bindgen::Builder {
6         builder
7             .clang_arg("-I./src/arch/riscv64/include")
8             .clang_arg("--target=riscv64-none-none-elf")
9     }
10 }
11