fix accidental tab
[openwrt.git] / 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,18 @@
29 file.o: $(fuse_headers)
30 inode.o: $(fuse_headers)
31
32 +EXTRA_CFLAGS += -DFUSE_VERSION=\"$(VERSION)\"
33 +
34 +O_TARGET := fuse.o
35 +
36 +obj-y := $(fuse_objs)
37 +obj-m := $(O_TARGET)
38 +
39 +-include $(TOPDIR)/Rules.make
40 +
41 +all-spec:
42 + $(MAKE) -C @kernelsrc@ TOPDIR=@kernelsrc@ SUBDIRS=$(PWD) modules
43 +
44 else
45
46 EXTRA_CFLAGS += -DFUSE_VERSION=\"$(VERSION)\"
This page took 0.055898 seconds and 5 git commands to generate.