fix ar7 compile
[openwrt.git] / target / linux / package / fuse / patches / 101-kmod_build.patch
1 --- fuse-2.2.1-orig/kernel/Makefile.in 2005-01-09 13:07:00.000000000 +0100
2 +++ fuse-2.2.1-1/kernel/Makefile.in 2005-04-06 14:48:59.000000000 +0200
3 @@ -31,11 +31,11 @@
4 install-y: all
5 $(mkdir_p) $(DESTDIR)$(fusemoduledir)
6 $(INSTALL) -m 644 $(fusemodule) $(DESTDIR)$(fusemoduledir)/$(fusemodule)
7 - -/sbin/depmod -a
8 +# -/sbin/depmod -a
9
10 uninstall-y:
11 rm -f $(DESTDIR)$(fusemoduledir)/$(fusemodule)
12 - -/sbin/depmod -a
13 +# -/sbin/depmod -a
14
15 clean:
16 -rm -f $(fusemodule) *.o .*.cmd *.mod.c *.ko *.s */*.o
17 @@ -54,23 +54,8 @@
18
19 ifeq ($(majver), 2.4)
20
21 -CC = gcc
22 -LD = ld
23 -CFLAGS = -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -pipe
24 -CPPFLAGS = -I@kernelsrc@/include -I. -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DFUSE_VERSION=\"$(VERSION)\" @KERNELCPPFLAGS@
25 -
26 fuse_objs = dev.o dir.o file.o inode.o compat/parser.o
27
28 -SUFFIXES = .c .o .s
29 -
30 -all-spec: fuse.o
31 -
32 -.c.o:
33 - $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
34 -
35 -fuse.o: $(fuse_objs)
36 - $(LD) -r -o fuse.o $(fuse_objs)
37 -
38 fuse_headers = fuse_i.h fuse_kernel.h
39
40 dev.o: $(fuse_headers)
41 @@ -78,6 +63,18 @@
42 file.o: $(fuse_headers)
43 inode.o: $(fuse_headers)
44
45 +EXTRA_CFLAGS += -DFUSE_VERSION=\"$(VERSION)\"
46 +
47 +O_TARGET := fuse.o
48 +
49 +obj-y := $(fuse_objs)
50 +obj-m := $(O_TARGET)
51 +
52 +-include $(TOPDIR)/Rules.make
53 +
54 +all-spec:
55 + $(MAKE) -C @kernelsrc@ TOPDIR=@kernelsrc@ SUBDIRS=$(PWD) modules
56 +
57 else
58
59 EXTRA_CFLAGS += -DFUSE_VERSION=\"$(VERSION)\"
This page took 0.045022 seconds and 5 git commands to generate.