nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0284-arm64-setjmp-Add-missing-license-macro.patch

f725e3
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
f725e3
From: dann frazier <dann.frazier@canonical.com>
f725e3
Date: Thu, 21 May 2015 10:28:48 -0600
f725e3
Subject: [PATCH] arm64/setjmp: Add missing license macro
f725e3
f725e3
Including the setjmp module in an arm64-efi image will cause it to
f725e3
immediately exit with an "incompatible license" error.
f725e3
f725e3
The source file includes a GPLv3+ boilerplate, so fix this by declaring a
f725e3
GPLv3+ license using the GRUB_MOD_LICENSE macro.
f725e3
f725e3
Signed-off-by: dann frazier <dann.frazier@canonical.com>
f725e3
---
f725e3
 grub-core/lib/arm64/setjmp.S | 2 ++
f725e3
 1 file changed, 2 insertions(+)
f725e3
f725e3
diff --git a/grub-core/lib/arm64/setjmp.S b/grub-core/lib/arm64/setjmp.S
f725e3
index adaafe40f71..eabfd99b296 100644
f725e3
--- a/grub-core/lib/arm64/setjmp.S
f725e3
+++ b/grub-core/lib/arm64/setjmp.S
f725e3
@@ -17,8 +17,10 @@
f725e3
  */
f725e3
 
f725e3
 #include <grub/symbol.h>
f725e3
+#include <grub/dl.h>
f725e3
 
f725e3
 	.file	"setjmp.S"
f725e3
+GRUB_MOD_LICENSE "GPLv3+"
f725e3
 	.text
f725e3
 
f725e3
 /*