mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-09-20 05:30:25 +02:00
xbmk: general code cleanup
make the code much easier to read i also cleaned up the recent git identity check Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+8
-1
@@ -19,6 +19,7 @@ extract_refcode()
|
||||
# cbfstool from coreboot 4.11_branch, the tree used by ASUS KGPE-D16:
|
||||
|
||||
if [ -z "$cbfstoolref" ]; then
|
||||
|
||||
err "cbfstoolref not set" "extract_refcode" "$@"
|
||||
fi
|
||||
|
||||
@@ -27,8 +28,10 @@ extract_refcode()
|
||||
x_ "$cbfstoolref" "$appdir/bios.bin" extract \
|
||||
-m x86 -n fallback/refcode -f "$appdir/ref" -r RO_SECTION
|
||||
|
||||
# enable the Intel GbE device, if told by offset MRC_refcode_gbe
|
||||
# enable the Intel GbE device, if told by offset MRC_refcode_gbe:
|
||||
|
||||
if [ -n "$MRC_refcode_gbe" ]; then
|
||||
|
||||
x_ dd if="config/ifd/hp820g2/1.bin" of="$appdir/ref" bs=1 \
|
||||
seek=$MRC_refcode_gbe count=1 conv=notrunc; :
|
||||
fi
|
||||
@@ -39,8 +42,11 @@ extract_refcode()
|
||||
extract_mrc()
|
||||
{
|
||||
if [ -z "$MRC_board" ]; then
|
||||
|
||||
err "MRC_board unset" "extract_mrc" "$@"
|
||||
|
||||
elif [ -z "$CONFIG_MRC_FILE" ]; then
|
||||
|
||||
err "CONFIG_MRC_FILE unset" "extract_mrc" "$@"
|
||||
fi
|
||||
|
||||
@@ -48,6 +54,7 @@ extract_mrc()
|
||||
|
||||
(
|
||||
x_ cd "$appdir"
|
||||
|
||||
extract_partition "${MRC_url##*/}"
|
||||
extract_archive "$SHELLBALL" .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user