Skip to content
Snippets Groups Projects
Commit f9189ae6 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

Olimex STM32 P107: Add native Windows build support. From Max Holtzberg

parent b9a38cea
No related branches found
No related tags found
No related merge requests found
......@@ -6360,4 +6360,6 @@
Thomas Grubler (2014-1-2).
* tools/configure.c and mkdeps.c: Fixes for Windows build issues
from Max Holtzberg (2014-1-4).
* configs/olimex-stm32-p107/nsh/Make.defs: Add native Windoes build
support for the Olimex STM32 P107. From Max Holtzberg (2014-1-4).
......@@ -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++
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment