dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

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

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