From 83b2e74f91b5f977ecc2dc51bb0a415a5d6efda5 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sun, 3 Nov 2019 22:30:33 +0100 Subject: [PATCH] - target-rootfs.mk: strip neutrino-plugins too --- make/target-rootfs.mk | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/make/target-rootfs.mk b/make/target-rootfs.mk index c3f626d0..0eeae392 100644 --- a/make/target-rootfs.mk +++ b/make/target-rootfs.mk @@ -121,14 +121,19 @@ rootfs-cleanup: $(ROOTFS) # ----------------------------------------------------------------------------- +ROOTFS-STRIP_DIRS = /bin +ROOTFS-STRIP_DIRS += /sbin +ROOTFS-STRIP_DIRS += /share/tuxbox/neutrino/plugins + # strip bins and libs in root filesystem rootfs-strip: $(ROOTFS) ifneq ($(DEBUG), yes) $(call draw_line); @echo "The following warnings from strip are harmless!" $(call draw_line); - find $(ROOTFS)/bin -type f -print0 | xargs -0 $(TARGET_STRIP) || true - find $(ROOTFS)/sbin -type f -print0 | xargs -0 $(TARGET_STRIP) || true + for dir in $(ROOTFS-STRIP_DIRS); do \ + find $(ROOTFS)$${dir} -type f -print0 | xargs -0 $(TARGET_STRIP) || true; \ + done find $(ROOTFS)/lib \( \ -path $(ROOTFS)/lib/libnexus.so -o \ -path $(ROOTFS)/lib/libnxpl.so -o \