2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-02 14:02:27 +00:00

grub: Bye bye python

This commit is contained in:
Dylan Araps 2020-03-05 19:17:42 +02:00
parent 7471bd94a9
commit 7dc7394fd4
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
2 changed files with 10 additions and 1 deletions

View File

@ -1,5 +1,15 @@
#!/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.
# Fixes build fails on specific hardware.
CFLAGS=$(printf %s "$CFLAGS" | sed 's/-march=[^ ]*//g')

View File

@ -2,5 +2,4 @@ binutils make
bison make
flex make
linux-headers make
python make
xz