diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2011-09-17 22:22:56 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2011-09-18 23:00:07 +0200 |
commit | 4b78a5008995d459399a38692d436eceb7c2278d (patch) | |
tree | 692ded35210a88c68eab728be1fba373ce61d699 /package/xenomai/xenomai.mk | |
parent | 60d48220525f154ee43b2fbe3137a393ebacd4a4 (diff) | |
download | buildroot-4b78a5008995d459399a38692d436eceb7c2278d.tar.gz buildroot-4b78a5008995d459399a38692d436eceb7c2278d.zip |
xenomai: add support to keep or remove skins
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 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/package/xenomai/xenomai.mk b/package/xenomai/xenomai.mk index fff2c5dec9..52e0b4e54a 100644 --- a/package/xenomai/xenomai.mk +++ b/package/xenomai/xenomai.mk @@ -103,6 +103,25 @@ endef XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_REMOVE_ANALOGY endif +XENOMAI_REMOVE_SKIN_LIST += $(if $(BR2_PACKAGE_XENOMAI_NATIVE_SKIN),,native) +XENOMAI_REMOVE_SKIN_LIST += $(if $(BR2_PACKAGE_XENOMAI_POSIX_SKIN),,posix) +XENOMAI_REMOVE_SKIN_LIST += $(if $(BR2_PACKAGE_XENOMAI_VXWORKS_SKIN),,vxworks) +XENOMAI_REMOVE_SKIN_LIST += $(if $(BR2_PACKAGE_XENOMAI_PSOS_SKIN),,psos) +XENOMAI_REMOVE_SKIN_LIST += $(if $(BR2_PACKAGE_XENOMAI_RTAI_SKIN),,rtai) +XENOMAI_REMOVE_SKIN_LIST += $(if $(BR2_PACKAGE_XENOMAI_UITRON_SKIN),,uitron) +XENOMAI_REMOVE_SKIN_LIST += $(if $(BR2_PACKAGE_XENOMAI_VRTX_SKIN),,vrtx) + +define XENOMAI_REMOVE_SKINS + for i in $(XENOMAI_REMOVE_SKIN_LIST) ; do \ + rm -f $(TARGET_DIR)/usr/xenomai/lib/lib$$i.* ; \ + if [ $$i == "posix" ] ; then \ + rm -f $(TARGET_DIR)/usr/xenomai/lib/posix.wrappers ; \ + fi ; \ + done +endef + +XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_REMOVE_SKINS + 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 || \ |