summaryrefslogtreecommitdiff
path: root/resources/scripts/build/release/roms
diff options
context:
space:
mode:
Diffstat (limited to 'resources/scripts/build/release/roms')
-rwxr-xr-xresources/scripts/build/release/roms21
1 files changed, 15 insertions, 6 deletions
diff --git a/resources/scripts/build/release/roms b/resources/scripts/build/release/roms
index 29d651b5..81949130 100755
--- a/resources/scripts/build/release/roms
+++ b/resources/scripts/build/release/roms
@@ -66,8 +66,9 @@ for romdir in bin/*; do
grep "CONFIG_HAVE_ME_BIN=y" "resources/coreboot/${target}/config/"* || CONFIG_HAVE_ME_BIN="n"
grep "CONFIG_HAVE_MRC=y" "resources/coreboot/${target}/config/"* || CONFIG_HAVE_MRC="n"
grep "CONFIG_KBC1126_FIRMWARE=y" "resources/coreboot/${target}/config"/* || CONFIG_KBC1126_FIRMWARE="n"
+
# remove ME/MRC/EC firmware from ROM images
- if [ "${CONFIG_HAVE_ME_BIN}" = "y" ]; then
+ if [ "${CONFIG_HAVE_ME_BIN}" = "y" ] || [ "${target}" = "e6400nvidia_4mb" ]; then
if [ ! -d coreboot/default ]; then
./download coreboot default || exit 1
fi
@@ -99,14 +100,15 @@ for romdir in bin/*; do
for romfile in "${romdir}"/*.rom
do
- if [ ! -f "${romfile}" ]
- then
+ if [ ! -f "${romfile}" ]; then
continue
fi
- ${ifdtool} --nuke me "${romfile}" || exit 1
- mv "${romfile}" "${romdir}_tmp"/
- mv "${romfile}.new" "${romfile}"
+ if [ "${CONFIG_HAVE_ME_BIN}" = "y" ]; then
+ ${ifdtool} --nuke me "${romfile}" || exit 1
+ mv "${romfile}" "${romdir}_tmp"/
+ mv "${romfile}.new" "${romfile}"
+ fi
if [ "${CONFIG_HAVE_MRC}" = "y" ]
then
@@ -118,6 +120,13 @@ for romdir in bin/*; do
${cbfstool} "${romfile}" remove -n ecfw1.bin || exit 1
${cbfstool} "${romfile}" remove -n ecfw2.bin || exit 1
fi
+
+ # TODO: replace this board-specific hack
+ if [ "${target}" = "e6400nvidia_4mb" ]; then
+ ${cbfstool} "${romfile}" remove \
+ -n "pci10de,06eb.rom" \
+ || exit 1
+ fi
done
fi