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