2016-04-29 20:26:53 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2017-10-22 15:54:24 +02:00
|
|
|
BOARD_DIR="$(dirname $0)"
|
|
|
|
|
2016-04-29 20:26:53 +02:00
|
|
|
# Detect boot strategy, EFI or BIOS
|
|
|
|
if [ -f ${BINARIES_DIR}/efi-part/startup.nsh ]; then
|
2017-10-22 15:54:24 +02:00
|
|
|
cp -f ${BOARD_DIR}/grub-efi.cfg ${BINARIES_DIR}/efi-part/EFI/BOOT/grub.cfg
|
2016-04-29 20:26:53 +02:00
|
|
|
else
|
2017-10-22 15:54:24 +02:00
|
|
|
cp -f ${BOARD_DIR}/grub-bios.cfg ${TARGET_DIR}/boot/grub/grub.cfg
|
2016-04-29 20:26:53 +02:00
|
|
|
# Copy grub 1st stage to binaries, required for genimage
|
2017-07-05 13:14:26 +02:00
|
|
|
cp -f ${HOST_DIR}/lib/grub/i386-pc/boot.img ${BINARIES_DIR}
|
2016-04-29 20:26:53 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
exit $?
|