diff --git a/core/grub/build b/core/grub/build index d0cee821..25097298 100755 --- a/core/grub/build +++ b/core/grub/build @@ -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() (