diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-09-10 21:21:25 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-09-10 21:21:25 +0800 |
| commit | d7e663631240928a8fcd56dc173661c12aaec7b6 (patch) | |
| tree | be84615458240810e009e2f6fa289ec824c2d52f /x/build.rs | |
| parent | f07ff5fad29c63fc4e332afcb08f99fff3df3e0c (diff) | |
rustfmtmain
Diffstat (limited to 'x/build.rs')
| -rw-r--r-- | x/build.rs | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -9,17 +9,19 @@ fn main() { // create an UEFI disk image (optional) let uefi_path = out_dir.join("uefi.img"); - bootloader::UefiBoot::new(&kernel) - .create_disk_image(&uefi_path) - .unwrap(); + bootloader::UefiBoot::new(&kernel).create_disk_image(&uefi_path).unwrap(); // create a BIOS disk image let bios_path = out_dir.join("bios.img"); - bootloader::BiosBoot::new(&kernel) - .create_disk_image(&bios_path) - .unwrap(); + bootloader::BiosBoot::new(&kernel).create_disk_image(&bios_path).unwrap(); // pass the disk image paths as env variables to the - println!("cargo:rustc-env=UEFI_PATH={}", uefi_path.display()); - println!("cargo:rustc-env=BIOS_PATH={}", bios_path.display()); + println!( + "cargo:rustc-env=UEFI_PATH={}", + uefi_path.display() + ); + println!( + "cargo:rustc-env=BIOS_PATH={}", + bios_path.display() + ); } |
