fix typo in my prev commit
[openwrt.git] / openwrt / target / linux / package / mini_fo / patches / 101-kmod_build.patch
1 diff -ruN mini_fo-old/Makefile mini_fo-new/Makefile
2 --- mini_fo-old/Makefile 2005-05-08 01:22:51.000000000 +0200
3 +++ mini_fo-new/Makefile 2005-08-15 04:37:22.000000000 +0200
4 @@ -26,36 +26,32 @@
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 + $(MAKE) -C ${KERNEL_SRC} SUBDIRS=$(shell pwd) modules
42
43 TAGS:
44 etags -t *.[hc]
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.047998 seconds and 5 git commands to generate.