xref: /OK3568_Linux_fs/buildroot/package/rtai/rtai.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# rtai
4#
5################################################################################
6
7RTAI_VERSION = 4.0.1
8RTAI_SOURCE = rtai-$(RTAI_VERSION).tar.bz2
9RTAI_SITE = https://www.rtai.org/userfiles/downloads/RTAI
10RTAI_INSTALL_STAGING = YES
11
12# The <pkg>_CONFIG_SCRIPTS cannot apply here to the specificities of rtai-config
13define RTAI_POST_PATCH_FIXUP
14	$(SED) 's%^staging=.*%staging=$(STAGING_DIR)%' $(STAGING_DIR)/usr/bin/rtai-config
15endef
16
17RTAI_POST_INSTALL_STAGING_HOOKS += RTAI_POST_PATCH_FIXUP
18
19RTAI_DEPENDENCIES = linux
20
21RTAI_CONF_OPTS = \
22	--includedir=/usr/include/rtai \
23	--with-linux-dir=$(LINUX_DIR) \
24	--disable-leds \
25	--enable-usi \
26	--enable-align-priority \
27	--disable-rtailab \
28	--with-module-dir=/lib/modules/$(LINUX_VERSION_PROBED)/rtai
29
30RTAI_MAKE = $(MAKE1)
31
32$(eval $(autotools-package))
33