dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

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

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