From patchwork Sun Oct 21 15:40:51 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Forget patch for kernel Date: Sun, 21 Oct 2012 05:40:51 -0000 From: Yann Diorcet X-Patchwork-Id: 193042 Message-Id: <1350834051-9611-1-git-send-email-diorcet.yann@gmail.com> To: dev@oe-lite.org Cc: Yann Diorcet From: Yann Diorcet --- recipes/linux/linux-omap4/osx.patch | 73 +++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 recipes/linux/linux-omap4/osx.patch diff --git a/recipes/linux/linux-omap4/osx.patch b/recipes/linux/linux-omap4/osx.patch new file mode 100644 index 0000000..8532f79 --- /dev/null +++ b/recipes/linux/linux-omap4/osx.patch @@ -0,0 +1,73 @@ +diff -urN kernel/scripts/genksyms/parse.c_shipped kernel2/scripts/genksyms/parse.c_shipped +--- kernel/scripts/genksyms/parse.c_shipped 2012-10-04 10:19:27.000000000 +0200 ++++ kernel2/scripts/genksyms/parse.c_shipped 2012-10-04 11:04:39.000000000 +0200 +@@ -160,7 +160,11 @@ + + + #include ++#ifndef __APPLE__ + #include ++#else ++#include ++#endif + #include "genksyms.h" + + static int is_typedef; +diff -urN kernel/scripts/genksyms/parse.y kernel2/scripts/genksyms/parse.y +--- kernel/scripts/genksyms/parse.y 2012-10-04 10:19:27.000000000 +0200 ++++ kernel2/scripts/genksyms/parse.y 2012-10-04 10:21:35.000000000 +0200 +@@ -24,7 +24,11 @@ + %{ + + #include ++#ifdef __APPLE__ ++#include ++#else + #include ++#endif + #include "genksyms.h" + + static int is_typedef; +diff -urN kernel/scripts/mod/mk_elfconfig.c kernel2/scripts/mod/mk_elfconfig.c +--- kernel/scripts/mod/mk_elfconfig.c 2012-10-04 10:19:27.000000000 +0200 ++++ kernel2/scripts/mod/mk_elfconfig.c 2012-10-04 11:28:53.000000000 +0200 +@@ -1,7 +1,11 @@ + #include + #include + #include ++#ifndef __APPLE__ + #include ++#else ++#include ++#endif + + int + main(int argc, char **argv) +diff -urN kernel/scripts/mod/modpost.h kernel2/scripts/mod/modpost.h +--- kernel/scripts/mod/modpost.h 2012-10-04 10:19:27.000000000 +0200 ++++ kernel2/scripts/mod/modpost.h 2012-10-04 12:26:20.000000000 +0200 +@@ -7,7 +7,24 @@ + #include + #include + #include ++#ifndef __APPLE__ + #include ++#else ++#include ++#define R_386_NONE 0 ++#define R_386_32 1 ++#define R_386_PC32 2 ++#define R_ARM_NONE 0 ++#define R_ARM_PC24 1 ++#define R_ARM_ABS32 2 ++#define R_MIPS_NONE 0 ++#define R_MIPS_16 1 ++#define R_MIPS_32 2 ++#define R_MIPS_REL32 3 ++#define R_MIPS_26 4 ++#define R_MIPS_HI16 5 ++#define R_MIPS_LO16 6 ++#endif + + #include "elfconfig.h" +