Add config option to disable scanning for option roms.
diff --git a/src/config.h b/src/config.h
index 745a996..f7d058c 100644
--- a/src/config.h
+++ b/src/config.h
@@ -46,6 +46,8 @@
#define CONFIG_LPT 1
// Support int 16 keyboard calls
#define CONFIG_KEYBOARD 1
+// Support finding and running option roms during post.
+#define CONFIG_OPTIONROMS 1
// Support an interactive boot menu at end of post.
#define CONFIG_BOOTMENU 1
diff --git a/src/post.c b/src/post.c
index 93d8210..54b273f 100644
--- a/src/post.c
+++ b/src/post.c
@@ -225,6 +225,9 @@
static void
rom_scan(u32 start, u32 end)
{
+ if (! CONFIG_OPTIONROMS)
+ return;
+
u8 *p = (u8*)start;
for (; p <= (u8*)end; p += 2048) {
u8 *rom = p;