Add cross compilation for VxWorks 6.9

This commit is contained in:
2022-02-03 17:35:58 +01:00
parent 6fcdcb625e
commit bfc70acdee
3 changed files with 38 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
# CONFIG.Vx.ppc604_long,v 1.1.2.1 2002/12/05 20:44:26 jba Exp
#
# This file is maintained by the EPICS community.
GCC_OPT_YES = -O2
# Vx GNU cross compiler suffix
CMPLR_SUFFIX = ppc
# For Vx directories of form:
# $(VX_DIR)/$(HOST_ARCH).$(ARCH_CLASS)/bin
ARCH_CLASS = ppc
# Architecture specific build flags
ARCH_DEP_CPPFLAGS = -mcpu=604 -DCPU=PPC604
ARCH_DEP_CFLAGS = -mstrict-align -mlongcall -fno-implicit-fp
ARCH_DEP_CXXFLAGS = $(ARCH_DEP_CFLAGS)

View File

@@ -55,7 +55,7 @@ endif
# sbs_pc6
# vxipc
#
CROSS_COMPILER_TARGET_ARCHS=T2-ppc604
CROSS_COMPILER_TARGET_ARCHS=T2-ppc604 V69-ppc604
# If only a subset of the host architectures perform

View File

@@ -0,0 +1,20 @@
VXWORKS_VERSION = 6.9
WIND_HOST_TYPE = x86-linux2
WIND_BASE=/afs/psi.ch/project/vxworks/VxWorks$(VXWORKS_VERSION)
LD_LIBRARY_PATH+=:$(WIND_BASE)/lmapi-5.0/$(WIND_HOST_TYPE)/lib
export WIND_BASE LD_LIBRARY_PATH
VX_DIR = $(WIND_BASE)/vxworks-$(VXWORKS_VERSION)
OP_SYS_INCLUDES += -I$(VX_DIR)/target/h/wrn/coreip
GNU_BIN := $(wildcard $(WIND_BASE)/gnu/*-vxworks-*/$(WIND_HOST_TYPE)/bin)
undefine GCC_EXEC_PREFIX
GCC = $(GNU_BIN)/cc$(CMPLR_SUFFIX)
CPP = $(GNU_BIN)/cc$(CMPLR_SUFFIX) -x c -E
G++ = $(GNU_BIN)/cc$(CMPLR_SUFFIX)
NM = $(VX_DIR)/host/binutils/$(WIND_HOST_TYPE)/bin/nm$(CMPLR_SUFFIX)
VXWORKS_MAJOR_VERSION = 6