fix 2.6.16 issues, from mini_fo git repository
[openwrt.git] / target / linux / package / mini_fo / patches / 101-kmod_build.patch
1 diff -Nur mini_fo-0-6-2-pre1/Makefile mini_fo-0-6-2-pre1.patched/Makefile
2 --- mini_fo-0-6-2-pre1/Makefile 2005-10-15 12:49:43.000000000 +0200
3 +++ mini_fo-0-6-2-pre1.patched/Makefile 2005-12-25 14:03:36.864205250 +0100
4 @@ -26,36 +26,29 @@
5 # allow custom override of TOPINC for fistgen developers
6 -include fistdev.mk
7
8 +obj-m := mini_fo.o
9 +mini_fo-objs := meta.o dentry.o file.o inode.o main.o super.o state.o aux.o
10 +
11 ifeq ($(KERNELVERSION),2.4)
12 -CFLAGS = -D__KERNEL__ -DMODULE -DFISTGEN -I. ${TOPINC} -O2 -Wall -Wno-unused -g -fno-common -fno-schedule-insns -fno-schedule-insns2 -fno-strict-aliasing -msoft-float -Werror
13 -ifeq ($(ARCH),um)
14 -CFLAGS += $(shell cd $(KERNEL_SRC) ; make script 'SCRIPT=@echo $$(CFLAGS)' ARCH=um)
15 -endif
16 -UCFLAGS = -DFISTGEN -I. ${TOPINC} -g -O2 -Wall -Wno-unused -Werror
17 -endif
18
19 -CC = $(CROSS_COMPILE)gcc
20 -LD = $(CROSS_COMPILE)ld
21 +O_TARGET := $(obj-m)
22 +obj-y := $(mini_fo-objs)
23
24 -obj-m := mini_fo.o
25 -mini_fo-objs := meta.o dentry.o file.o inode.o main.o super.o state.o aux.o
26 +-include $(TOPDIR)/Rules.make
27 +
28 +endif
29
30 all: mini_fo$(KERNELVERSION)
31
32 -mini_fo2.4: ${obj-m}
33 +mini_fo2.4:
34 + $(MAKE) -C ${KERNEL_SRC} TOPDIR="${KERNEL_SRC}" SUBDIRS=$(shell pwd) modules
35
36 mini_fo2.6:
37 - make -C ${KERNEL_SRC} SUBDIRS=$(PWD) modules
38 -
39 -${obj-m}: ${mini_fo-objs}
40 - $(LD) -o ${obj-m} -r ${mini_fo-objs}
41 -
42 -tags:
43 - ctags -R -e
44 + $(MAKE) -C ${KERNEL_SRC} SUBDIRS=$(shell pwd) modules
45
46 clean:
47 ifeq ($(KERNELVERSION),2.6)
48 - -make -C ${KERNEL_SRC} SUBDIRS=$(PWD) clean
49 + -$(MAKE) -C ${KERNEL_SRC} SUBDIRS=$(shell pwd) clean
50 endif
51 rm -f ${obj-m} ${mini_fo-objs} ${obj-m:.o=.ko} *.d .*.flags *~
52 rm -f TAGS
This page took 0.048636 seconds and 5 git commands to generate.