File 0003-Disable-build-time-module-check-on-emu.patch of Package grub2.16099
From cbf87c7da396432a44bdadff2c9ed4ae2e117c44 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder@gmail.com>
Date: Thu, 31 Dec 2015 18:20:11 +0100
Subject: [PATCH 3/5] Disable build-time module check on emu.
On emu some checks can be laxer like check for relocation range. Additionally
module loading in emu is rarely used. So skip this check rather than making
it laxer for all platforms. In ideal we may want to have slightly different
check for emu but for now this is good enough.
---
grub-core/genmod.sh.in | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/grub-core/genmod.sh.in b/grub-core/genmod.sh.in
index 7dcafd9d3..7f32fe82e 100644
--- a/grub-core/genmod.sh.in
+++ b/grub-core/genmod.sh.in
@@ -93,5 +93,7 @@ else
-wd1106 -nu -nd $tmpfile.bin $tmpfile || exit 1
rm -f $name.bin
fi
-./build-grub-module-verifier $tmpfile @target_cpu@
+if test x@platform@ != xemu; then
+ ./build-grub-module-verifier $tmpfile @target_cpu@
+fi
mv $tmpfile $outfile
--
2.26.2