grub: Fix Ryzen issue

This commit is contained in:
Dylan Araps 2020-02-22 00:26:55 +02:00
parent 07ff567786
commit 874d3117e7
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 3 additions and 2 deletions

View File

@ -2,9 +2,10 @@
# Strip '-march' from 'CFLAGS' as per advice from upstream.
# Fixes build fails on specific hardware.
CFLAGS=$(printf %s "$CFLAGS" | sed 's/-march=\w* //g')
CFLAGS=$(printf %s "$CFLAGS" | sed 's/-march=[^ ]* //g')
export CFLAGS
# Grub is built in a function so the script argument
# Grub is built in a function so the script argument
# needs to be stored.
pkg_dir=$1