mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-19 00:03:45 +02:00
+4
-6
@@ -50,12 +50,10 @@ extract_refcode()
|
|||||||
chkvars cbfstoolref
|
chkvars cbfstoolref
|
||||||
mkdir -p "${_refdest%/*}" || $err "ref: !mkdir -p ${_refdest%/*}"
|
mkdir -p "${_refdest%/*}" || $err "ref: !mkdir -p ${_refdest%/*}"
|
||||||
|
|
||||||
"$cbfstoolref" "$appdir/bios.bin" extract \
|
x_ "$cbfstoolref" "$appdir/bios.bin" extract \
|
||||||
-m x86 -n fallback/refcode -f "$_refdest" -r RO_SECTION \
|
-m x86 -n fallback/refcode -f "$_refdest" -r RO_SECTION
|
||||||
|| $err "extract_refcode $board: !cbfstoolref $_refdest"
|
|
||||||
|
|
||||||
# enable the Intel GbE device, if told by offset MRC_refcode_gbe
|
# enable the Intel GbE device, if told by offset MRC_refcode_gbe
|
||||||
[ -z "$MRC_refcode_gbe" ] || dd if="config/ifd/hp820g2/1.bin" \
|
[ -z "$MRC_refcode_gbe" ] || x_ dd if="config/ifd/hp820g2/1.bin" \
|
||||||
of="$_refdest" bs=1 seek=$MRC_refcode_gbe count=1 conv=notrunc || \
|
of="$_refdest" bs=1 seek=$MRC_refcode_gbe count=1 conv=notrunc; :
|
||||||
$err "extract_refcode $_refdest: byte $MRC_refcode_gbe"; :
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user