@@ -697,6 +697,9 @@ F: package/mxsldr/
N: Ernesto L. Williams Jr <realcontrols@gmail.com>
F: package/szip/
+N: Esben Haabendal <esben@haabendal.dk>
+F: package/mtree/
+
N: Etienne Carriere <etienne.carriere@linaro.org>
F: boot/optee-os/
F: package/optee-benchmark/
@@ -197,6 +197,7 @@ menu "Filesystem and flash utilities"
source "package/mmc-utils/Config.in"
source "package/mtd/Config.in"
source "package/mtools/Config.in"
+ source "package/mtree/Config.in"
source "package/nfs-utils/Config.in"
source "package/nilfs-utils/Config.in"
source "package/ntfs-3g/Config.in"
new file mode 100644
@@ -0,0 +1,15 @@
+config BR2_PACKAGE_MTREE
+ bool "mtree"
+ # mtree uses <fts.h> which is not included by default in uClibc
+ depends on BR2_TOOLCHAIN_USES_GLIBC
+ # fts.h does not support LFS (_FILE_OFFSET_BITS==64) in glibc versions
+ # older than 2.23, and codesourcery-arm is currently using glibc 2.18
+ depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM
+ select BR2_PACKAGE_OPENSSL
+ help
+ mtree - utility for creating and verifying file hierarchies.
+
+ Port of the mtree utility, originally only available in BSD
+ distributions, to Linux and other operating systems.
+
+ https://github.com/archiecobbs/mtree-port
new file mode 100644
@@ -0,0 +1,5 @@
+# Locally computed
+sha256 fb5e99b28e270ab9a4622bd7142e9a7e9703fa08db3086398c52d33bb0505327 mtree-1.0.4.tar.gz
+
+# License file (locally computed as well)
+sha256 024360ed813a773260cee77ae84196da44a0842f45cd9bddad869de13d6c4bd2 COPYING
new file mode 100644
@@ -0,0 +1,17 @@
+################################################################################
+#
+# mtree
+#
+################################################################################
+
+MTREE_VERSION = 1.0.4
+MTREE_SOURCE = mtree-$(MTREE_VERSION).tar.gz
+MTREE_SITE = https://s3.amazonaws.com/archie-public/mtree-port
+MTREE_LICENSE = BSD-3-Clause
+MTREE_LICENSE_FILES = COPYING
+
+MTREE_DEPENDENCIES = openssl
+
+MTREE_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install-exec
+
+$(eval $(autotools-package))