Files
SDK_SG200x_V2/buildroot-2024.02/board/pc/post-build.sh
carbon e42fe97d74 buildroot long term support release 2024.02.3
buildroot-2024.02.3.tar.gz

Signed-off-by: carbon <carbon@milkv.io>
2024-06-21 14:23:43 +08:00

16 lines
409 B
Bash
Executable File

#!/bin/sh
set -e
BOARD_DIR=$(dirname "$0")
# Detect boot strategy, EFI or BIOS
if [ -d "$BINARIES_DIR/efi-part/" ]; then
cp -f "$BOARD_DIR/grub-efi.cfg" "$BINARIES_DIR/efi-part/EFI/BOOT/grub.cfg"
else
cp -f "$BOARD_DIR/grub-bios.cfg" "$TARGET_DIR/boot/grub/grub.cfg"
# Copy grub 1st stage to binaries, required for genimage
cp -f "$TARGET_DIR/lib/grub/i386-pc/boot.img" "$BINARIES_DIR"
fi