Blame SOURCES/kexec-tools-2.0.7-kexec-ppc64-move-to-device-tree-version-17.patch

1b417c
From 2ca220389d212249cc842d49084c95e524fb299b Mon Sep 17 00:00:00 2001
1b417c
From: Laurent Dufour <ldufour@linux.vnet.ibm.com>
1b417c
Date: Mon, 16 Jun 2014 14:42:43 +0200
1b417c
Subject: [PATCH] kexec/ppc64: move to device tree version 17
1b417c
1b417c
Kernel commit e6a6928c3ea1d0195ed75a091e345696b916c09b changed the way the
1b417c
device tree is processed in the kernel. Now version 2 is no more supported.
1b417c
1b417c
This patch move the version of the device tree generated in ppc64
1b417c
environment from 2 to 17, allowing to kexec kernel 3.16.
1b417c
1b417c
In addition, automates the define of NEED_STRUCTURE_BLOCK_EXTRA_PAD which
1b417c
should not be set for DT version 16 and above.
1b417c
1b417c
Signed-off-by: Laurent Dufour <ldufour@linux.vnet.ibm.com>
1b417c
Signed-off-by: Simon Horman <horms@verge.net.au>
1b417c
---
1b417c
 kexec/arch/ppc64/kexec-ppc64.h | 8 +++++---
1b417c
 1 file changed, 5 insertions(+), 3 deletions(-)
1b417c
1b417c
diff --git a/kexec/arch/ppc64/kexec-ppc64.h b/kexec/arch/ppc64/kexec-ppc64.h
1b417c
index 9a0aecf..89ee942 100644
1b417c
--- a/kexec/arch/ppc64/kexec-ppc64.h
1b417c
+++ b/kexec/arch/ppc64/kexec-ppc64.h
1b417c
@@ -6,9 +6,11 @@
1b417c
 #define CORE_TYPE_ELF32 1
1b417c
 #define CORE_TYPE_ELF64 2
1b417c
 
1b417c
-#define BOOT_BLOCK_VERSION 2
1b417c
-#define BOOT_BLOCK_LAST_COMP_VERSION 2
1b417c
-#define NEED_STRUCTURE_BLOCK_EXTRA_PAD
1b417c
+#define BOOT_BLOCK_VERSION 17
1b417c
+#define BOOT_BLOCK_LAST_COMP_VERSION 17
1b417c
+#if (BOOT_BLOCK_VERSION < 16)
1b417c
+#	define NEED_STRUCTURE_BLOCK_EXTRA_PAD
1b417c
+#endif
1b417c
 #define HAVE_DYNAMIC_MEMORY
1b417c
 #define NEED_RESERVE_DTB
1b417c
 
1b417c
-- 
1b417c
1.9.3
1b417c