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/mk_elfconfig.c linux-2.6.21.1.dev/scripts/mod/mk_elfconfig.c
80 --- linux-2.6.21.1.old/scripts/mod/mk_elfconfig.c 2007-04-27 23:49:26.000000000 +0200
81 +++ linux-2.6.21.1.dev/scripts/mod/mk_elfconfig.c 2007-05-26 21:26:23.553691936 +0200
89 +#include "../../../../../tools/sstrip/include/elf.h"
93 main(int argc, char **argv)
94 diff -urN linux-2.6.21.1.old/scripts/mod/modpost.h linux-2.6.21.1.dev/scripts/mod/modpost.h
95 --- linux-2.6.21.1.old/scripts/mod/modpost.h 2007-04-27 23:49:26.000000000 +0200
96 +++ linux-2.6.21.1.dev/scripts/mod/modpost.h 2007-05-26 21:26:23.553691936 +0200
104 +#include "../../../../../tools/sstrip/include/elf.h"
107 #include "elfconfig.h"