]> code.ossystems Code Review - openembedded-core.git/commitdiff
kexec-tools: Update after linux-libc-headers changes
authorRichard Purdie <rpurdie@linux.intel.com>
Fri, 12 Jun 2009 14:50:43 +0000 (15:50 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Fri, 12 Jun 2009 14:50:43 +0000 (15:50 +0100)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
meta/packages/kexec/kexec-tools-1.101/recentheader.patch [new file with mode: 0644]
meta/packages/kexec/kexec-tools.inc

diff --git a/meta/packages/kexec/kexec-tools-1.101/recentheader.patch b/meta/packages/kexec/kexec-tools-1.101/recentheader.patch
new file mode 100644 (file)
index 0000000..8a4c504
--- /dev/null
@@ -0,0 +1,21 @@
+Index: kexec-tools-1.101/kexec/arch/i386/kexec-multiboot-x86.c
+===================================================================
+--- kexec-tools-1.101.orig/kexec/arch/i386/kexec-multiboot-x86.c       2009-06-12 12:09:04.000000000 +0100
++++ kexec-tools-1.101/kexec/arch/i386/kexec-multiboot-x86.c    2009-06-12 12:09:44.000000000 +0100
+@@ -47,7 +47,6 @@
+ #include <getopt.h>
+ #include <elf.h>
+ #include <boot/elf_boot.h>
+-#include <asm/page.h>
+ #include <ip_checksum.h>
+ #include "../../kexec.h"
+ #include "../../kexec-elf.h"
+@@ -341,7 +340,7 @@
+                       /* Pick the next aligned spot to load it in */
+                       freespace = add_buffer(info,
+                               buf, mod_size, mod_size,
+-                              PAGE_SIZE, 0, 0xffffffffUL, 1);
++                              getpagesize(), 0, 0xffffffffUL, 1);
+                       /* Add the module command line */
+                       sprintf(mod_clp, "%s", mod_command_line);
index f806e714808313955def1ffad6b9717077921ce9..242e206faa6fc3a67726b862ddf7a1e29f8ab4eb 100644 (file)
@@ -10,4 +10,5 @@ inherit autotools
 
 SRC_URI = "http://www.xmission.com/~ebiederm/files/kexec/kexec-tools-${PV}.tar.gz \
            file://kexec-tools-arm.patch;patch=1 \
-           file://kexec-arm-atags.patch;patch=1"
+           file://kexec-arm-atags.patch;patch=1 \
+           file://recentheader.patch;patch=1"