Add support for multiple winbond chip versions

This commit is contained in:
2026-04-14 09:33:15 -07:00
parent a665473903
commit a238334ae5
5 changed files with 125 additions and 21 deletions
+6
View File
@@ -20,6 +20,12 @@ SIZE_4MB=4194304
SIZE_8MB=8388608
SIZE_12MB=12582912
# Resolved flashrom chip names (set at runtime by _resolve_chip).
# Needed because some Winbond variants share a silicon ID and flashrom
# refuses to pick one without an explicit -c <chipname>.
CHIP_4MB="${CHIP_4MB:-}"
CHIP_8MB="${CHIP_8MB:-}"
# Detect the Linux distribution
detect_distro() {
if [ -f /etc/os-release ]; then