forked from kiss-community/repo
grub: Bye bye python
This commit is contained in:
parent
7471bd94a9
commit
7dc7394fd4
@ -1,5 +1,15 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
|
# Grub expects Python but it isn't actually needed. Give
|
||||||
|
# it something fake so that configure passes.
|
||||||
|
export PYTHON=/bin/true
|
||||||
|
|
||||||
|
# Disable the post-python mv calls as a means of disabling
|
||||||
|
# the Python tooling. The /bin/true above will create a
|
||||||
|
# blank file, this prevents the blank file from overwriting
|
||||||
|
# the existing one.
|
||||||
|
sed -i 's/mv $@.new $@/:/g' grub/Makefile.in
|
||||||
|
|
||||||
# Strip '-march' from 'CFLAGS' as per advice from upstream.
|
# Strip '-march' from 'CFLAGS' as per advice from upstream.
|
||||||
# Fixes build fails on specific hardware.
|
# Fixes build fails on specific hardware.
|
||||||
CFLAGS=$(printf %s "$CFLAGS" | sed 's/-march=[^ ]*//g')
|
CFLAGS=$(printf %s "$CFLAGS" | sed 's/-march=[^ ]*//g')
|
||||||
|
@ -2,5 +2,4 @@ binutils make
|
|||||||
bison make
|
bison make
|
||||||
flex make
|
flex make
|
||||||
linux-headers make
|
linux-headers make
|
||||||
python make
|
|
||||||
xz
|
xz
|
||||||
|
Loading…
Reference in New Issue
Block a user