Olimex STM32 P107: Add native Windows build support. From Max Holtzberg
This commit is contained in:
parent
b9a38cea22
commit
f9189ae64e
@ -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++
|
||||
|
Loading…
x
Reference in New Issue
Block a user