mkdir -p $(BOX)/oldroot
rm -rf $(BOX)/include $(BOX)/mymodules
rm -rf $(BOX)/share/{aclocal,gdb,locale,doc} # locale not (yet) needed by anything
- rm -rf $(BOX)/lib/pkgconfig
+ rm -rf $(BOX)/lib/{pkgconfig,gettext}
rm -f $(BOX)/lib/libvorbisenc*
- if [ $(PLATFORM) = "apollo" ]; then \
- rm -rf $(BOX)/etc/init.d/rcS; \
- cp -a $(BOX)/etc/init.d/rcS-kernel-2.6.34.14-cnxt $(BOX)/etc/init.d/rcS; \
- rm -rf $(BOX)/etc/init.d/rcS-kernel-2.6.34.14-cnxt; \
- elif [ $(PLATFORM) = "kronos" ]; then \
- rm -rf $(BOX)/etc/init.d/rcS; \
- cp -a $(BOX)/etc/init.d/rcS-kernel-2.6.34.14-cnxt $(BOX)/etc/init.d/rcS; \
- rm -rf $(BOX)/etc/init.d/rcS-kernel-2.6.34.14-cnxt; \
- fi
find $(BOX)/share/tuxbox/neutrino/locale/ -type f \
! -name deutsch.locale ! -name english.locale | xargs --no-run-if-empty rm
find $(BOX) -name .gitignore -type f -print0 | xargs --no-run-if-empty -0 rm -f
@echo " ****************************************************************************** "
find $(BOX)/bin -type f -print0 | xargs -0 $(TARGET)-strip || true
find $(BOX)/sbin -type f -print0 | xargs -0 $(TARGET)-strip || true
- find $(BOX)/usr -type f -print0 | xargs -0 $(TARGET)-strip || true
find $(BOX)/lib -path $(BOX)/lib/modules -prune -o -type f -print0 | xargs -0 $(TARGET)-strip || true
find $(BOX)/var/bin -type f -print0 | xargs -0 $(TARGET)-strip 2>/dev/null || true
find $(BOX)/var/sbin -type f -print0 | xargs -0 $(TARGET)-strip 2>/dev/null || true