2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:29 +02:00
|
|
|
#
|
2013-07-22 07:30:22 +02:00
|
|
|
# xenomai
|
2011-09-17 22:22:52 +02:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-09-17 22:22:52 +02:00
|
|
|
|
|
|
|
XENOMAI_VERSION = $(call qstrip,$(BR2_PACKAGE_XENOMAI_VERSION))
|
|
|
|
ifeq ($(XENOMAI_VERSION),)
|
2013-04-22 00:07:23 +02:00
|
|
|
XENOMAI_VERSION = 2.6.2.1
|
2011-09-17 22:22:52 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
XENOMAI_SITE = http://download.gna.org/xenomai/stable/
|
|
|
|
XENOMAI_SOURCE = xenomai-$(XENOMAI_VERSION).tar.bz2
|
2012-11-13 02:06:04 +01:00
|
|
|
XENOMAI_LICENSE = headers: GPLv2+ with exception, libraries: LGPLv2.1+, kernel: GPLv2+, docs: GFDLv1.2+, ipipe patch and can driver: GPLv2
|
|
|
|
# GFDL is not included but refers to gnu.org
|
|
|
|
XENOMAI_LICENSE_FILES = debian/copyright include/COPYING src/skins/native/COPYING ksrc/nucleus/COPYING
|
2011-09-17 22:22:52 +02:00
|
|
|
|
|
|
|
XENOMAI_INSTALL_STAGING = YES
|
|
|
|
|
2011-09-19 22:10:56 +02:00
|
|
|
XENOMAI_CONF_OPT += --includedir=/usr/include/xenomai/
|
2011-09-17 22:22:52 +02:00
|
|
|
|
|
|
|
define XENOMAI_REMOVE_DEVFILES
|
|
|
|
for i in xeno-config xeno-info wrap-link.sh ; do \
|
2011-09-19 22:10:56 +02:00
|
|
|
rm -f $(TARGET_DIR)/usr/bin/$$i ; \
|
2011-09-17 22:22:52 +02:00
|
|
|
done
|
|
|
|
endef
|
|
|
|
|
|
|
|
XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_REMOVE_DEVFILES
|
|
|
|
|
2011-09-17 22:22:53 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_XENOMAI_TESTSUITE),)
|
|
|
|
define XENOMAI_REMOVE_TESTSUITE
|
2011-09-19 22:10:56 +02:00
|
|
|
rm -rf $(TARGET_DIR)/usr/share/xenomai/
|
2011-09-17 22:22:53 +02:00
|
|
|
for i in klatency rtdm xeno xeno-load check-vdso \
|
|
|
|
irqloop cond-torture-posix switchtest arith \
|
|
|
|
sigtest clocktest cyclictest latency wakeup-time \
|
|
|
|
xeno-test cond-torture-native mutex-torture-posix \
|
|
|
|
mutex-torture-native ; do \
|
2011-09-19 22:10:56 +02:00
|
|
|
rm -f $(TARGET_DIR)/usr/bin/$$i ; \
|
2011-09-17 22:22:53 +02:00
|
|
|
done
|
|
|
|
endef
|
|
|
|
|
|
|
|
XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_REMOVE_TESTSUITE
|
|
|
|
endif
|
|
|
|
|
2011-09-17 22:22:54 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_XENOMAI_RTCAN),)
|
|
|
|
define XENOMAI_REMOVE_RTCAN_PROGS
|
|
|
|
for i in rtcanrecv rtcansend ; do \
|
2011-09-19 22:10:56 +02:00
|
|
|
rm -f $(TARGET_DIR)/usr/bin/$$i ; \
|
2011-09-17 22:22:54 +02:00
|
|
|
done
|
2011-09-19 22:10:56 +02:00
|
|
|
rm -f $(TARGET_DIR)/usr/sbin/rtcanconfig
|
2011-09-17 22:22:54 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_REMOVE_RTCAN_PROGS
|
|
|
|
endif
|
|
|
|
|
2011-09-17 22:22:55 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_XENOMAI_ANALOGY),)
|
|
|
|
define XENOMAI_REMOVE_ANALOGY
|
|
|
|
for i in cmd_bits cmd_read cmd_write insn_write \
|
|
|
|
insn_bits insn_read ; do \
|
2011-09-19 22:10:56 +02:00
|
|
|
rm -f $(TARGET_DIR)/usr/bin/$$i ; \
|
2011-09-17 22:22:55 +02:00
|
|
|
done
|
2011-09-19 22:10:56 +02:00
|
|
|
rm -f $(TARGET_DIR)/usr/sbin/analogy_config
|
|
|
|
rm -f $(TARGET_DIR)/usr/lib/libanalogy.*
|
2011-09-17 22:22:55 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_REMOVE_ANALOGY
|
|
|
|
endif
|
|
|
|
|
2011-09-17 22:22:56 +02:00
|
|
|
XENOMAI_REMOVE_SKIN_LIST += $(if $(BR2_PACKAGE_XENOMAI_NATIVE_SKIN),,native)
|
|
|
|
XENOMAI_REMOVE_SKIN_LIST += $(if $(BR2_PACKAGE_XENOMAI_POSIX_SKIN),,posix)
|
|
|
|
XENOMAI_REMOVE_SKIN_LIST += $(if $(BR2_PACKAGE_XENOMAI_VXWORKS_SKIN),,vxworks)
|
|
|
|
XENOMAI_REMOVE_SKIN_LIST += $(if $(BR2_PACKAGE_XENOMAI_PSOS_SKIN),,psos)
|
|
|
|
XENOMAI_REMOVE_SKIN_LIST += $(if $(BR2_PACKAGE_XENOMAI_RTAI_SKIN),,rtai)
|
|
|
|
XENOMAI_REMOVE_SKIN_LIST += $(if $(BR2_PACKAGE_XENOMAI_UITRON_SKIN),,uitron)
|
|
|
|
XENOMAI_REMOVE_SKIN_LIST += $(if $(BR2_PACKAGE_XENOMAI_VRTX_SKIN),,vrtx)
|
|
|
|
|
|
|
|
define XENOMAI_REMOVE_SKINS
|
|
|
|
for i in $(XENOMAI_REMOVE_SKIN_LIST) ; do \
|
2011-09-19 22:10:56 +02:00
|
|
|
rm -f $(TARGET_DIR)/usr/lib/lib$$i.* ; \
|
2011-09-17 22:22:56 +02:00
|
|
|
if [ $$i == "posix" ] ; then \
|
2011-09-19 22:10:56 +02:00
|
|
|
rm -f $(TARGET_DIR)/usr/lib/posix.wrappers ; \
|
2011-09-17 22:22:56 +02:00
|
|
|
fi ; \
|
|
|
|
done
|
|
|
|
endef
|
|
|
|
|
|
|
|
XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_REMOVE_SKINS
|
|
|
|
|
2012-01-11 18:53:40 +01:00
|
|
|
define XENOMAI_DEVICES
|
|
|
|
/dev/rtheap c 666 0 0 10 254 0 0 -
|
|
|
|
/dev/rtscope c 666 0 0 10 253 0 0 -
|
|
|
|
/dev/rtp c 666 0 0 150 0 0 1 32
|
|
|
|
endef
|
|
|
|
|
2011-09-17 22:22:52 +02:00
|
|
|
ifeq ($(BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV),y)
|
|
|
|
XENOMAI_DEPENDENCIES += udev
|
|
|
|
|
|
|
|
define XENOMAI_INSTALL_UDEV_RULES
|
|
|
|
if test -d $(TARGET_DIR)/etc/udev/rules.d ; then \
|
|
|
|
for f in $(@D)/ksrc/nucleus/udev/*.rules ; do \
|
|
|
|
cp $$f $(TARGET_DIR)/etc/udev/rules.d/ ; \
|
|
|
|
done ; \
|
|
|
|
fi;
|
|
|
|
endef
|
|
|
|
|
|
|
|
XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_INSTALL_UDEV_RULES
|
|
|
|
endif # udev
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|