summaryrefslogtreecommitdiffstats
path: root/package/xenomai/xenomai.mk
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2011-09-17 22:22:55 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2011-09-18 23:00:07 +0200
commit60d48220525f154ee43b2fbe3137a393ebacd4a4 (patch)
treed74590f6fe1bffb1a439be700bcef9e2d6927c80 /package/xenomai/xenomai.mk
parent832ff5c9c06e993d7ffdb24b1635e58332d56cf3 (diff)
downloadbuildroot-novena-60d48220525f154ee43b2fbe3137a393ebacd4a4.tar.gz
buildroot-novena-60d48220525f154ee43b2fbe3137a393ebacd4a4.zip
xenomai: add support to keep or remove Analogy utilities and libs
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.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/xenomai/xenomai.mk b/package/xenomai/xenomai.mk
index 36e2e44e3..fff2c5dec 100644
--- a/package/xenomai/xenomai.mk
+++ b/package/xenomai/xenomai.mk
@@ -90,6 +90,19 @@ endef
XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_REMOVE_RTCAN_PROGS
endif
+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 \
+ rm -f $(TARGET_DIR)/usr/xenomai/bin/$$i ; \
+ done
+ rm -f $(TARGET_DIR)/usr/xenomai/sbin/analogy_config
+ rm -f $(TARGET_DIR)/usr/xenomai/lib/libanalogy.*
+endef
+
+XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_REMOVE_ANALOGY
+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 || \