From 5a197b4ff160a348179a3350af266c6b87a3aa04 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 6 May 2023 21:21:42 +0100 Subject: blobutil: support downloading E6400 VGA ROM For Nvidia GPU models of Dell Latitude E6400 --- resources/scripts/build/release/roms | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'resources/scripts/build/release/roms') 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 -- cgit v1.2.1