From e8187814a3fe73320d34a4f3ee68230c07d10765 Mon Sep 17 00:00:00 2001
From: j1nx
Date: Sun, 4 Feb 2024 10:18:25 +0000
Subject: [PATCH] [x86] Fix overseen little post-build script issues for x86
---
buildroot-external/scripts/post-build.sh | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/buildroot-external/scripts/post-build.sh b/buildroot-external/scripts/post-build.sh
index c29ef873..a89cb0ad 100755
--- a/buildroot-external/scripts/post-build.sh
+++ b/buildroot-external/scripts/post-build.sh
@@ -51,14 +51,11 @@ copy_board_specific_files() {
cp -f "${BOARD_DIR}/../grub-efi.cfg" "${BINARIES_DIR}/efi-part/EFI/BOOT/grub.cfg"
cp -f "${BOARD_DIR}/sw-description" "${BINARIES_DIR}"
;;
- "ova")
+ "ova"|"pc")
cp -f "${BOARD_DIR}/grub-efi.cfg" "${BINARIES_DIR}/efi-part/EFI/BOOT/grub.cfg"
cp -f "${BOARD_DIR}/cmdline.txt" "${BINARIES_DIR}"
cp -f "${BOARD_DIR}/sw-description" "${BINARIES_DIR}"
;;
- "pc")
- cp -f "${BOARD_DIR}/grub-efi.cfg" "${BINARIES_DIR}/efi-part/EFI/BOOT/grub.cfg"
- ;;
*)
echo "No specific files to copy for board type: ${BOARD_TYPE}"
;;
@@ -75,15 +72,15 @@ handle_kernel_renaming() {
mv "${TARGET_DIR}/boot/Image" "${TARGET_DIR}/boot/kernel"
fi
;;
- "ova")
+ "ova"|"pc")
grub-editenv "${BINARIES_DIR}/efi-part/EFI/BOOT/grubenv" create
if [ -f "${TARGET_DIR}/boot/bzImage" ]; then
echo "Found bzImage, renaming to kernel"
mv "${TARGET_DIR}/boot/bzImage" "${TARGET_DIR}/boot/kernel"
fi
;;
- "pc")
- # No kernel renaming logic needed for pc(x86_64)
+ *)
+ echo "No kernel renaming logic needed for board type: ${BOARD_TYPE}"
;;
esac
}