1 diff -urN linux-2.6.19.1/scripts/mod/file2alias.c linux-2.6.19.1.new/scripts/mod/file2alias.c
2 --- linux-2.6.19.1/scripts/mod/file2alias.c 2006-12-11 20:32:53.000000000 +0100
3 +++ linux-2.6.19.1.new/scripts/mod/file2alias.c 2007-01-02 15:28:47.000000000 +0100
5 * even potentially has different endianness and word sizes, since
6 * we handle those differences explicitly below */
7 #include "../../include/linux/mod_devicetable.h"
9 #include "../../include/linux/input.h"
13 +#define KEY_MIN_INTERESTING KEY_MUTE
14 +#define KEY_MAX 0x1ff
24 #define ADD(str, sep, cond, field) \
26 diff -urN linux-2.6.19.1/scripts/mod/mk_elfconfig.c linux-2.6.19.1.new/scripts/mod/mk_elfconfig.c
27 --- linux-2.6.19.1/scripts/mod/mk_elfconfig.c 2006-12-11 20:32:53.000000000 +0100
28 +++ linux-2.6.19.1.new/scripts/mod/mk_elfconfig.c 2007-01-02 15:43:57.000000000 +0100
36 +#include "../../../../../tools/sstrip/include/elf.h"
40 main(int argc, char **argv)
41 diff -urN linux-2.6.19.1/scripts/mod/modpost.h linux-2.6.19.1.new/scripts/mod/modpost.h
42 --- linux-2.6.19.1/scripts/mod/modpost.h 2006-12-11 20:32:53.000000000 +0100
43 +++ linux-2.6.19.1.new/scripts/mod/modpost.h 2007-01-02 15:40:55.000000000 +0100
51 +#include "../../../../../tools/sstrip/include/elf.h"
54 #include "elfconfig.h"
56 diff -urN linux-2.6.19.1/scripts/mod/sumversion.c linux-2.6.19.1.new/scripts/mod/sumversion.c
57 --- linux-2.6.19.1/scripts/mod/sumversion.c 2006-12-11 20:32:53.000000000 +0100
58 +++ linux-2.6.19.1.new/scripts/mod/sumversion.c 2007-01-02 15:30:23.000000000 +0100
68 * Stolen form Cryptographic API.
69 diff -urN linux-2.6.19.1/scripts/kconfig linux-2.6.19.1.new/scripts/kconfig/Makefile
70 --- linux-2.6.19.1/scripts/kconfig/Makefile 2007-01-04 17:49:35.000000000 +0100
71 +++ linux-2.6.19.1.new/scripts/kconfig/Makefile 2007-01-04 17:50:37.000000000 +0100
73 # we really need to do so. (Do not call gcc as part of make mrproper)
74 HOST_EXTRACFLAGS = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags)
75 HOST_LOADLIBES = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC))
76 +ifeq ($(shell uname -s),Darwin)
77 +HOST_LOADLIBES += -lncurses
80 HOST_EXTRACFLAGS += -DLOCALE
82 diff -urN linux-2.6.19.1/scripts/genksyms/parse.y linux-2.6.19.1.new/scripts/genksyms/parse.y
83 --- linux-2.6.19.1/scripts/genksyms/parse.y 2006-12-11 20:32:53.000000000 +0100
84 +++ linux-2.6.19.1.new/scripts/genksyms/parse.y 2007-01-04 19:20:55.000000000 +0100
94 static int is_typedef;
95 diff -urN linux-2.6.19.1/scripts/genksyms/parse.c_shipped linux-2.6.19.1.new/scripts/genksyms/parse.c_shipped
96 --- linux-2.6.19.1/scripts/genksyms/parse.c_shipped 2007-01-04 19:34:09.000000000 +0100
97 +++ linux-2.6.19.1.new/scripts/genksyms/parse.c_shipped 2007-01-04 19:34:02.000000000 +0100
105 #include "genksyms.h"
107 static int is_typedef;
108 --- linux-2.6.19.1/scripts/kallsyms.c 2006-12-11 20:32:53.000000000 +0100
109 +++ linux-2.6.19.1.new/scripts/kallsyms.c 2007-01-04 19:46:38.000000000 +0100
115 +/* Darwin has no memmem implementation, this one is ripped of the uClibc-0.9.28 source */
116 +void *memmem (const void *haystack, size_t haystack_len,
117 + const void *needle, size_t needle_len)
120 + const char *const last_possible
121 + = (const char *) haystack + haystack_len - needle_len;
123 + if (needle_len == 0)
124 + /* The first occurrence of the empty string is deemed to occur at
125 + the beginning of the string. */
126 + return (void *) haystack;
128 + /* Sanity check, otherwise the loop might search through the whole
130 + if (__builtin_expect (haystack_len < needle_len, 0))
133 + for (begin = (const char *) haystack; begin <= last_possible; ++begin)
134 + if (begin[0] == ((const char *) needle)[0] &&
135 + !memcmp ((const void *) &begin[1],
136 + (const void *) ((const char *) needle + 1),
138 + return (void *) begin;
144 #define KSYM_NAME_LEN 127