Blame SOURCES/0275-Disable-build-time-module-check-on-emu.patch

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