forked from kiss-community/repo
grub: Disable -march=.*
This commit is contained in:
parent
62685693d9
commit
297b4bfc34
@ -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() (
|
||||
|
Loading…
Reference in New Issue
Block a user