summaryrefslogtreecommitdiff
path: root/nuttx/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/drivers')
-rw-r--r--nuttx/drivers/Makefile16
1 files changed, 2 insertions, 14 deletions
diff --git a/nuttx/drivers/Makefile b/nuttx/drivers/Makefile
index 9f8344621..a4a3c826d 100644
--- a/nuttx/drivers/Makefile
+++ b/nuttx/drivers/Makefile
@@ -47,25 +47,13 @@ ifeq ($(CONFIG_USBDEV),y)
include usbdev/Make.defs
ROOTDEPPATH = --dep-path .
USBDEVDEPPATH = --dep-path usbdev
-ifeq ($(COMPILER),zneocc.exe)
-USBDEVDIR = ${shell cygpath -w $(TOPDIR)/drivers/usbdev}
-CFLAGS += -usrinc:'$(USBDEVDIR)'
-else
-USBDEVDIR = $(TOPDIR)/drivers/usbdev
-CFLAGS += -I$(USBDEVDIR)
-endif
+CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh "$CC" $(TOPDIR)/drivers/usbdev}
endif
include mmcsd/Make.defs
ROOTDEPPATH = --dep-path .
MMCSDDEPPATH = --dep-path mmcsd
-ifeq ($(COMPILER),zneocc.exe)
-MMCSDDIR = ${shell cygpath -w $(TOPDIR)/drivers/mmcsd}
-CFLAGS += -usrinc:'$(MMCSDDIR)'
-else
-MMCSDDIR = $(TOPDIR)/drivers/mmcsd
-CFLAGS += -I$(MMCSDDIR)
-endif
+CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh "$CC" $(TOPDIR)/drivers/mmcsd}
ASRCS = $(NET_ASRCS) $(USBDEV_ASRCS) $(MMCSD_ASRCS)
AOBJS = $(ASRCS:.S=$(OBJEXT))