diff options
| author | Leah Rowe <leah@libreboot.org> | 2024-06-28 23:33:31 +0100 | 
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2024-06-28 23:33:31 +0100 | 
| commit | ee5bab2c9abad983c5a7e4a80cde16fa8690e4e6 (patch) | |
| tree | affb5e3c0281919390834f551708ba6500ec5efe | |
| parent | f2d53eb842d7d843149b004c51c23739521f732d (diff) | |
vendor.sh: clean up GbE handling
Signed-off-by: Leah Rowe <leah@libreboot.org>
| -rwxr-xr-x | include/vendor.sh | 11 | 
1 files changed, 1 insertions, 10 deletions
diff --git a/include/vendor.sh b/include/vendor.sh index 36bea3e3..a40be542 100755 --- a/include/vendor.sh +++ b/include/vendor.sh @@ -347,8 +347,7 @@ patch_rom()  	[ "$CONFIG_INCLUDE_SMSC_SCH5545_EC_FW" = "y" ] && \  	    [ -n "$CONFIG_SMSC_SCH5545_EC_FW_FILE" ] && \  		inject "sch5545_ecfw.bin" "$CONFIG_SMSC_SCH5545_EC_FW_FILE" raw -	[ -n "$new_mac" ] && ! [ "$vrelease" = "y" ] && \ -		inject "IFD" "$CONFIG_GBE_BIN_PATH" "GbE" +	[ -n "$new_mac" ] && [ "$vrelease" != "y" ] && modify_gbe "$rom"  	printf "ROM image successfully patched: %s\n" "$1"  } @@ -367,14 +366,6 @@ inject()  	[ ! -f "$_dest" ] && [ "$nukemode" != "nuke" ] && \  		$err "inject_$dl_type: file missing, $_dest" -	if [ "$_t" = "GbE" ]; then -		x_ mkdir -p tmp -		cp "$_dest" "tmp/gbe.bin" || \ -		    $err "inject: !cp \"$_dest\" \"tmp/gbe.bin\"" -		_dest="tmp/gbe.bin" -		"$nvmutil" "$_dest" setmac "$new_mac" || \ -		    $err "inject $_dest: can't change mac address" -	fi  	if [ "$cbfsname" = "IFD" ]; then  		if [ "$nukemode" != "nuke" ]; then  			"$ifdtool" -i $_t:$_dest "$rom" -O "$rom" || \  | 
