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

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