diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2011-09-17 22:22:54 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2011-09-18 23:00:07 +0200 |
commit | 832ff5c9c06e993d7ffdb24b1635e58332d56cf3 (patch) | |
tree | 2c2087a9e5109f853c930fa0bacd333180c256ec /package/xenomai/xenomai.mk | |
parent | 638ee5cd482ccd5767d66d0c6d37c43026d3c37e (diff) |
xenomai: add support to keep or remove RT-CAN utilities
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.mk | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/package/xenomai/xenomai.mk b/package/xenomai/xenomai.mk index cb73740ea..36e2e44e3 100644 --- a/package/xenomai/xenomai.mk +++ b/package/xenomai/xenomai.mk @@ -79,6 +79,17 @@ endef XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_REMOVE_TESTSUITE endif +ifeq ($(BR2_PACKAGE_XENOMAI_RTCAN),) +define XENOMAI_REMOVE_RTCAN_PROGS + for i in rtcanrecv rtcansend ; do \ + rm -f $(TARGET_DIR)/usr/xenomai/bin/$$i ; \ + done + rm -f $(TARGET_DIR)/usr/xenomai/sbin/rtcanconfig +endef + +XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_REMOVE_RTCAN_PROGS +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 || \ |