repo/core/grub/build
2019-06-19 14:09:49 +03:00

27 lines
524 B
Bash
Executable File

#!/bin/sh -e
(cd grub; patch -p1 < 0008-Fix-packed-not-aligned-error-on-GCC-8.patch)
# Grub is built in a function so the script argument needs to be stored.
pkg_dir=$1
build_grub() (
cp -R grub "grub-${1##*=}"
cd "grub-${1##*=}"
autoreconf -fi
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--disable-nls \
--disable-werror \
"$@"
make
make DESTDIR="$pkg_dir" install
)
build_grub --with-platform=pc
build_grub --with-platform=efi --disable-efiemu