diff options
author | Laurent Dufour <ldufour@linux.vnet.ibm.com> | 2014-06-16 14:42:43 +0200 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2014-06-17 08:23:07 +0900 |
commit | 2ca220389d212249cc842d49084c95e524fb299b (patch) | |
tree | 9a18b7c3c2a4152e84b1cfaca4404337e751fae7 | |
parent | cc97e8b9abdfa49fb5ecf18412e4a9a62bf71b57 (diff) | |
download | kexec-tools-2ca220389d212249cc842d49084c95e524fb299b.tar.gz |
kexec/ppc64: move to device tree version 17
Kernel commit e6a6928c3ea1d0195ed75a091e345696b916c09b changed the way the
device tree is processed in the kernel. Now version 2 is no more supported.
This patch move the version of the device tree generated in ppc64
environment from 2 to 17, allowing to kexec kernel 3.16.
In addition, automates the define of NEED_STRUCTURE_BLOCK_EXTRA_PAD which
should not be set for DT version 16 and above.
Signed-off-by: Laurent Dufour <ldufour@linux.vnet.ibm.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r-- | kexec/arch/ppc64/kexec-ppc64.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/kexec/arch/ppc64/kexec-ppc64.h b/kexec/arch/ppc64/kexec-ppc64.h index 9a0aecf..89ee942 100644 --- a/kexec/arch/ppc64/kexec-ppc64.h +++ b/kexec/arch/ppc64/kexec-ppc64.h @@ -6,9 +6,11 @@ #define CORE_TYPE_ELF32 1 #define CORE_TYPE_ELF64 2 -#define BOOT_BLOCK_VERSION 2 -#define BOOT_BLOCK_LAST_COMP_VERSION 2 -#define NEED_STRUCTURE_BLOCK_EXTRA_PAD +#define BOOT_BLOCK_VERSION 17 +#define BOOT_BLOCK_LAST_COMP_VERSION 17 +#if (BOOT_BLOCK_VERSION < 16) +# define NEED_STRUCTURE_BLOCK_EXTRA_PAD +#endif #define HAVE_DYNAMIC_MEMORY #define NEED_RESERVE_DTB |