mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-24 14:03:29 +08:00
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>
This commit is contained in:
parent
638ee5cd48
commit
832ff5c9c0
@ -108,4 +108,9 @@ config BR2_PACKAGE_XENOMAI_TESTSUITE
|
||||
help
|
||||
This option allows to install the Xenomai test programs.
|
||||
|
||||
config BR2_PACKAGE_XENOMAI_RTCAN
|
||||
bool "RTCan utilities"
|
||||
help
|
||||
This option allows to install the Xenomai RT-CAN utilities.
|
||||
|
||||
endif
|
||||
|
@ -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 || \
|
||||
|
Loading…
Reference in New Issue
Block a user