summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas De Schampheleire <thomas.de_schampheleire@nokia.com>2017-04-19 22:00:05 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-04-20 22:34:59 +0200
commita12bcb7ff3fb7254358c70e7a4b20f716ce3ff03 (patch)
tree373a618d600591fcf40b35b18b58aebe4b23325d
parent2fb9a09d719270ff123d999ea183f6e7bd8f885f (diff)
downloadbuildroot-a12bcb7ff3fb7254358c70e7a4b20f716ce3ff03.tar.gz
buildroot-a12bcb7ff3fb7254358c70e7a4b20f716ce3ff03.zip
xenomai: restrict installed files further
Xenomai 3 installs quite some utils and other programs to the target filesystem, many of which will not be used by most users. As it is currently unclear which utils are effectively useful, and as it is undesirable to create config options for each individual util, remove all remaining utils such that only the Xenomai libraries remain. At the point it becomes clear that certain utils _are_ desired by some users, we can identify how to group them in relevant config options. Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/xenomai/xenomai.mk12
1 files changed, 9 insertions, 3 deletions
diff --git a/package/xenomai/xenomai.mk b/package/xenomai/xenomai.mk
index 30bdcdbdc8..99f62f0be4 100644
--- a/package/xenomai/xenomai.mk
+++ b/package/xenomai/xenomai.mk
@@ -45,13 +45,19 @@ else
XENOMAI_CONF_OPTS += --disable-smp
endif
-define XENOMAI_REMOVE_DEVFILES
- for i in xeno-config xeno-info wrap-link.sh ; do \
+# Some of these files may be desired by some users -- at that point specific
+# config options need to be added to keep a particular set.
+define XENOMAI_REMOVE_UNNEEDED_FILES
+ for i in xeno xeno-config xeno-info wrap-link.sh ; do \
rm -f $(TARGET_DIR)/usr/bin/$$i ; \
done
+ for i in autotune corectl hdb rtnet nomaccfg rtcfg rtifconfig \
+ rtiwconfig rtping rtroute tdmacfg rtps slackspot version; do \
+ rm -f $(TARGET_DIR)/usr/sbin/$$i ; \
+ done
endef
-XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_REMOVE_DEVFILES
+XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_REMOVE_UNNEEDED_FILES
ifeq ($(BR2_PACKAGE_XENOMAI_TESTSUITE),)
define XENOMAI_REMOVE_TESTSUITE
OpenPOWER on IntegriCloud