1 Index: linux-2.6.23-rc6/scripts/genksyms/parse.c_shipped
2 ===================================================================
3 --- linux-2.6.23-rc6.orig/scripts/genksyms/parse.c_shipped 2007-09-21 16:23:51.000000000 +0800
4 +++ linux-2.6.23-rc6/scripts/genksyms/parse.c_shipped 2007-09-21 16:24:10.000000000 +0800
14 static int is_typedef;
15 Index: linux-2.6.23-rc6/scripts/genksyms/parse.y
16 ===================================================================
17 --- linux-2.6.23-rc6.orig/scripts/genksyms/parse.y 2007-09-21 16:23:51.000000000 +0800
18 +++ linux-2.6.23-rc6/scripts/genksyms/parse.y 2007-09-21 16:24:10.000000000 +0800
28 static int is_typedef;
29 Index: linux-2.6.23-rc6/scripts/kallsyms.c
30 ===================================================================
31 --- linux-2.6.23-rc6.orig/scripts/kallsyms.c 2007-09-21 16:23:51.000000000 +0800
32 +++ linux-2.6.23-rc6/scripts/kallsyms.c 2007-09-21 16:24:10.000000000 +0800
38 +/* Darwin has no memmem implementation, this one is ripped of the uClibc-0.9.28 source */
39 +void *memmem (const void *haystack, size_t haystack_len,
40 + const void *needle, size_t needle_len)
43 + const char *const last_possible
44 + = (const char *) haystack + haystack_len - needle_len;
46 + if (needle_len == 0)
47 + /* The first occurrence of the empty string is deemed to occur at
48 + the beginning of the string. */
49 + return (void *) haystack;
51 + /* Sanity check, otherwise the loop might search through the whole
53 + if (__builtin_expect (haystack_len < needle_len, 0))
56 + for (begin = (const char *) haystack; begin <= last_possible; ++begin)
57 + if (begin[0] == ((const char *) needle)[0] &&
58 + !memcmp ((const void *) &begin[1],
59 + (const void *) ((const char *) needle + 1),
61 + return (void *) begin;
67 #define KSYM_NAME_LEN 128
69 Index: linux-2.6.23-rc6/scripts/kconfig/Makefile
70 ===================================================================
71 --- linux-2.6.23-rc6.orig/scripts/kconfig/Makefile 2007-09-21 16:23:51.000000000 +0800
72 +++ linux-2.6.23-rc6/scripts/kconfig/Makefile 2007-09-21 16:24:10.000000000 +0800
74 # we really need to do so. (Do not call gcc as part of make mrproper)
75 HOST_EXTRACFLAGS = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags)
76 HOST_LOADLIBES = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC))
77 +ifeq ($(shell uname -s),Darwin)
78 +HOST_LOADLIBES += -lncurses
81 HOST_EXTRACFLAGS += -DLOCALE
83 Index: linux-2.6.23-rc6/scripts/mod/mk_elfconfig.c
84 ===================================================================
85 --- linux-2.6.23-rc6.orig/scripts/mod/mk_elfconfig.c 2007-09-21 16:23:51.000000000 +0800
86 +++ linux-2.6.23-rc6/scripts/mod/mk_elfconfig.c 2007-09-21 16:24:10.000000000 +0800
94 +#include "../../../../../tools/sstrip/include/elf.h"
98 main(int argc, char **argv)
99 Index: linux-2.6.23-rc6/scripts/mod/modpost.h
100 ===================================================================
101 --- linux-2.6.23-rc6.orig/scripts/mod/modpost.h 2007-09-21 16:23:51.000000000 +0800
102 +++ linux-2.6.23-rc6/scripts/mod/modpost.h 2007-09-21 16:24:10.000000000 +0800
104 #include <sys/mman.h>
110 +#include "../../../../../tools/sstrip/include/elf.h"
113 #include "elfconfig.h"