summaryrefslogtreecommitdiffstats
path: root/package/rtai/rtai.mk
blob: 6f941214036ce6efd705eb079045f5833c0e8139 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
################################################################################
#
# rtai
#
################################################################################

RTAI_VERSION = 3.8.1
RTAI_SOURCE = rtai-$(RTAI_VERSION).tar.bz2
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_OPTS = \
	--includedir=/usr/include/rtai \
	--with-linux-dir=$(LINUX_DIR) 	\
	--disable-leds		      	\
	--disable-rtailab		\
	--with-module-dir=/lib/modules/$(LINUX_VERSION_PROBED)/rtai

RTAI_MAKE = $(MAKE1)

$(eval $(autotools-package))