From 297b4bfc349c7c2d833a7425a5967acd81bcf387 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 11 Feb 2020 18:55:35 +0200 Subject: [PATCH] grub: Disable -march=.* --- core/grub/build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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() (