From 54681098aa9d0514bef71b47123dc2af74792e95 Mon Sep 17 00:00:00 2001
From: "4 of 7 (Leah Rowe)" <info@minifree.org>
Date: Wed, 16 Nov 2016 15:47:41 +0000
Subject: build/roms/withgrub: disable loading option ROMs in SeaGRUB

This is a workaround for the PIKE2008 module on D16, in case the user forgets
to blank out the LSI ROM.
---
 resources/scripts/helpers/build/roms/withgrub_helper | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'resources/scripts/helpers/build/roms')

diff --git a/resources/scripts/helpers/build/roms/withgrub_helper b/resources/scripts/helpers/build/roms/withgrub_helper
index 8ee63146..c4e14b29 100755
--- a/resources/scripts/helpers/build/roms/withgrub_helper
+++ b/resources/scripts/helpers/build/roms/withgrub_helper
@@ -129,6 +129,9 @@ do
         # that horrible interface that seabios has
         ./util/cbfstool/cbfstool "${boardtarget}_${romtype}.rom" add-int -i 0 -n etc/show-boot-menu || "already exists"
 
+        # Add a file to CBFS that tells SeaBIOS not to load option ROMs
+        ./util/cbfstool/cbfstool "${boardtarget}_${romtype}.rom" add-int -i 0 -n etc/pci-optionrom-exec || "already exists"
+
         # keyboard spinup timeout
        ./util/cbfstool/cbfstool "${boardtarget}_${romtype}.rom" remove -n etc/ps2-keyboard-spinup || printf "does not exist"
        ./util/cbfstool/cbfstool "${boardtarget}_${romtype}.rom" add-int -i 3000 -n etc/ps2-keyboard-spinup || printf "already exists"
-- 
cgit v1.2.3-70-g09d2