diff --git a/core/grub/build b/core/grub/build index 1167cac8..c937d263 100755 --- a/core/grub/build +++ b/core/grub/build @@ -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') diff --git a/core/grub/depends b/core/grub/depends index 58223007..b37ce94a 100644 --- a/core/grub/depends +++ b/core/grub/depends @@ -2,5 +2,4 @@ binutils make bison make flex make linux-headers make -python make xz