From 2837f9ba6116a02d9b0f1fad0e8f2895595da4bf Mon Sep 17 00:00:00 2001 From: vanhofen Date: Tue, 28 Jun 2022 20:27:08 +0200 Subject: [PATCH] - better cleanup --- make/target-rootfs.mk | 4 ++++ package/pkg-cmake.mk | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/make/target-rootfs.mk b/make/target-rootfs.mk index 04539b8b..528a3528 100644 --- a/make/target-rootfs.mk +++ b/make/target-rootfs.mk @@ -101,10 +101,14 @@ rootfs-cleanup: $(ROOTFS) rm -rf $(ROOTFS)$(base_libdir)/pkgconfig rm -rf $(ROOTFS)$(includedir) rm -rf $(ROOTFS)$(libdir)/pkgconfig + rm -rf $(ROOTFS)$(libdir)/cmake rm -rf $(ROOTFS)$(libdir)/sigc++* rm -rf $(ROOTFS)$(libdir)/glib-2.0 rm -f $(ROOTFS)$(libdir)/libvorbisenc* rm -rf $(ROOTFS)/.git + ifeq ($(BOXSERIES),hd1) + rm -rf $(ROOTFS)$(datadir)/bash-completion + endif find $(ROOTFS) -name .gitignore -type f -print0 | xargs --no-run-if-empty -0 rm -f find $(ROOTFS) -name Makefile.am -type f -print0 | xargs --no-run-if-empty -0 rm -f find $(ROOTFS)$(base_libdir) \( -name '*.a' -o -name '*.la' \) -print0 | xargs --no-run-if-empty -0 rm -f diff --git a/package/pkg-cmake.mk b/package/pkg-cmake.mk index a79de5ce..95f5be12 100644 --- a/package/pkg-cmake.mk +++ b/package/pkg-cmake.mk @@ -66,7 +66,6 @@ define cmake-package $(call TARGET_CMAKE) $(call TARGET_MAKE) $(call TARGET_MAKE_INSTALL) - $(TARGET_RM) $(TARGET_libdir)/cmake $(call TARGET_FOLLOWUP) endef