nalika / rpms / grub2

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