summaryrefslogtreecommitdiff
path: root/src/optionroms.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/optionroms.c')
-rw-r--r--src/optionroms.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/optionroms.c b/src/optionroms.c
index a94b46c..37a4e6c 100644
--- a/src/optionroms.c
+++ b/src/optionroms.c
@@ -131,7 +131,8 @@ is_valid_rom(struct rom_header *rom)
if (sum != 0) {
dprintf(1, "Found option rom with bad checksum: loc=%p len=%d sum=%x\n"
, rom, len, sum);
- return 0;
+ if (CONFIG_OPTIONROMS_CHECKSUM)
+ return 0;
}
return 1;
}