summaryrefslogtreecommitdiff
path: root/package/xenomai/xenomai.mk
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2011-09-17 22:22:53 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2011-09-18 23:00:06 +0200
commit638ee5cd482ccd5767d66d0c6d37c43026d3c37e (patch)
tree6888baf9ca3de29dab38fc150634db0120ef4be8 /package/xenomai/xenomai.mk
parent956d4ab0f501c44f977297d8faac95afa43f3082 (diff)
xenomai: add support to keep or remove testsuite programs
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/xenomai/xenomai.mk')
-rw-r--r--package/xenomai/xenomai.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/xenomai/xenomai.mk b/package/xenomai/xenomai.mk
index 8f78333e0..cb73740ea 100644
--- a/package/xenomai/xenomai.mk
+++ b/package/xenomai/xenomai.mk
@@ -62,6 +62,23 @@ endef
XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_REMOVE_DEVFILES
endif
+ifeq ($(BR2_PACKAGE_XENOMAI_TESTSUITE),)
+define XENOMAI_REMOVE_TESTSUITE
+ rm -rf $(TARGET_DIR)/usr/xenomai/share/xenomai/testsuite/
+ rmdir --ignore-fail-on-non-empty $(TARGET_DIR)/usr/xenomai/share/xenomai/
+ rmdir --ignore-fail-on-non-empty $(TARGET_DIR)/usr/xenomai/share/
+ 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 \
+ rm -f $(TARGET_DIR)/usr/xenomai/bin/$$i ; \
+ done
+endef
+
+XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_REMOVE_TESTSUITE
+endif
+
define XENOMAI_ADD_LD_SO_CONF
# Add /usr/xenomai/lib in the library search path
grep -q "^/usr/xenomai/lib" $(TARGET_DIR)/etc/ld.so.conf || \