summaryrefslogtreecommitdiff
path: root/include/vendor.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-28 21:31:40 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-28 21:31:40 +0100
commit08bce7ad3b26706fc6d445bd226fe4e4c5851f5e (patch)
tree6870d1d3f809d22bee953b3e930b30ca9aab02ee /include/vendor.sh
parent636b86237fc778825a1f3b86f0f4c8dafd3a44e7 (diff)
vendor.sh: minor code cleanup
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/vendor.sh')
-rwxr-xr-xinclude/vendor.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/vendor.sh b/include/vendor.sh
index fd726acb..22d5a76d 100755
--- a/include/vendor.sh
+++ b/include/vendor.sh
@@ -343,8 +343,6 @@ patch_release_roms()
patch_rom()
{
- rom="$1"
-
. "$(check_defconfig "$boarddir")" 2>/dev/null || exit 0
[ "$CONFIG_HAVE_MRC" = "y" ] && inject "mrc.bin" "$CONFIG_MRC_FILE" \
@@ -366,7 +364,7 @@ patch_rom()
[ "$modifygbe" = "true" ] && ! [ "$vrelease" = "y" ] && \
inject "IFD" "$CONFIG_GBE_BIN_PATH" "GbE"
- printf "ROM image successfully patched: %s\n" "$rom"
+ printf "ROM image successfully patched: %s\n" "$1"
}
inject()
@@ -426,7 +424,6 @@ modify_gbe()
[ -z "$CONFIG_GBE_BIN_PATH" ] && \
err "modify_gbe: $board: CONFIG_GBE_BIN_PATH not set"
- rom="$1"
_gbe_location=${CONFIG_GBE_BIN_PATH##*../}
[ -f "$_gbe_location" ] || \
err "modify_gbe: $_gbe_location points to missing file"
@@ -435,7 +432,7 @@ modify_gbe()
_gbe_tmp=$(mktemp -t gbeXXXX.bin)
x_ cp "$_gbe_location" "$_gbe_tmp"
x_ "$nvmutil" "$_gbe_tmp" setmac "$new_mac"
- x_ "${ifdtool}" -i GbE:"$_gbe_tmp" "$rom" -O "$rom"
+ x_ "${ifdtool}" -i GbE:"$_gbe_tmp" "$1" -O "$1"
x_ rm -f "$_gbe_tmp"
}