1 diff -urN linux-2.6.21.1.old/scripts/genksyms/parse.c_shipped linux-2.6.21.1.dev/scripts/genksyms/parse.c_shipped
2 --- linux-2.6.21.1.old/scripts/genksyms/parse.c_shipped 2007-04-27 23:49:26.000000000 +0200
3 +++ linux-2.6.21.1.dev/scripts/genksyms/parse.c_shipped 2007-05-26 21:26:23.565690112 +0200
13 static int is_typedef;
14 diff -urN linux-2.6.21.1.old/scripts/genksyms/parse.y linux-2.6.21.1.dev/scripts/genksyms/parse.y
15 --- linux-2.6.21.1.old/scripts/genksyms/parse.y 2007-04-27 23:49:26.000000000 +0200
16 +++ linux-2.6.21.1.dev/scripts/genksyms/parse.y 2007-05-26 21:26:23.563690416 +0200
26 static int is_typedef;
27 diff -urN linux-2.6.21.1.old/scripts/kallsyms.c linux-2.6.21.1.dev/scripts/kallsyms.c
28 --- linux-2.6.21.1.old/scripts/kallsyms.c 2007-04-27 23:49:26.000000000 +0200
29 +++ linux-2.6.21.1.dev/scripts/kallsyms.c 2007-05-26 21:26:23.579687984 +0200
35 +/* Darwin has no memmem implementation, this one is ripped of the uClibc-0.9.28 source */
36 +void *memmem (const void *haystack, size_t haystack_len,
37 + const void *needle, size_t needle_len)
40 + const char *const last_possible
41 + = (const char *) haystack + haystack_len - needle_len;
43 + if (needle_len == 0)
44 + /* The first occurrence of the empty string is deemed to occur at
45 + the beginning of the string. */
46 + return (void *) haystack;
48 + /* Sanity check, otherwise the loop might search through the whole
50 + if (__builtin_expect (haystack_len < needle_len, 0))
53 + for (begin = (const char *) haystack; begin <= last_possible; ++begin)
54 + if (begin[0] == ((const char *) needle)[0] &&
55 + !memcmp ((const void *) &begin[1],
56 + (const void *) ((const char *) needle + 1),
58 + return (void *) begin;
64 #define KSYM_NAME_LEN 127
66 diff -urN linux-2.6.21.1.old/scripts/kconfig/Makefile linux-2.6.21.1.dev/scripts/kconfig/Makefile
67 --- linux-2.6.21.1.old/scripts/kconfig/Makefile 2007-04-27 23:49:26.000000000 +0200
68 +++ linux-2.6.21.1.dev/scripts/kconfig/Makefile 2007-05-26 21:26:23.553691936 +0200
70 # we really need to do so. (Do not call gcc as part of make mrproper)
71 HOST_EXTRACFLAGS = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags)
72 HOST_LOADLIBES = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC))
73 +ifeq ($(shell uname -s),Darwin)
74 +HOST_LOADLIBES += -lncurses
77 HOST_EXTRACFLAGS += -DLOCALE
79 diff -urN linux-2.6.21.1.old/scripts/mod/file2alias.c linux-2.6.21.1.dev/scripts/mod/file2alias.c
80 --- linux-2.6.21.1.old/scripts/mod/file2alias.c 2007-04-27 23:49:26.000000000 +0200
81 +++ linux-2.6.21.1.dev/scripts/mod/file2alias.c 2007-05-26 21:26:23.552692088 +0200
83 * even potentially has different endianness and word sizes, since
84 * we handle those differences explicitly below */
85 #include "../../include/linux/mod_devicetable.h"
87 #include "../../include/linux/input.h"
91 +#define KEY_MIN_INTERESTING KEY_MUTE
92 +#define KEY_MAX 0x1ff
102 #define ADD(str, sep, cond, field) \
104 diff -urN linux-2.6.21.1.old/scripts/mod/mk_elfconfig.c linux-2.6.21.1.dev/scripts/mod/mk_elfconfig.c
105 --- linux-2.6.21.1.old/scripts/mod/mk_elfconfig.c 2007-04-27 23:49:26.000000000 +0200
106 +++ linux-2.6.21.1.dev/scripts/mod/mk_elfconfig.c 2007-05-26 21:26:23.553691936 +0200
114 +#include "../../../../../tools/sstrip/include/elf.h"
118 main(int argc, char **argv)
119 diff -urN linux-2.6.21.1.old/scripts/mod/modpost.h linux-2.6.21.1.dev/scripts/mod/modpost.h
120 --- linux-2.6.21.1.old/scripts/mod/modpost.h 2007-04-27 23:49:26.000000000 +0200
121 +++ linux-2.6.21.1.dev/scripts/mod/modpost.h 2007-05-26 21:26:23.553691936 +0200
123 #include <sys/mman.h>
129 +#include "../../../../../tools/sstrip/include/elf.h"
132 #include "elfconfig.h"
134 diff -urN linux-2.6.21.1.old/scripts/mod/sumversion.c linux-2.6.21.1.dev/scripts/mod/sumversion.c
135 --- linux-2.6.21.1.old/scripts/mod/sumversion.c 2007-04-27 23:49:26.000000000 +0200
136 +++ linux-2.6.21.1.dev/scripts/mod/sumversion.c 2007-05-26 21:26:23.553691936 +0200
146 * Stolen form Cryptographic API.