Operator scripts. The tools in ../tools/ do the work; these wrap
them into the things you actually want to run.
There is no CI in any BootBench repository — these scripts replace it. Nothing here commits or pushes; each one prints the git commands to publish what it changed.
| Script | Does |
|---|---|
run-all-tools.sh |
Run every tool against a scratch directory and report what each produced. Read-only. |
update-oss-bootloaders.sh |
Regenerate oss-bootloaders/table.md. |
update-bootloader-cve-db.sh |
Refresh the CVE database from cvelistV5, with a diff to review first. |
update-bootloader-vuln-commits.sh |
Re-mine the bootloader histories for vulnerability fixes. |
update-papers.sh |
Re-run the literature search, regenerating PAPERS.md. |
add-bootloaders.sh |
Add the bootloaders in tools/new_bootloaders.json to oss-bootloaders. |
add-analysis-tools.sh |
Add the tools in tools/analysis_tools.json under analysis-tools/. |
analysis/run-tool.sh |
Run one of the analysis tools against a bootloader. See analysis/. |
publish-wiki.sh |
Push the generated wiki to the GitHub wiki repository. |
check-diagrams.sh |
Validate the wiki figures: SVG timelines and Mermaid diagrams. |
Common flags: -y skips the confirmation prompt, --dry-run on the add-*
scripts lists what would be added, --stage-only on the update-* refresh
scripts stops after staging.
scripts/ builds and checks the dataset. Running the analysis tools against
a bootloader is analysis/run-tool.sh:
./scripts/analysis/run-tool.sh --list # what runs, what is blocked, and why
./scripts/analysis/run-tool.sh codeql kexec-toolsEverything there works through docker, so the host needs no toolchain. See
analysis/README.md, and
analysis/PATCHES.md for what the harder tools need.
A GitHub wiki is a separate git repository — <repo>.wiki.git — not a
folder in the main one, so wiki/ does not appear on GitHub by itself. Two
things have to happen on github.com first:
- Settings → General → Features → tick Wikis
- Open the Wiki tab and save any page. The wiki repository does not exist until a first page is saved, so cloning before that fails.
Then:
./scripts/publish-wiki.sh --dry-run # stage and show what would change
./scripts/publish-wiki.sh # asks before pushingBefore publishing, ./scripts/check-diagrams.sh validates the figures: the SVG
boot timelines for well-formed XML and for matching what the pages reference,
and the Mermaid overview diagrams through the real renderer, since GitHub
renders those itself and a syntax error would otherwise surface as a broken
page. The Mermaid half needs Docker.
The figures live in figures/ and are copied to the wiki repository alongside
the pages. Only pages have to be flat in a GitHub wiki; files a page
references may be nested.
It regenerates the pages with --flat first. GitHub wiki pages are addressed
by filename, so the checked-in wiki/bootloaders/u-boot.md becomes
Bootloaders-u-boot.md there, and links are rewritten to match.
./scripts/run-all-tools.sh # everything, into a scratch dir
./scripts/run-all-tools.sh --skip-network # no dblp queryTools that need a submodule you have not checked out are skipped with a note, not failed. Dataset validation findings are reported but do not fail the run — they are data problems, not tool problems.
Each refresh stages outside the submodule, prints a diff, and asks before writing:
./scripts/update-bootloader-cve-db.sh # clones cvelistV5 if needed
./scripts/update-bootloader-cve-db.sh --stage-only # diff, then stopRead the RELABELLED section before answering yes. It lists CVEs that changed
bootloader type, which is the dataset's central claim about a CVE and the thing
a keyword-list edit can silently change.
Commit mining needs the full corpus checked out, which is large:
git -C oss-bootloaders submodule update --init --recursive
./scripts/update-bootloader-vuln-commits.shBoth add-* scripts are driven by a JSON manifest, so adding something means
editing the manifest and re-running:
./scripts/add-bootloaders.sh --dry-run # what would be added
./scripts/add-bootloaders.sh # add them
./scripts/add-bootloaders.sh --only oreboot # just oneadd-bootloaders.sh regenerates table.md afterwards. After
add-analysis-tools.sh, regenerate the index:
python3 tools/generate_tools_table.py --output analysis-tools/README.mdIt writes table.md and stops. The retired CI also concatenated
description.md + table.md into README.md, which would replace the curated
bootloader list with empty sections while description.md is a stub. The script
refuses to do that until description.md has real prose in it.