blob scripts: unified handling of blob destination

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2023-09-29 19:41:34 +01:00
parent 8ea62a1661
commit 2b7ae8e204
3 changed files with 25 additions and 33 deletions
+1 -3
View File
@@ -12,8 +12,6 @@ extract_mrc()
_file="${MRC_url##*/}"
_file="${_file%.zip}"
_mrc_destination="${CONFIG_MRC_FILE#../../}"
mkdirs "${_mrc_destination}" "extract_mrc" || return 0
(
cd "${appdir}" || err "extract_mrc: !cd ${appdir}"
@@ -23,7 +21,7 @@ extract_mrc()
)
"${cbfstool}" "${appdir}/"coreboot-*.bin extract -n mrc.bin \
-f "${_mrc_destination}" -r RO_SECTION || \
-f "${_dest}" -r RO_SECTION || \
err "extract_mrc: could not fetch mrc.bin"
}