chore(code): sbat section generator build tool

This commit is contained in:
2025-11-03 22:37:06 -05:00
parent 632781abbf
commit 9a803ad355
10 changed files with 111 additions and 68 deletions

View File

@@ -0,0 +1,6 @@
/// Define the SBAT attestation by including the sbat.csv file.
/// See this document for more details: https://github.com/rhboot/shim/blob/main/SBAT.md
/// NOTE: This data must be aligned by 512 bytes.
#[used]
#[unsafe(link_section = ".sbat")]
static SBAT: [u8; {size}] = *include_bytes!(concat!(env!("OUT_DIR"), "/sbat.out"));