diff options
| author | Leah Rowe <leah@libreboot.org> | 2025-05-05 06:00:23 +0100 | 
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2025-05-05 12:19:13 +0100 | 
| commit | b3ed7035ec3bcd3cb7c9da1516a2a6eae2952397 (patch) | |
| tree | e182d1a310dd6cf474a8651d26979562f3876525 | |
| parent | 5829a185d0d929b2e9b38328a72bd0b7c8de89c0 (diff) | |
inject.sh: Move FSP extraction only to extract_fsp
Don't do FSP-specific extraction in extract_archive, as
that is not what the latter is for.
Signed-off-by: Leah Rowe <leah@libreboot.org>
| -rw-r--r-- | include/inject.sh | 11 | 
1 files changed, 4 insertions, 7 deletions
diff --git a/include/inject.sh b/include/inject.sh index c6c8c2d2..80a691f2 100644 --- a/include/inject.sh +++ b/include/inject.sh @@ -121,10 +121,10 @@ fetch()  	x_ mkdir -p "${_dest%/*}"  	remkdir "$appdir" -	extract_archive "$_dl" "$appdir" "$dl_type" || \ +	[ "$dl_type" = "fsp" ] || extract_archive "$_dl" "$appdir" || \  	    [ "$dl_type" = "e6400vga" ] || err "$_dest $dl_type: !extract" -	eval "extract_$dl_type" +	x_ extract_$dl_type "$_dl" "$appdir"  	set -u -e  	e "$_dest" f missing && err "!extract_$dl_type. $dontflash"; :  } @@ -191,10 +191,6 @@ extract_intel_me_bruteforce()  extract_archive()  { -	[ $# -gt 2 ] && [ "$3" = "fsp" ] && x_ python \ -	    "$cbdir/3rdparty/fsp/Tools/SplitFspBin.py" split -f "$1" -o "$2" \ -	    -n "Fsp.fd" && return 0 -  	innoextract "$1" -d "$2" || python "$pfs_extract" "$1" -e || 7z x \  	    "$1" -o"$2" || unar "$1" -o "$2" || unzip "$1" -d "$2" || return 1 @@ -261,7 +257,8 @@ copy_tbfw()  extract_fsp()  { -	x_ cp "$appdir/"Fsp_*.fd "${_dest%/*}" +	x_ python "$cbdir/3rdparty/fsp/Tools/SplitFspBin.py" split -f "$1" \ +	    -o "$2" -n "Fsp.fd" && x_ cp "$appdir/"Fsp_*.fd "${_dest%/*}"  }  fail_inject()  | 
