From 1b65e8914c4ad1e140b573fa6bc8feead14542ad Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 30 Jul 2026 11:58:11 +0100 Subject: 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 --- include/mrc.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'include/mrc.sh') diff --git a/include/mrc.sh b/include/mrc.sh index 9c50af5c..1f3a1c9d 100644 --- a/include/mrc.sh +++ b/include/mrc.sh @@ -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" . -- cgit v1.2.1