fix: update checksums for toolchain dependencies and enhance documentation on checksum verification

This commit is contained in:
maksyuki committed 2026-07-10 18:52:31 +08:00
1 parent 467ff803e7
commit 2d9922d87b
2 files changed
+17 -4

No files matched your search

+4 -4
View File
@@ -80,7 +80,7 @@
"verilator": { "verilator": {
"version": "5.046", "version": "5.046",
"url": "https://github.com/retroSoC/artifact/releases/download/verilator-v5.046/verilator-v5.046-ubuntu-22.04-gcc.tar.gz", "url": "https://github.com/retroSoC/artifact/releases/download/verilator-v5.046/verilator-v5.046-ubuntu-22.04-gcc.tar.gz",
"sha256": "f91b8496a0aaf26bf72395e876e145ceb99c94ff724cc9a16bb81d243ce5d953", "sha256": "17e88e100e82b9450040dabee7efaf49a834e8736fda4bbe1036aecd1c4aeb57",
"archive": "verilator-v5.046-ubuntu-22.04-gcc.tar.gz", "archive": "verilator-v5.046-ubuntu-22.04-gcc.tar.gz",
"path": "bin" "path": "bin"
}, },
@@ -94,21 +94,21 @@
"iverilog": { "iverilog": {
"version": "13.0", "version": "13.0",
"url": "https://github.com/retroSoC/artifact/releases/download/iverilog-v13_0/iverilog-v13_0-ubuntu-22.04-gcc.tar.gz", "url": "https://github.com/retroSoC/artifact/releases/download/iverilog-v13_0/iverilog-v13_0-ubuntu-22.04-gcc.tar.gz",
"sha256": "22b51e988a94abdd0cd94f31f804a9bd6183e98d9380799ad3441188abc12987", "sha256": "16fe3ce5ce7b16cc3e8d7d3756c4f9ad02f678a8f81bb43dd9473bde2e7fc81b",
"archive": "iverilog-v13_0-ubuntu-22.04-gcc.tar.gz", "archive": "iverilog-v13_0-ubuntu-22.04-gcc.tar.gz",
"path": "bin" "path": "bin"
}, },
"yosys": { "yosys": {
"version": "0.58", "version": "0.58",
"url": "https://github.com/retroSoC/artifact/releases/download/yosys-v0.58/yosys-v0.58-ubuntu-22.04-gcc.tar.gz", "url": "https://github.com/retroSoC/artifact/releases/download/yosys-v0.58/yosys-v0.58-ubuntu-22.04-gcc.tar.gz",
"sha256": "589447b6ed9aa20a1cc90155851f809490815089e5cc181ed4d23a5389b65adb", "sha256": "54468eb1fe474b11b8014fcabb068bf1398eaa072fa724b26e09dd2df58c3386",
"archive": "yosys-v0.58-ubuntu-22.04-gcc.tar.gz", "archive": "yosys-v0.58-ubuntu-22.04-gcc.tar.gz",
"path": "bin" "path": "bin"
}, },
"opensta": { "opensta": {
"version": "2.2.0-1767-ga93b51ec", "version": "2.2.0-1767-ga93b51ec",
"url": "https://github.com/retroSoC/artifact/releases/download/opensta-v2.2.0-1767-ga93b51ec/opensta-v2.2.0-1767-ga93b51ec-ubuntu-22.04-gcc.tar.gz", "url": "https://github.com/retroSoC/artifact/releases/download/opensta-v2.2.0-1767-ga93b51ec/opensta-v2.2.0-1767-ga93b51ec-ubuntu-22.04-gcc.tar.gz",
"sha256": "e8b17134cd0935d2f5d354e8233c27833834141f2aef44264a1ad5d2cca0623b", "sha256": "ab9f023eb46ed6197f8bd88584e77c26c31a728640db02b50908fac5bf9f279a",
"archive": "opensta-v2.2.0-1767-ga93b51ec-ubuntu-22.04-gcc.tar.gz", "archive": "opensta-v2.2.0-1767-ga93b51ec-ubuntu-22.04-gcc.tar.gz",
"path": "bin" "path": "bin"
}, },
+13
View File
@@ -30,6 +30,19 @@ To update a dependency:
Do not reuse an old checksum with a new URL or version. The lock digest is part of every variant ID, Do not reuse an old checksum with a new URL or version. The lock digest is part of every variant ID,
so changing the lock creates a new output directory without contaminating prior results. so changing the lock creates a new output directory without contaminating prior results.
For binary tool archives, calculate the checksum from a fresh download of the exact URL in the lock;
never derive it from an already-installed local tool or a separately cached archive. Before committing
a toolchain lock update, install every affected tool into an empty temporary cache and check its
reported version. This is the same checksum and safe-extraction path exercised by CI:
```sh
python3 scripts/install_toolchain.py \
--lock config/dependencies.lock.json --platform ubuntu-22.04 \
--cache /tmp/retrosoc-toolchain-verify \
--tool verilator --tool sv2v --tool iverilog \
--tool yosys --tool opensta --tool riscv_gnu
```
## Build Layout ## Build Layout
The variant identifier is the profile name plus a hash over effective hardware/software build The variant identifier is the profile name plus a hash over effective hardware/software build