Added build files for cygwin to cross-compile linux-arm targets

Slightly strange combination and not actually tested, but could
be useful for some developers -- some FPGA tool-sets come with a
Cygwin cross-build environment for their target devices.
This commit is contained in:
Andrew Johnson
2016-02-26 11:19:37 -06:00
parent 5ee778b0c2
commit fa07bc3efe
5 changed files with 73 additions and 1 deletions

View File

@ -0,0 +1,33 @@
# CONFIG.cygwin-x86.linux-arm
#
# Definitions for cywgin-x86 host - linux-arm target builds
# Override these settings in CONFIG_SITE.cygwin-x86.linux-arm
#-------------------------------------------------------
VALID_BUILDS = Ioc
GNU_TARGET = arm-linux
# prefix of compiler tools
CMPLR_SUFFIX =
CMPLR_PREFIX = $(addsuffix -,$(GNU_TARGET))
# Provide a link-time path for shared libraries
SHRLIBDIR_RPATH_LDFLAGS_YES += $(SHRLIB_DEPLIB_DIRS:%=-Wl,-rpath-link,%)
SHRLIBDIR_LDFLAGS += $(SHRLIBDIR_RPATH_LDFLAGS_$(LINKER_USE_RPATH))
# Provide a link-time path for products
PRODDIR_RPATH_LDFLAGS_YES += $(PROD_DEPLIB_DIRS:%=-Wl,-rpath-link,%)
PRODDIR_LDFLAGS += $(PRODDIR_RPATH_LDFLAGS_$(LINKER_USE_RPATH))
# Provide a link-time path for readline
RUNTIME_LDFLAGS_READLINE_YES = -Wl,-rpath-link,$(GNU_DIR)/lib
RUNTIME_LDFLAGS_READLINE = $(RUNTIME_LDFLAGS_READLINE_$(LINKER_USE_RPATH))
RUNTIME_LDFLAGS_READLINE_CURSES = $(RUNTIME_LDFLAGS_READLINE_$(LINKER_USE_RPATH))
RUNTIME_LDFLAGS_READLINE_NCURSES = $(RUNTIME_LDFLAGS_READLINE_$(LINKER_USE_RPATH))
# Library flags
STATIC_LDFLAGS_YES= -Wl,-Bstatic
STATIC_LDFLAGS_NO=
STATIC_LDLIBS_YES= -Wl,-Bdynamic
STATIC_LDLIBS_NO=

View File

@ -0,0 +1,7 @@
# CONFIG.cygwin-x86_64.linux-arm
#
# Definitions for cygwin-x86_64 host - linux-arkm targets
# Override these settings in CONFIG_SITE.cygwin-x86_64.linux-arm
#-------------------------------------------------------
include $(CONFIG)/os/CONFIG.cygwin-x86.linux-arm

View File

@ -6,5 +6,5 @@
# Site override definitions for cygwin-x86 host builds
#-------------------------------------------------------
#CROSS_COMPILER_TARGET_ARCHS =
#CROSS_COMPILER_TARGET_ARCHS = linux-arm

View File

@ -0,0 +1,16 @@
# CONFIG_SITE.cygwin-x86.linux-arm
#
# $Revision-Id$
#
# Site specific definitions for cygwin-x86 host - linux-arm target builds
#-------------------------------------------------------
# Tools install path
GNU_DIR = /usr/local/arm-linux
# GNU crosscompiler target name
GNU_TARGET = arm-linux
STATIC_BUILD = YES
SHARED_LIBRARIES = NO

View File

@ -0,0 +1,16 @@
# CONFIG_SITE.cygwin-x86_64.linux-arm
#
# $Revision-Id$
#
# Site specific definitions for cygwin-x86_64 host - linux-arm target builds
#-------------------------------------------------------
# Tools install path
GNU_DIR = /usr/local/arm-linux
# GNU crosscompiler target name
GNU_TARGET = arm-linux
STATIC_BUILD = YES
SHARED_LIBRARIES = NO