summaryrefslogtreecommitdiff
path: root/nuttx/configs/olimex-stm32-p107
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-01-04 09:11:20 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-01-04 09:11:20 -0600
commite594add443fe7713afcc90cfe78e8bcd3145fac3 (patch)
tree3279e65c92ec30a0aecc0e78215925d366b0b41c /nuttx/configs/olimex-stm32-p107
parentcc60a6fda923b5355f856b375dad46d9a5024282 (diff)
downloadnuttx-e594add443fe7713afcc90cfe78e8bcd3145fac3.tar.gz
nuttx-e594add443fe7713afcc90cfe78e8bcd3145fac3.tar.bz2
nuttx-e594add443fe7713afcc90cfe78e8bcd3145fac3.zip
Olimex STM32 P107: Add native Windows build support. From Max Holtzberg
Diffstat (limited to 'nuttx/configs/olimex-stm32-p107')
-rw-r--r--nuttx/configs/olimex-stm32-p107/nsh/Make.defs13
1 files changed, 12 insertions, 1 deletions
diff --git a/nuttx/configs/olimex-stm32-p107/nsh/Make.defs b/nuttx/configs/olimex-stm32-p107/nsh/Make.defs
index dd75978e4..c37edd257 100644
--- a/nuttx/configs/olimex-stm32-p107/nsh/Make.defs
+++ b/nuttx/configs/olimex-stm32-p107/nsh/Make.defs
@@ -43,6 +43,16 @@ else
LDSCRIPT = ld.script
endif
+ifeq ($(CONFIG_WINDOWS_NATIVE),y)
+ # Windows-native toolchains
+ DIRLINK = $(TOPDIR)\tools\copydir.bat
+ DIRUNLINK = $(TOPDIR)\tools\unlink.bat
+ MKDEP = $(TOPDIR)\tools\mkdeps.exe
+ ARCHINCLUDES = -I. -isystem $(TOPDIR)\include
+ ARCHXXINCLUDES = -I. -isystem $(TOPDIR)\include -isystem $(TOPDIR)\include\cxx
+ ARCHSCRIPT = -T$(TOPDIR)\configs\$(CONFIG_ARCH_BOARD)\scripts\$(LDSCRIPT)
+ DELIM := $(strip /)
+else
ifeq ($(WINTOOL),y)
# Windows-native toolchains
DIRLINK = $(TOPDIR)/tools/copydir.sh
@@ -53,12 +63,13 @@ ifeq ($(WINTOOL),y)
ARCHSCRIPT = -T "${shell cygpath -w $(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/$(LDSCRIPT)}"
MAXOPTIMIZATION = -O2
else
- # Linux/Cygwin-native toolchain
+ # Linux/Cygwin-native toolchain
MKDEP = $(TOPDIR)/tools/mkdeps.sh
ARCHINCLUDES = -I. -isystem $(TOPDIR)/include
ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx
ARCHSCRIPT = -T$(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/$(LDSCRIPT)
endif
+endif
CC = $(CROSSDEV)gcc
CXX = $(CROSSDEV)g++