feed52aef333119cb3a00ca46747e83da95e1dcb
[openwrt/svn-archive/archive.git] / openwrt / target / linux / package / fuse / patches / 101-kmod_build.patch
1 diff -Nur fuse-2.5.2/kernel/Makefile.in fuse-2.5.2.patched/kernel/Makefile.in
2 --- fuse-2.5.2/kernel/Makefile.in 2006-02-02 18:04:52.000000000 +0100
3 +++ fuse-2.5.2.patched/kernel/Makefile.in 2006-03-28 20:17:13.000000000 +0200
4 @@ -54,23 +54,8 @@
5
6 ifeq ($(majver), 2.4)
7
8 -CC = gcc
9 -LD = ld
10 -CFLAGS = -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -pipe @KERNELCFLAGS@
11 -CPPFLAGS = -I@kernelsrc@/include -I. -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DFUSE_VERSION=\"$(VERSION)\" @KERNELCPPFLAGS@
12 -
13 fuse_objs = dev.o dir.o file.o inode.o compat/parser.o
14
15 -SUFFIXES = .c .o .s
16 -
17 -all-spec: fuse.o
18 -
19 -.c.o:
20 - $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
21 -
22 -fuse.o: $(fuse_objs)
23 - $(LD) -r -o fuse.o $(fuse_objs)
24 -
25 fuse_headers = fuse_i.h fuse_kernel.h
26
27 dev.o: $(fuse_headers)
28 @@ -78,6 +63,16 @@
29 file.o: $(fuse_headers)
30 inode.o: $(fuse_headers)
31
32 +EXTRA_CFLAGS += -DFUSE_VERSION=\"$(VERSION)\"
33 +
34 +obj-m := $(fuse_objs)
35 +obj-m := $(O_TARGET)
36 +
37 +-include $(TOPDIR)/Rules.make
38 +
39 +all-spec:
40 + $(MAKE) -C @kernelsrc@ TOPDIR=@kernelsrc@ SUBDIRS=$(PWD) modules
41 +
42 else
43
44 EXTRA_CFLAGS += -DFUSE_VERSION=\"$(VERSION)\"