summaryrefslogtreecommitdiff
path: root/nuttx/drivers/Makefile
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-12-14 03:39:31 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-12-14 03:39:31 +0000
commit010a719bcce8bbc853771f7c00551a5b2d60c90e (patch)
tree895ea6967e12547bfac32dc4c509bcd93b9ad401 /nuttx/drivers/Makefile
parentf04dc38cb747d31f9f946e7f78b970a6d9986978 (diff)
downloadpx4-nuttx-010a719bcce8bbc853771f7c00551a5b2d60c90e.tar.gz
px4-nuttx-010a719bcce8bbc853771f7c00551a5b2d60c90e.tar.bz2
px4-nuttx-010a719bcce8bbc853771f7c00551a5b2d60c90e.zip
Add drivers/usbhost
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3171 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/Makefile')
-rw-r--r--nuttx/drivers/Makefile18
1 files changed, 14 insertions, 4 deletions
diff --git a/nuttx/drivers/Makefile b/nuttx/drivers/Makefile
index f59f2fcd6..ce80133b4 100644
--- a/nuttx/drivers/Makefile
+++ b/nuttx/drivers/Makefile
@@ -64,6 +64,13 @@ USBDEVDEPPATH = --dep-path usbdev
CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(TOPDIR)/drivers/usbdev}
endif
+ifeq ($(CONFIG_USBHOST),y)
+include usbhost/Make.defs
+ROOTDEPPATH = --dep-path .
+USBHOSTDEPPATH = --dep-path usbhost
+CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(TOPDIR)/drivers/usbhost}
+endif
+
include mmcsd/Make.defs
ROOTDEPPATH = --dep-path .
MMCSDDEPPATH = --dep-path mmcsd
@@ -88,7 +95,8 @@ ROOTDEPPATH = --dep-path .
MTDDEPPATH = --dep-path mtd
ASRCS = $(SERIAL_ASRCS) $(NET_ASRCS) $(PIPE_ASRCS) $(USBDEV_ASRCS) \
- $(MMCSD_ASRCS) $(LCD_ASRCS) $(BCH_ASRCS) $(MTD_ASRCS)
+ $(USBHOST_ASRCS) $(MMCSD_ASRCS) $(LCD_ASRCS) $(BCH_ASRCS) \
+ $(MTD_ASRCS)
AOBJS = $(ASRCS:.S=$(OBJEXT))
CSRCS =
@@ -99,7 +107,8 @@ CSRCS += ramdisk.c rwbuffer.c
endif
endif
CSRCS += $(SERIAL_CSRCS) $(NET_CSRCS) $(PIPE_CSRCS) $(USBDEV_CSRCS) \
- $(MMCSD_CSRCS) $(LCD_CSRCS) $(BCH_CSRCS) $(MTD_CSRCS)
+ $(USBHOST_CSRCS) $(MMCSD_CSRCS) $(LCD_CSRCS) $(BCH_CSRCS) \
+ $(MTD_CSRCS)
COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
@@ -107,7 +116,7 @@ OBJS = $(AOBJS) $(COBJS)
BIN = libdrivers$(LIBEXT)
-VPATH = serial:net:pipes:usbdev:mmcsd:lcd:bch:mtd
+VPATH = serial:net:pipes:usbdev:usbhost:mmcsd:lcd:bch:mtd
all: $(BIN)
@@ -124,7 +133,8 @@ $(BIN): $(OBJS)
.depend: Makefile $(SRCS)
@$(MKDEP) $(ROOTDEPPATH) $(SERIALDEPPATH) $(NETDEPPATH) $(PIPEDEPPATH) \
- $(USBDEVDEPPATH) $(MMCSDDEPPATH) $(LCDDEPPATH) $(BCHDEPPATH) $(MTDDEPPATH) \
+ $(USBDEVDEPPATH) $(USBHOSTDEPPATH) $(MMCSDDEPPATH) $(LCDDEPPATH) \
+ $(BCHDEPPATH) $(MTDDEPPATH) \
$(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
@touch $@