Skip to content

Commit 76a4cd7

Browse files
committed
mark bootloader images as pub
1 parent 4ac2ce8 commit 76a4cd7

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/lib.rs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,20 @@ const RAMDISK_FILE_NAME: &str = "ramdisk";
4242
const CONFIG_FILE_NAME: &str = "boot.json";
4343

4444
#[cfg(feature = "uefi")]
45-
const UEFI_BOOTLOADER: &[u8] = include_bytes!(env!("UEFI_BOOTLOADER_PATH"));
45+
/// The byte data of the UEFI bootloader
46+
pub const UEFI_BOOTLOADER: &[u8] = include_bytes!(env!("UEFI_BOOTLOADER_PATH"));
4647
#[cfg(feature = "bios")]
47-
const BIOS_BOOT_SECTOR: &[u8] = include_bytes!(env!("BIOS_BOOT_SECTOR_PATH"));
48+
/// The byte data of the BIOS boot sector
49+
pub const BIOS_BOOT_SECTOR: &[u8] = include_bytes!(env!("BIOS_BOOT_SECTOR_PATH"));
4850
#[cfg(feature = "bios")]
49-
const BIOS_STAGE_2: &[u8] = include_bytes!(env!("BIOS_STAGE_2_PATH"));
51+
/// The byte data of the second stage of the BIOS bootloader
52+
pub const BIOS_STAGE_2: &[u8] = include_bytes!(env!("BIOS_STAGE_2_PATH"));
5053
#[cfg(feature = "bios")]
51-
const BIOS_STAGE_3: &[u8] = include_bytes!(env!("BIOS_STAGE_3_PATH"));
54+
/// The byte data of the third stage of the BIOS bootloader
55+
pub const BIOS_STAGE_3: &[u8] = include_bytes!(env!("BIOS_STAGE_3_PATH"));
5256
#[cfg(feature = "bios")]
53-
const BIOS_STAGE_4: &[u8] = include_bytes!(env!("BIOS_STAGE_4_PATH"));
57+
/// The byte data of the fourth stage of the BIOS bootloader
58+
pub const BIOS_STAGE_4: &[u8] = include_bytes!(env!("BIOS_STAGE_4_PATH"));
5459

5560
/// Allows creating disk images for a specified set of files.
5661
///

0 commit comments

Comments
 (0)