Makefile 1.46 KB
Newer Older
Linus Torvalds's avatar
Linus Torvalds committed
1 2 3 4
#
# Makefile for the memory technology device drivers.
#
#
Linus Torvalds's avatar
Linus Torvalds committed
5
# $Id: Makefile,v 1.63 2001/06/13 09:43:07 dwmw2 Exp $
Linus Torvalds's avatar
Linus Torvalds committed
6 7


Linus Torvalds's avatar
Linus Torvalds committed
8 9
obj-y           += chips/chipslink.o maps/mapslink.o \
			devices/devlink.o nand/nandlink.o
Linus Torvalds's avatar
Linus Torvalds committed
10 11 12 13 14 15
obj-m           :=
obj-n           :=
obj-            :=

O_TARGET	:= mtdlink.o

Linus Torvalds's avatar
Linus Torvalds committed
16
export-objs	:= mtdcore.o mtdpart.o redboot.o bootldr.o afs.o
Linus Torvalds's avatar
Linus Torvalds committed
17

Linus Torvalds's avatar
Linus Torvalds committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
mod-subdirs	:= 
subdir-y	:= chips maps devices nand
subdir-m	:= $(subdir-y)

#                       *** BIG UGLY NOTE ***
#
# The shiny new inter_module_xxx has introduced yet another ugly link
# order dependency, which I'd previously taken great care to avoid.
# We now have to ensure that the chip drivers are initialised before the
# map drivers, and that the doc200[01] drivers are initialised before
# docprobe.
#
# We'll hopefully merge the doc200[01] drivers and docprobe back into
# a single driver some time soon, but the CFI drivers are going to have
# to stay like that.
#
# Urgh.
# 
# dwmw2 21/11/0

# Core functionality.
Linus Torvalds's avatar
Linus Torvalds committed
39
obj-$(CONFIG_MTD)		+= mtdcore.o
Linus Torvalds's avatar
Linus Torvalds committed
40 41 42
obj-$(CONFIG_MTD_PARTITIONS)	+= mtdpart.o
obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o
obj-$(CONFIG_MTD_BOOTLDR_PARTS) += bootldr.o
Linus Torvalds's avatar
Linus Torvalds committed
43
obj-$(CONFIG_MTD_AFS_PARTS)	+= afs.o
Linus Torvalds's avatar
Linus Torvalds committed
44 45

# 'Users' - code which presents functionality to userspace.
Linus Torvalds's avatar
Linus Torvalds committed
46 47
obj-$(CONFIG_MTD_CHAR)		+= mtdchar.o
obj-$(CONFIG_MTD_BLOCK)		+= mtdblock.o
Linus Torvalds's avatar
Linus Torvalds committed
48
obj-$(CONFIG_MTD_BLOCK_RO)	+= mtdblock_ro.o
Linus Torvalds's avatar
Linus Torvalds committed
49
obj-$(CONFIG_FTL)		+= ftl.o
Linus Torvalds's avatar
Linus Torvalds committed
50 51 52
obj-$(CONFIG_NFTL)		+= nftl.o

nftl-objs	:= nftlcore.o nftlmount.o
Linus Torvalds's avatar
Linus Torvalds committed
53 54

include $(TOPDIR)/Rules.make