feat(bls): basic support for boot loader interface

This commit is contained in:
2025-10-28 23:23:12 -04:00
parent f82d24a206
commit e7d2438e5f
4 changed files with 78 additions and 19 deletions

View File

@@ -182,13 +182,17 @@ fn run() -> Result<()> {
for (name, generator) in config.generators {
let context = context.fork().freeze();
// We will prefix all entries with [name]-.
// We will prefix all entries with [name]-, provided the name is not pinned.
let prefix = format!("{}-", name);
// Add all the entries generated by the generator to the entry list.
// The generator specifies the context associated with the entry.
for mut entry in generators::generate(context.clone(), &generator)? {
entry.prepend_name_prefix(&prefix);
// If the entry name is not pinned, prepend the name prefix.
if !entry.is_pin_name() {
entry.prepend_name_prefix(&prefix);
}
entries.push(entry);
}
}