grub: update for new env

This commit is contained in:
Dylan Araps 2021-07-15 12:16:05 +03:00
parent 43aaf2d19b
commit 23c4094214
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

View File

@ -18,10 +18,6 @@ done
CFLAGS=$(printf %s "$CFLAGS" | sed 's/-march=[^ ]*//g')
CFLAGS=$(printf %s "$CXXFLAGS" | sed 's/-march=[^ ]*//g')
# Grub is built in a function so the script argument
# needs to be stored.
pkg_dir=$1
build_grub() (
cd "grub-${1##*=}"
@ -36,7 +32,7 @@ build_grub() (
"$@"
make
make DESTDIR="$pkg_dir" install
make install
)
build_grub --with-platform=pc