Mercurial > yaffs-ecoscentric-gpl
annotate Makefile @ 430:5a26e5bec29d
yaffs: Tweak tests to use log files
This runs faster than spewing onto a terminal.
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
| author | Charles Manning <cdhmanning@gmail.com> |
|---|---|
| date | Mon, 17 May 2010 11:02:42 +1200 |
| parents | d94b1449bddc |
| children |
| rev | line source |
|---|---|
|
413
d94b1449bddc
yaffs: Integrate Android tree differences
Charles Manning <cdhmanning@gmail.com>
parents:
409
diff
changeset
|
1 # Main Makefile for out-of-tree yaffs2.ko building |
|
173
ca55a81a9e6b
Fix all Makefile headers to be the same format
colin <colin>
parents:
168
diff
changeset
|
2 # |
|
ca55a81a9e6b
Fix all Makefile headers to be the same format
colin <colin>
parents:
168
diff
changeset
|
3 # |
| 168 | 4 # YAFFS: Yet Another Flash File System. A NAND-flash specific file system. |
|
198
b7f785925166
Cleanup patch - Remove all trailing whitespace and fix a few typos.
wookey <wookey>
parents:
179
diff
changeset
|
5 # |
|
409
b5309c9b6d7f
yaffs Some cleanups.
Charles Manning <cdhmanning@gmail.com>
parents:
198
diff
changeset
|
6 # Copyright (C) 2002-2010 Aleph One Ltd. |
| 168 | 7 # for Toby Churchill Ltd and Brightstar Engineering |
|
198
b7f785925166
Cleanup patch - Remove all trailing whitespace and fix a few typos.
wookey <wookey>
parents:
179
diff
changeset
|
8 # |
| 168 | 9 # Created by Charles Manning <charles@aleph1.co.uk> |
|
198
b7f785925166
Cleanup patch - Remove all trailing whitespace and fix a few typos.
wookey <wookey>
parents:
179
diff
changeset
|
10 # |
| 168 | 11 # This program is free software; you can redistribute it and/or modify |
| 12 # it under the terms of the GNU General Public License version 2 as | |
| 13 # published by the Free Software Foundation. | |
| 14 | |
| 15 | |
|
80
82fbfedb0261
Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty <marty>
parents:
58
diff
changeset
|
16 ifneq ($(KERNELRELEASE),) |
|
85
3627c9a05641
Silly Marty, picked wrong guard for moduleconfig.h
marty <marty>
parents:
80
diff
changeset
|
17 EXTRA_CFLAGS += -DYAFFS_OUT_OF_TREE |
| 8 | 18 |
|
80
82fbfedb0261
Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty <marty>
parents:
58
diff
changeset
|
19 obj-m := yaffs2.o |
| 8 | 20 |
|
80
82fbfedb0261
Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty <marty>
parents:
58
diff
changeset
|
21 yaffs2-objs := yaffs_mtdif.o yaffs_mtdif2.o |
| 179 | 22 yaffs2-objs += yaffs_mtdif1.o yaffs_packedtags1.o |
|
80
82fbfedb0261
Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty <marty>
parents:
58
diff
changeset
|
23 yaffs2-objs += yaffs_ecc.o yaffs_fs.o yaffs_guts.o |
| 145 | 24 yaffs2-objs += yaffs_packedtags2.o yaffs_qsort.o |
|
80
82fbfedb0261
Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty <marty>
parents:
58
diff
changeset
|
25 yaffs2-objs += yaffs_tagscompat.o yaffs_tagsvalidity.o |
| 145 | 26 yaffs2-objs += yaffs_checkptrw.o yaffs_nand.o |
| 8 | 27 |
|
80
82fbfedb0261
Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty <marty>
parents:
58
diff
changeset
|
28 else |
|
82fbfedb0261
Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty <marty>
parents:
58
diff
changeset
|
29 KERNELDIR ?= /lib/modules/$(shell uname -r)/build |
|
82fbfedb0261
Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty <marty>
parents:
58
diff
changeset
|
30 PWD := $(shell pwd) |
| 8 | 31 |
|
80
82fbfedb0261
Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty <marty>
parents:
58
diff
changeset
|
32 modules default: |
|
82fbfedb0261
Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty <marty>
parents:
58
diff
changeset
|
33 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules |
| 8 | 34 |
|
80
82fbfedb0261
Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty <marty>
parents:
58
diff
changeset
|
35 mi modules_install: |
|
82fbfedb0261
Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty <marty>
parents:
58
diff
changeset
|
36 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install |
| 8 | 37 |
| 38 clean: | |
|
80
82fbfedb0261
Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty <marty>
parents:
58
diff
changeset
|
39 $(MAKE) -C $(KERNELDIR) M=$(PWD) clean |
|
82fbfedb0261
Modified Makefile to allow 'out of kernel tree' module building for 2.6.x
marty <marty>
parents:
58
diff
changeset
|
40 endif |
