annotate Makefile @ 151:b9ba4e46d2e5 pre-large-nand-changes

Add missing files to make
author charles
date Tue, 03 Oct 2006 03:26:58 +0100
parents 126756b6912d
children 7d11ae6795e4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
83
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents: 60
diff changeset
1 ifneq ($(KERNELRELEASE),)
88
126756b6912d Silly Marty, picked wrong guard for moduleconfig.h
marty
parents: 83
diff changeset
2 EXTRA_CFLAGS += -DYAFFS_OUT_OF_TREE
9
af67b6d281b8 *** empty log message ***
charles
parents:
diff changeset
3
83
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents: 60
diff changeset
4 obj-m := yaffs2.o
9
af67b6d281b8 *** empty log message ***
charles
parents:
diff changeset
5
83
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents: 60
diff changeset
6 yaffs2-objs := yaffs_mtdif.o yaffs_mtdif2.o
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents: 60
diff changeset
7 yaffs2-objs += yaffs_ecc.o yaffs_fs.o yaffs_guts.o
151
b9ba4e46d2e5 Add missing files to make
charles
parents: 88
diff changeset
8 yaffs2-objs += yaffs_packedtags2.o yaffs_qsort.o
83
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents: 60
diff changeset
9 yaffs2-objs += yaffs_tagscompat.o yaffs_tagsvalidity.o
151
b9ba4e46d2e5 Add missing files to make
charles
parents: 88
diff changeset
10 yaffs2-objs += yaffs_checkptrw.o yaffs_nand.o
9
af67b6d281b8 *** empty log message ***
charles
parents:
diff changeset
11
83
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents: 60
diff changeset
12 else
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents: 60
diff changeset
13 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents: 60
diff changeset
14 PWD := $(shell pwd)
9
af67b6d281b8 *** empty log message ***
charles
parents:
diff changeset
15
83
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents: 60
diff changeset
16 modules default:
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents: 60
diff changeset
17 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
9
af67b6d281b8 *** empty log message ***
charles
parents:
diff changeset
18
83
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents: 60
diff changeset
19 mi modules_install:
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents: 60
diff changeset
20 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
9
af67b6d281b8 *** empty log message ***
charles
parents:
diff changeset
21
af67b6d281b8 *** empty log message ***
charles
parents:
diff changeset
22 clean:
83
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents: 60
diff changeset
23 $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
51cad800e99c Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty
parents: 60
diff changeset
24 endif