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

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