diff options
| author | Leah Rowe <leah@libreboot.org> | 2023-05-06 21:21:42 +0100 | 
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2023-05-06 22:23:27 +0100 | 
| commit | 5a197b4ff160a348179a3350af266c6b87a3aa04 (patch) | |
| tree | efd39a6332016d393aa639be07e200e9b4203119 /resources/scripts/build | |
| parent | 0729d6e600b6592e79db049576e36d1961341ea1 (diff) | |
blobutil: support downloading E6400 VGA ROM
For Nvidia GPU models of Dell Latitude E6400
Diffstat (limited to 'resources/scripts/build')
| -rwxr-xr-x | resources/scripts/build/release/roms | 21 | 
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 | 
