grub: Disable -march=.*

This commit is contained in:
Dylan Araps 2020-02-11 18:55:35 +02:00
parent 62685693d9
commit 297b4bfc34
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

View File

@ -1,6 +1,11 @@
#!/bin/sh -e
# Grub is built in a function so the script argument needs to be stored.
# Strip '-march' from 'CFLAGS' as per advice from upstream.
# Fixes build fails on specific hardware.
CFLAGS=$(printf %s "$CFLAGS" | sed 's/-march=\w* //g')
# Grub is built in a function so the script argument
# needs to be stored.
pkg_dir=$1
build_grub() (