@@ -2897,6 +2897,7 @@ F: configs/uevm5432_defconfig
F: package/i7z/
F: package/msr-tools/
F: package/pixz/
+F: package/zerofree/
N: Vinicius Tinti <viniciustinti@gmail.com>
F: package/python-thrift/
@@ -238,6 +238,7 @@ menu "Filesystem and flash utilities"
source "package/udftools/Config.in"
source "package/unionfs/Config.in"
source "package/xfsprogs/Config.in"
+ source "package/zerofree/Config.in"
source "package/zfs/Config.in"
endmenu
new file mode 100644
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_ZEROFREE
+ bool "zerofree"
+ depends on BR2_USE_MMU # e2fsprogs
+ depends on !BR2_STATIC_LIBS
+ depends on !BR2_TOOLCHAIN_USES_MUSL
+ select BR2_PACKAGE_E2FSPROGS
+ help
+ zerofree is a utility which scans the free blocks in an ext2
+ filesystem and fills any non-zero blocks with zeroes.
+
+ https://frippery.org/uml/
+
+comment "zerofree needs MMU, dynamic library and does not build with musl"
+ depends on !BR2_USE_MMU || BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_MUSL
new file mode 100644
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 956bc861b55ba0a2b7593c58d32339dab1a0e7da6ea2b813d27c80f08b723867 zerofree-1.1.1.tgz
+sha256 90daae00475a992a367da5b0658469a5d1c4449dbbe964c5b7246e1aec92f491 COPYING
new file mode 100644
@@ -0,0 +1,22 @@
+################################################################################
+#
+# zerofree
+#
+################################################################################
+
+ZEROFREE_VERSION = 1.1.1
+ZEROFREE_SOURCE = zerofree-$(ZEROFREE_VERSION).tgz
+ZEROFREE_SITE = https://frippery.org/uml
+ZEROFREE_LICENSE = GPL-2.0
+ZEROFREE_LICENSE_FILE = COPYING
+ZEROFREE_DEPENDENCIES = e2fsprogs
+
+define ZEROFREE_BUILD_CMDS
+ $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) all
+endef
+
+define ZEROFREE_INSTALL_TARGET_CMDS
+ $(INSTALL) -D -m 0755 $(@D)/zerofree $(TARGET_DIR)/usr/bin
+endef
+
+$(eval $(generic-package))
zerofree is a utility which scans the free blocks in an ext2 filesystem and fills any non-zero blocks with zeroes. https://frippery.org/uml/ Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> --- DEVELOPERS | 1 + package/Config.in | 1 + package/zerofree/Config.in | 14 ++++++++++++++ package/zerofree/zerofree.hash | 3 +++ package/zerofree/zerofree.mk | 22 ++++++++++++++++++++++ 5 files changed, 41 insertions(+) create mode 100644 package/zerofree/Config.in create mode 100644 package/zerofree/zerofree.hash create mode 100644 package/zerofree/zerofree.mk