From 46141e98d5a7a3e4976bd26010072e0ab33589eb Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Thu, 5 May 2022 14:09:36 +0200 Subject: [PATCH] add RTEMS 4.9 and 5.1 support --- configure/os/CONFIG.Common.RTEMS-pc686 | 2 +- configure/os/CONFIG.Common.RTEMS49-pc386 | 2 ++ configure/os/CONFIG.Common.RTEMS51-pc686 | 2 ++ configure/os/CONFIG_SITE.Common.RTEMS | 3 +++ configure/os/CONFIG_SITE.linux-x86.Common | 4 ++++ 5 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 configure/os/CONFIG.Common.RTEMS49-pc386 create mode 100644 configure/os/CONFIG.Common.RTEMS51-pc686 diff --git a/configure/os/CONFIG.Common.RTEMS-pc686 b/configure/os/CONFIG.Common.RTEMS-pc686 index 882a2f3cb..eb31e18ca 100644 --- a/configure/os/CONFIG.Common.RTEMS-pc686 +++ b/configure/os/CONFIG.Common.RTEMS-pc686 @@ -32,7 +32,7 @@ OP_SYS_LDFLAGS += -Wl,-Ttext,0x100000 # This check must appear after the above include -ifneq ($(RTEMS_VERSION),5) +ifneq ($(firstword $(subst ., ,$(RTEMS_VERSION))),5) $(info *** This target is not compatible with the configured RTEMS version.) $(info *** Build the RTEMS-pc386 (-qemu) target for RTEMS 4.x) $(error Can't continue) diff --git a/configure/os/CONFIG.Common.RTEMS49-pc386 b/configure/os/CONFIG.Common.RTEMS49-pc386 new file mode 100644 index 000000000..0a7f124fb --- /dev/null +++ b/configure/os/CONFIG.Common.RTEMS49-pc386 @@ -0,0 +1,2 @@ +RTEMS_VERSION = 4.9 +include $(CONFIG)/os/CONFIG.Common.RTEMS-pc386 diff --git a/configure/os/CONFIG.Common.RTEMS51-pc686 b/configure/os/CONFIG.Common.RTEMS51-pc686 new file mode 100644 index 000000000..8f58e6c9a --- /dev/null +++ b/configure/os/CONFIG.Common.RTEMS51-pc686 @@ -0,0 +1,2 @@ +RTEMS_VERSION = 5 +include $(CONFIG)/os/CONFIG.Common.RTEMS-pc686 diff --git a/configure/os/CONFIG_SITE.Common.RTEMS b/configure/os/CONFIG_SITE.Common.RTEMS index 6857dc9a9..c050f92a3 100644 --- a/configure/os/CONFIG_SITE.Common.RTEMS +++ b/configure/os/CONFIG_SITE.Common.RTEMS @@ -24,6 +24,9 @@ #RTEMS_VERSION = 5 #RTEMS_BASE = /usr/local/vw/rtems/rtems-5.1 +# PSI: +RTEMS_BASE = /opt/rtems/$(RTEMS_VERSION) + # Cross-compile toolchain in $(RTEMS_TOOLS)/bin # RTEMS_TOOLS = $(RTEMS_BASE) diff --git a/configure/os/CONFIG_SITE.linux-x86.Common b/configure/os/CONFIG_SITE.linux-x86.Common index 5acc78a55..d766c075a 100644 --- a/configure/os/CONFIG_SITE.linux-x86.Common +++ b/configure/os/CONFIG_SITE.linux-x86.Common @@ -53,3 +53,7 @@ CROSS_COMPILER_TARGET_ARCHS += eldk53-ppc4xxFP # Raspberry Pi CROSS_COMPILER_TARGET_ARCHS += raspbian-arm + +# RTEMS +CROSS_COMPILER_TARGET_ARCHS += RTEMS49-pc386 +CROSS_COMPILER_TARGET_ARCHS += RTEMS51-pc686