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