python-pyasn: bump to version 1.6.0b1
[buildroot-gz.git] / package / xenomai / xenomai.mk
blob6e0e441636373f30f00570b5f9738bda055b5ca1
1 ################################################################################
3 # xenomai
5 ################################################################################
7 XENOMAI_VERSION = $(call qstrip,$(BR2_PACKAGE_XENOMAI_VERSION))
8 ifeq ($(XENOMAI_VERSION),)
9 XENOMAI_VERSION = 2.6.4
10 else
11 BR_NO_CHECK_HASH_FOR += $(XENOMAI_SOURCE)
12 endif
14 XENOMAI_SITE = https://xenomai.org/downloads/xenomai/stable
15 XENOMAI_SOURCE = xenomai-$(XENOMAI_VERSION).tar.bz2
16 XENOMAI_LICENSE = GPLv2+ with exception (headers), LGPLv2.1+ (libraries), GPLv2+ (kernel), GFDLv1.2+ (docs), GPLv2 (ipipe patch, can driver)
17 # GFDL is not included but refers to gnu.org
18 XENOMAI_LICENSE_FILES = debian/copyright include/COPYING src/skins/native/COPYING ksrc/nucleus/COPYING
20 XENOMAI_INSTALL_STAGING = YES
21 XENOMAI_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install-user
22 XENOMAI_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) install-user
24 XENOMAI_CONF_OPTS += --includedir=/usr/include/xenomai/ --disable-doc-install
26 define XENOMAI_REMOVE_DEVFILES
27 for i in xeno-config xeno-info wrap-link.sh ; do \
28 rm -f $(TARGET_DIR)/usr/bin/$$i ; \
29 done
30 endef
32 XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_REMOVE_DEVFILES
34 ifeq ($(BR2_PACKAGE_XENOMAI_TESTSUITE),)
35 define XENOMAI_REMOVE_TESTSUITE
36 rm -rf $(TARGET_DIR)/usr/share/xenomai/
37 for i in klatency rtdm xeno xeno-load check-vdso \
38 irqloop cond-torture-posix switchtest arith \
39 sigtest clocktest cyclictest latency wakeup-time \
40 xeno-test cond-torture-native mutex-torture-posix \
41 mutex-torture-native ; do \
42 rm -f $(TARGET_DIR)/usr/bin/$$i ; \
43 done
44 endef
46 XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_REMOVE_TESTSUITE
47 endif
49 ifeq ($(BR2_PACKAGE_XENOMAI_RTCAN),)
50 define XENOMAI_REMOVE_RTCAN_PROGS
51 for i in rtcanrecv rtcansend ; do \
52 rm -f $(TARGET_DIR)/usr/bin/$$i ; \
53 done
54 rm -f $(TARGET_DIR)/usr/sbin/rtcanconfig
55 endef
57 XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_REMOVE_RTCAN_PROGS
58 endif
60 ifeq ($(BR2_PACKAGE_XENOMAI_ANALOGY),)
61 define XENOMAI_REMOVE_ANALOGY
62 for i in cmd_bits cmd_read cmd_write insn_write \
63 insn_bits insn_read ; do \
64 rm -f $(TARGET_DIR)/usr/bin/$$i ; \
65 done
66 rm -f $(TARGET_DIR)/usr/sbin/analogy_config
67 rm -f $(TARGET_DIR)/usr/lib/libanalogy.*
68 endef
70 XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_REMOVE_ANALOGY
71 endif
73 XENOMAI_REMOVE_SKIN_LIST += $(if $(BR2_PACKAGE_XENOMAI_NATIVE_SKIN),,native)
74 XENOMAI_REMOVE_SKIN_LIST += $(if $(BR2_PACKAGE_XENOMAI_POSIX_SKIN),,posix)
75 XENOMAI_REMOVE_SKIN_LIST += $(if $(BR2_PACKAGE_XENOMAI_VXWORKS_SKIN),,vxworks)
76 XENOMAI_REMOVE_SKIN_LIST += $(if $(BR2_PACKAGE_XENOMAI_PSOS_SKIN),,psos)
77 XENOMAI_REMOVE_SKIN_LIST += $(if $(BR2_PACKAGE_XENOMAI_RTAI_SKIN),,rtai)
78 XENOMAI_REMOVE_SKIN_LIST += $(if $(BR2_PACKAGE_XENOMAI_UITRON_SKIN),,uitron)
79 XENOMAI_REMOVE_SKIN_LIST += $(if $(BR2_PACKAGE_XENOMAI_VRTX_SKIN),,vrtx)
81 define XENOMAI_REMOVE_SKINS
82 for i in $(XENOMAI_REMOVE_SKIN_LIST) ; do \
83 rm -f $(TARGET_DIR)/usr/lib/lib$$i.* ; \
84 if [ $$i == "posix" ] ; then \
85 rm -f $(TARGET_DIR)/usr/lib/posix.wrappers ; \
86 fi ; \
87 done
88 endef
90 XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_REMOVE_SKINS
92 define XENOMAI_DEVICES
93 /dev/rtheap c 666 0 0 10 254 0 0 -
94 /dev/rtscope c 666 0 0 10 253 0 0 -
95 /dev/rtp c 666 0 0 150 0 0 1 32
96 endef
98 ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
99 XENOMAI_DEPENDENCIES += udev
101 define XENOMAI_INSTALL_UDEV_RULES
102 if test -d $(TARGET_DIR)/etc/udev/rules.d ; then \
103 for f in $(@D)/ksrc/nucleus/udev/*.rules ; do \
104 cp $$f $(TARGET_DIR)/etc/udev/rules.d/ || exit 1 ; \
105 done ; \
107 endef
109 XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_INSTALL_UDEV_RULES
110 endif # udev
112 $(eval $(autotools-package))