[package] firewall: do not check for module availability, let iptables fail if a...
[openwrt.git] / package / fuse / patches-kernel24 / 101-kmod_build.patch
1 --- a/kernel/Makefile.in
2 +++ b/kernel/Makefile.in
3 @@ -54,23 +54,8 @@ distdir: $(DISTFILES) $(COMPATDISTFILES)
4
5 ifeq ($(majver), 2.4)
6
7 -CC = gcc
8 -LD = ld
9 -CFLAGS = -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -pipe @KERNELCFLAGS@
10 -CPPFLAGS = -I@kernelsrc@/include -I. -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DFUSE_VERSION=\"$(VERSION)\" @KERNELCPPFLAGS@
11 -
12 fuse_objs = dev.o dir.o file.o inode.o compat/parser.o
13
14 -SUFFIXES = .c .o .s
15 -
16 -all-spec: fuse.o
17 -
18 -.c.o:
19 - $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
20 -
21 -fuse.o: $(fuse_objs)
22 - $(LD) -r -o fuse.o $(fuse_objs)
23 -
24 fuse_headers = fuse_i.h fuse_kernel.h
25
26 dev.o: $(fuse_headers)
27 @@ -78,6 +63,18 @@ dir.o: $(fuse_headers)
28 file.o: $(fuse_headers)
29 inode.o: $(fuse_headers)
30
31 +EXTRA_CFLAGS += -DFUSE_VERSION=\"$(VERSION)\"
32 +
33 +O_TARGET := fuse.o
34 +
35 +obj-y := $(fuse_objs)
36 +obj-m := $(O_TARGET)
37 +
38 +-include $(TOPDIR)/Rules.make
39 +
40 +all-spec:
41 + $(MAKE) -C @kernelsrc@ TOPDIR=@kernelsrc@ SUBDIRS=$(PWD) modules
42 +
43 else
44
45 EXTRA_CFLAGS += -DFUSE_VERSION=\"$(VERSION)\"
This page took 0.048271 seconds and 5 git commands to generate.