blobutil: support downloading E6400 VGA ROM

For Nvidia GPU models of Dell Latitude E6400
This commit is contained in:
Leah Rowe
2023-05-06 21:21:42 +01:00
parent 0729d6e600
commit 5a197b4ff1
5 changed files with 150 additions and 9 deletions
+15 -6
View File
@@ -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