aboutsummaryrefslogtreecommitdiff
path: root/package/rtai
diff options
context:
space:
mode:
authorGravatar Andrew Barnes <andy@outsideglobe.com>2014-02-20 16:26:07 +0000
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-04-12 23:07:43 +0200
commit924c9328d36f6004b93d05cbca10433ac0a6cb15 (patch)
tree3e840359e3343785bc75a01abb0e16691605bf9f /package/rtai
parent97fba4cd24db0824997cb6685eae875effd76395 (diff)
downloadbuildroot-924c9328d36f6004b93d05cbca10433ac0a6cb15.tar.gz
buildroot-924c9328d36f6004b93d05cbca10433ac0a6cb15.tar.bz2
rtai: install to staging
Building RTAI userspace applications requires having the RTAI headers and libraries installed to the staging directory, so this patch adds RTAI_INSTALL_STAGING = YES. In addition, this patch fixes up the rtai-config script, but does that manually, because the rtai-config script doesn't match the convention that the common <pkg>_CONFIG_SCRIPTS logic is designed for. It also specifies a special directory for the RTAI headers, so that they don't get mixed up with kernel headers. Finally, it updates the RTAI download address to use the new correct location. [Thomas: fix commit log.] Signed-off-by: Andrew Barnes <andy@outsideglobe.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/rtai')
-rw-r--r--package/rtai/rtai.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/package/rtai/rtai.mk b/package/rtai/rtai.mk
index c24fa41631..72327b0d46 100644
--- a/package/rtai/rtai.mk
+++ b/package/rtai/rtai.mk
@@ -6,11 +6,20 @@
RTAI_VERSION = 3.8.1
RTAI_SOURCE = rtai-$(RTAI_VERSION).tar.bz2
-RTAI_SITE = http://www.rtai.org/RTAI/
+RTAI_SITE = https://www.rtai.org/userfiles/downloads/RTAI/
+RTAI_INSTALL_STAGING = YES
+
+# The <pkg>_CONFIG_SCRIPTS cannot apply here to the specificities of rtai-config
+define RTAI_POST_PATCH_FIXUP
+ (SED) 's%^staging=.*%staging=$(STAGING_DIR)%' $(STAGING_DIR)/usr/bin/rtai-config
+endef
+
+RTAI_POST_INSTALL_STAGING_HOOKS += RTAI_POST_PATCH_FIXUP
RTAI_DEPENDENCIES = linux
RTAI_CONF_OPT = \
+ --includedir=/usr/include/rtai \
--with-linux-dir=$(LINUX_DIR) \
--disable-leds \
--disable-rtailab \