Skip to content

Commit 1ca7e3d

Browse files
RuoqingHeroypat
authored andcommitted
configurator: Re-organize module layout
Code in `fdt.rs` do not contain architecture specific code as of `aarch64`, it's only used by `aarch64`, move it one level up to allow reusing on riscv64 platform. Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
1 parent 4da46d9 commit 1ca7e3d

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

src/configurator/aarch64/mod.rs

Lines changed: 0 additions & 7 deletions
This file was deleted.
File renamed without changes.

src/configurator/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ mod x86_64;
2828
pub use x86_64::*;
2929

3030
#[cfg(target_arch = "aarch64")]
31-
mod aarch64;
32-
#[cfg(target_arch = "aarch64")]
33-
pub use aarch64::*;
31+
pub mod fdt;
32+
3433
use std::cmp::max;
3534
use std::mem::size_of;
3635

0 commit comments

Comments
 (0)