fixing klibc/kexec-tools-static
PATCH 1/1 fixing klibc/kexec-tools-static
Currently when you try to build linux-kexecboot or similar for an ARM platform, you get failures because of a missing header subdirectory. This is a known problem. However, the missing directory full of kernel headers (e.g., mach/memory.h) that probably shouldn't be exposed anyway.
This patch removes the #include of the file that's a problem. The resulting image seems to work on Collie.
recipes/kexec/files/kexec-klibc-new-kernels.patch new file +26 -0
@@ -0,0 +1,26 @@ +Index: kexec-tools-1.101/kexec/arch/arm/kexec-zImage-arm.c +=================================================================== +--- kexec-tools-1.101.orig/kexec/arch/arm/kexec-zImage-arm.c 2009-05-07 14:28:21.000000000 +1000 ++++ kexec-tools-1.101/kexec/arch/arm/kexec-zImage-arm.c 2009-05-07 14:28:27.000000000 +1000 +@@ -8,21 +8,20 @@ + + #define _GNU_SOURCE + #include <stdio.h> + #include <string.h> + #include <stdlib.h> + #include <errno.h> + #include <limits.h> + #include <stdint.h> + #include <getopt.h> + #include <arch/options.h> +-#include <asm/page.h> + #include "../../kexec.h" + + #define COMMAND_LINE_SIZE 1024 + #define BOOT_PARAMS_SIZE 1536 + + struct tag_header { + uint32_t size; + uint32_t tag; + }; +
--
Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au
http://www.ertos.nicta.com.au ERTOS within National ICT Australia
--
Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au
http://www.ertos.nicta.com.au ERTOS within National ICT Australia