From 60d48220525f154ee43b2fbe3137a393ebacd4a4 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Sat, 17 Sep 2011 22:22:55 +0200 Subject: xenomai: add support to keep or remove Analogy utilities and libs Signed-off-by: Thomas Petazzoni Signed-off-by: Peter Korsgaard --- package/xenomai/Config.in | 6 ++++++ package/xenomai/xenomai.mk | 13 +++++++++++++ 2 files changed, 19 insertions(+) (limited to 'package') diff --git a/package/xenomai/Config.in b/package/xenomai/Config.in index 6ba9f8b69..3749a6048 100644 --- a/package/xenomai/Config.in +++ b/package/xenomai/Config.in @@ -113,4 +113,10 @@ config BR2_PACKAGE_XENOMAI_RTCAN help This option allows to install the Xenomai RT-CAN utilities. +config BR2_PACKAGE_XENOMAI_ANALOGY + bool "Analogy libs and utils" + help + This option allows to install the Xenomai Analogy utilities + and libraries + endif 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 || \ -- cgit v1.2.3