diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-15 00:03:58 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-15 00:03:58 +0000 |
commit | 033512b6c83b46c4c052499faba7cc4b02ff4153 (patch) | |
tree | e58bfa1dec5a2203c7ac3e9823d2c624c6bd9ffb /nuttx/drivers/mtd | |
parent | 18fb56f8c1c8676028f1235c0567d2d9a0171c2d (diff) | |
download | px4-nuttx-033512b6c83b46c4c052499faba7cc4b02ff4153.tar.gz px4-nuttx-033512b6c83b46c4c052499faba7cc4b02ff4153.tar.bz2 px4-nuttx-033512b6c83b46c4c052499faba7cc4b02ff4153.zip |
Don't build drivers/mtd unless CONFIG_MTD is defined (Denis Carikli)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5519 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/mtd')
-rw-r--r-- | nuttx/drivers/mtd/Make.defs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nuttx/drivers/mtd/Make.defs b/nuttx/drivers/mtd/Make.defs index 7db7592d4..3102f1447 100644 --- a/nuttx/drivers/mtd/Make.defs +++ b/nuttx/drivers/mtd/Make.defs @@ -37,6 +37,8 @@ # Include MTD drivers +ifeq ($(CONFIG_MTD),y) + CSRCS += at45db.c flash_eraseall.c ftl.c m25px.c rammtd.c ramtron.c ifeq ($(CONFIG_MTD_AT24XX),y) @@ -60,3 +62,4 @@ endif DEPPATH += --dep-path mtd VPATH += :mtd +endif |