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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
b8f20fdc3a58 normalise licence headers and attributions
wookey <wookey>
parents: 145
diff changeset
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
b8f20fdc3a58 normalise licence headers and attributions
wookey <wookey>
parents: 145
diff changeset
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
b8f20fdc3a58 normalise licence headers and attributions
wookey <wookey>
parents: 145
diff changeset
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
b8f20fdc3a58 normalise licence headers and attributions
wookey <wookey>
parents: 145
diff changeset
11 # This program is free software; you can redistribute it and/or modify
b8f20fdc3a58 normalise licence headers and attributions
wookey <wookey>
parents: 145
diff changeset
12 # it under the terms of the GNU General Public License version 2 as
b8f20fdc3a58 normalise licence headers and attributions
wookey <wookey>
parents: 145
diff changeset
13 # published by the Free Software Foundation.
b8f20fdc3a58 normalise licence headers and attributions
wookey <wookey>
parents: 145
diff changeset
14
b8f20fdc3a58 normalise licence headers and attributions
wookey <wookey>
parents: 145
diff changeset
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
fc64cbc8d7fa *** empty log message ***
charles <charles>
parents:
diff changeset
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
fc64cbc8d7fa *** empty log message ***
charles <charles>
parents:
diff changeset
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
2c3cea26b1ca Rolling in Ians and other changes
charles <charles>
parents: 173
diff changeset
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
bfcd23bfa720 Add missing files to make
charles <charles>
parents: 85
diff changeset
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
bfcd23bfa720 Add missing files to make
charles <charles>
parents: 85
diff changeset
26 yaffs2-objs += yaffs_checkptrw.o yaffs_nand.o
8
fc64cbc8d7fa *** empty log message ***
charles <charles>
parents:
diff changeset
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
fc64cbc8d7fa *** empty log message ***
charles <charles>
parents:
diff changeset
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
fc64cbc8d7fa *** empty log message ***
charles <charles>
parents:
diff changeset
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
fc64cbc8d7fa *** empty log message ***
charles <charles>
parents:
diff changeset
37
fc64cbc8d7fa *** empty log message ***
charles <charles>
parents:
diff changeset
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