mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-17 18:34:57 +02:00
vendor.sh: make the fsp hack a bit cleaner
it's still a dirty hack. i really should make a better check here. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+16
-5
@@ -182,16 +182,27 @@ fetch()
|
|||||||
remkdir "${_pre_dest%/*}" "$appdir"
|
remkdir "${_pre_dest%/*}" "$appdir"
|
||||||
|
|
||||||
# HACK: if grabbing fsp from coreboot, fix the path for lbmk
|
# HACK: if grabbing fsp from coreboot, fix the path for lbmk
|
||||||
if [ "$dl_type" = "fsp" ]; then
|
if [ "$dl_type" = "fsp" ]
|
||||||
|
then
|
||||||
dl="${dl##*../}"
|
dl="${dl##*../}"
|
||||||
_cdp="$dl"
|
_cdp="$dl"
|
||||||
[ -f "$_cdp" ] || _cdp="$cbdir/$_cdp"; :
|
|
||||||
[ -f "$_cdp" ] && dl="$_cdp"; :
|
if [ ! -f "$_cdp" ]; then
|
||||||
|
_cdp="$cbdir/$_cdp"
|
||||||
|
fi
|
||||||
|
if [ -f "$_cdp" ]; then
|
||||||
|
dl="$_cdp"
|
||||||
|
fi
|
||||||
|
|
||||||
dl_bkup="${dl_bkup##*../}"
|
dl_bkup="${dl_bkup##*../}"
|
||||||
_cdp="$dl_bkup"
|
_cdp="$dl_bkup"
|
||||||
[ -f "$_cdp" ] || _cdp="$cbdir/$_cdp"; :
|
|
||||||
[ -f "$_cdp" ] && dl_bkup="$_cdp"; :
|
if [ ! -f "$_cdp" ]; then
|
||||||
|
_cdp="$cbdir/$_cdp"
|
||||||
|
fi
|
||||||
|
if [ -f "$_cdp" ]; then
|
||||||
|
dl_bkup="$_cdp"; :
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# download the file (from the internet) to extract from:
|
# download the file (from the internet) to extract from:
|
||||||
|
|||||||
Reference in New Issue
Block a user