From fa07bc3efe6c92b0201d63010c3917eb61204cc5 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Fri, 26 Feb 2016 11:19:37 -0600 Subject: [PATCH] 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. --- configure/os/CONFIG.cygwin-x86.linux-arm | 33 +++++++++++++++++++ configure/os/CONFIG.cygwin-x86_64.linux-arm | 7 ++++ configure/os/CONFIG_SITE.cygwin-x86.Common | 2 +- configure/os/CONFIG_SITE.cygwin-x86.linux-arm | 16 +++++++++ .../os/CONFIG_SITE.cygwin-x86_64.linux-arm | 16 +++++++++ 5 files changed, 73 insertions(+), 1 deletion(-) create mode 100644 configure/os/CONFIG.cygwin-x86.linux-arm create mode 100644 configure/os/CONFIG.cygwin-x86_64.linux-arm create mode 100644 configure/os/CONFIG_SITE.cygwin-x86.linux-arm create mode 100644 configure/os/CONFIG_SITE.cygwin-x86_64.linux-arm diff --git a/configure/os/CONFIG.cygwin-x86.linux-arm b/configure/os/CONFIG.cygwin-x86.linux-arm new file mode 100644 index 000000000..464565f95 --- /dev/null +++ b/configure/os/CONFIG.cygwin-x86.linux-arm @@ -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= + diff --git a/configure/os/CONFIG.cygwin-x86_64.linux-arm b/configure/os/CONFIG.cygwin-x86_64.linux-arm new file mode 100644 index 000000000..f7f37b8e6 --- /dev/null +++ b/configure/os/CONFIG.cygwin-x86_64.linux-arm @@ -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 diff --git a/configure/os/CONFIG_SITE.cygwin-x86.Common b/configure/os/CONFIG_SITE.cygwin-x86.Common index b99ac8e85..d81e414ad 100644 --- a/configure/os/CONFIG_SITE.cygwin-x86.Common +++ b/configure/os/CONFIG_SITE.cygwin-x86.Common @@ -6,5 +6,5 @@ # Site override definitions for cygwin-x86 host builds #------------------------------------------------------- -#CROSS_COMPILER_TARGET_ARCHS = +#CROSS_COMPILER_TARGET_ARCHS = linux-arm diff --git a/configure/os/CONFIG_SITE.cygwin-x86.linux-arm b/configure/os/CONFIG_SITE.cygwin-x86.linux-arm new file mode 100644 index 000000000..7630864f8 --- /dev/null +++ b/configure/os/CONFIG_SITE.cygwin-x86.linux-arm @@ -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 + diff --git a/configure/os/CONFIG_SITE.cygwin-x86_64.linux-arm b/configure/os/CONFIG_SITE.cygwin-x86_64.linux-arm new file mode 100644 index 000000000..bf48209cc --- /dev/null +++ b/configure/os/CONFIG_SITE.cygwin-x86_64.linux-arm @@ -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 +