mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
blobutil/inject: fail if gbe.bin doesn't exist
This commit is contained in:
@@ -334,10 +334,17 @@ modify_gbe()
|
||||
printf "changing mac address in gbe to ${new_mac}\n"
|
||||
|
||||
rom=${1}
|
||||
# TODO: check if CONFIG_GBE_BIN_PATH is empty
|
||||
# TODO: check that the gbe file actually exists
|
||||
|
||||
if [ -z ${CONFIG_GBE_BIN_PATH} ]; then
|
||||
fail "CONFIG_GBE_BIN_PATH not set"
|
||||
fi
|
||||
|
||||
_gbe_location=${CONFIG_GBE_BIN_PATH#../../}
|
||||
|
||||
if [ ! -f "${_gbe_location}" ]; then
|
||||
fail "CONFIG_GBE_BIN_PATH points to missing file"
|
||||
fi
|
||||
|
||||
if [ ! -f ${nvmutil} ]; then
|
||||
make -C util/nvmutil || fail 'failed to build nvmutil'
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user