From a68f3d62aa76ae724fbd4a630bb1c7bb505c5930 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Tue, 26 May 2020 15:10:20 +0200 Subject: [PATCH] add cross compilation for NI CompactRIO RT-Linux --- configure/os/CONFIG.Common.nilrt7-armv7a | 18 ++++++++++++++++++ configure/os/CONFIG_SITE.RHEL7-x86_64.Common | 4 ++++ 2 files changed, 22 insertions(+) create mode 100644 configure/os/CONFIG.Common.nilrt7-armv7a diff --git a/configure/os/CONFIG.Common.nilrt7-armv7a b/configure/os/CONFIG.Common.nilrt7-armv7a new file mode 100644 index 000000000..1457097ff --- /dev/null +++ b/configure/os/CONFIG.Common.nilrt7-armv7a @@ -0,0 +1,18 @@ +# National Instruments CompactRIO running LabView RT 19.5.1 + +# Include definitions common to all Linux targets +include $(CONFIG)/os/CONFIG.Common.linuxCommon + +ARCH_CLASS = arm + +GNU_TARGET = arm-linux-gnu + +SYSROOT = /opt/LabVIEW-RT-19.5.1/arm/sysroots/armv7a-vfp-neon-nilrt-linux-gnueabi + +ARCH_DEP_CPPFLAGS += -march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon +ARCH_DEP_CPPFLAGS += --sysroot=$(SYSROOT) +ARCH_DEP_CPPFLAGS += -I$(SYSROOT)/usr/include/c++/4.7.2/arm-nilrt-linux-gnueabi/ +ARCH_DEP_CPPFLAGS += -I$(SYSROOT)/usr/include/c++/4.7.2/ +ARCH_DEP_LDFLAGS += --sysroot=$(SYSROOT) + +COMMANDLINE_LIBRARY = READLINE_NCURSES diff --git a/configure/os/CONFIG_SITE.RHEL7-x86_64.Common b/configure/os/CONFIG_SITE.RHEL7-x86_64.Common index 7bfb61ee2..6259da533 100644 --- a/configure/os/CONFIG_SITE.RHEL7-x86_64.Common +++ b/configure/os/CONFIG_SITE.RHEL7-x86_64.Common @@ -13,4 +13,8 @@ CROSS_COMPILER_TARGET_ARCHS += SL6-x86 # Zynq CROSS_COMPILER_TARGET_ARCHS += yocto21-aarch64 +# NI Linux Real-Time 7.x +# requires RPM gcc-c++-arm-linux-gnu +CROSS_COMPILER_TARGET_ARCHS += nilrt7-armv7a + include $(CONFIG)/os/CONFIG_SITE.linux-x86_64.Common