Patchwork Forget patch for kernel

login
register
mail settings
Submitter Yann Diorcet
Date Oct. 21, 2012, 3:40 p.m.
Message ID <1350834051-9611-1-git-send-email-diorcet.yann@gmail.com>
Download mbox | patch
Permalink /patch/193042/
State Accepted
Headers show

Comments

Yann Diorcet - Oct. 21, 2012, 3:40 p.m.
From: Yann Diorcet <yann.diorcet@belledonne-communications.com>

---
 recipes/linux/linux-omap4/osx.patch |   73 +++++++++++++++++++++++++++++++++++
 1 file changed, 73 insertions(+)
 create mode 100644 recipes/linux/linux-omap4/osx.patch

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 <assert.h>
++#ifndef __APPLE__
+ #include <malloc.h>
++#else
++#include <sys/malloc.h>
++#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 <assert.h>
++#ifdef __APPLE__
++#include <sys/malloc.h>
++#else
+ #include <malloc.h>
++#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 <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#ifndef __APPLE__
+ #include <elf.h>
++#else
++#include <libelf/gelf.h>
++#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 <sys/mman.h>
+ #include <fcntl.h>
+ #include <unistd.h>
++#ifndef __APPLE__
+ #include <elf.h>
++#else
++#include <libelf/gelf.h>
++#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"
+