package/bmap-tools: new package
authorNicolas Carrier <nicolas.carrier@orolia.com>
Mon, 21 Jun 2021 21:01:06 +0000 (23:01 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Fri, 25 Jun 2021 11:59:33 +0000 (13:59 +0200)
Signed-off-by: Nicolas Carrier <nicolas.carrier@orolia.com>
[Thomas: numerous reworks, add myself in DEVELOPERS]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
DEVELOPERS
package/Config.in
package/bmap-tools/Config.in [new file with mode: 0644]
package/bmap-tools/bmap-tools.hash [new file with mode: 0644]
package/bmap-tools/bmap-tools.mk [new file with mode: 0644]

index 9ff590978c06163b5de8279ad820a34ad9d8d680..1b5df54386c296e6281d3b6bacde1c7486e6212d 100644 (file)
@@ -1985,6 +1985,7 @@ F:        board/intel/galileo/
 F:     configs/galileo_defconfig
 
 N:     Nicolas Carrier <nicolas.carrier@orolia.com>
+F:     package/bmap-tools/
 F:     package/php-xdebug/
 F:     package/python-augeas/
 F:     support/testing/tests/package/sample_python_augeas.py
@@ -2638,6 +2639,7 @@ F:        configs/stm32mp157c_dk2_defconfig
 F:     package/android-tools/
 F:     package/b43-firmware/
 F:     package/b43-fwcutter/
+F:     package/bmap-tools/
 F:     package/c-periphery/
 F:     package/cdrkit/
 F:     package/cifs-utils/
index 35e6d4d493b1684923245a20d25e8bbea578f4f2..22947edf2c391c785096bcfccac47541f53cbcb1 100644 (file)
@@ -196,6 +196,7 @@ menu "Filesystem and flash utilities"
        source "package/aufs/Config.in"
        source "package/aufs-util/Config.in"
        source "package/autofs/Config.in"
+       source "package/bmap-tools/Config.in"
        source "package/btrfs-progs/Config.in"
        source "package/cifs-utils/Config.in"
        source "package/cpio/Config.in"
diff --git a/package/bmap-tools/Config.in b/package/bmap-tools/Config.in
new file mode 100644 (file)
index 0000000..83b4d92
--- /dev/null
@@ -0,0 +1,44 @@
+config BR2_PACKAGE_BMAP_TOOLS
+       bool "bmap-tools"
+       depends on BR2_PACKAGE_PYTHON3 || BR2_PACKAGE_PYTHON
+       select BR2_PACKAGE_PYTHON3_PYEXPAT if BR2_PACKAGE_PYTHON3 # runtime
+       select BR2_PACKAGE_PYTHON_PYEXPAT if BR2_PACKAGE_PYTHON # runtime
+       select BR2_PACKAGE_PYTHON_SETUPTOOLS # runtime, pkg_resources
+       select BR2_PACKAGE_PYTHON_SIX # runtime
+       help
+         Tool to flash image files to block devices using the block map
+         bmaptool is a generic tool for creating the block map (bmap)
+         for a file, and copying files using the block map. The idea is
+         that large file containing unused blocks, like raw system
+         image files, can be copied or flashed a lot faster with
+         bmaptool than with traditional tools like "dd" or "cp".
+
+         Relevant optional dependencies:
+
+         - Busybox compiled with CONFIG_BZIP2, or BR2_PACKAGE_BZIP2,
+           to support bz2 compressed images
+
+         - BR2_PACKAGE_PIGZ for optimized gzip decompression
+
+         - Busybox compiled with CONFIG_LZOP, or BR2_PACKAGE_LZOP, to
+           support lzo compressed images.
+
+         - BR2_PACKAGE_ZIP to support zip compressed images
+
+         - BR2_PACKAGE_LZ4 to support lz4 compressed images
+
+         - BR2_PACKAGE_ZSTD to support zstd compressed images
+
+         - Busybox compiled CONFIG_FEATURE_SEAMLESS_* or
+           BR2_PACKAGE_TAR to support tar compressed images
+
+         - BR2_PACKAGE_OPENSSH to retrieve images over SSH.
+
+         - BR2_PACKAGE_SSHPASS to retrieve images over SSH if
+           password authentication is used.
+
+         Image signature verification is not supported as
+         python-gpgme is not available. Optimized bzip2 decompression
+         is not supported as pbzip2 is not available.
+
+         https://github.com/intel/bmap-tools
diff --git a/package/bmap-tools/bmap-tools.hash b/package/bmap-tools/bmap-tools.hash
new file mode 100644 (file)
index 0000000..82a570e
--- /dev/null
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256  0658afb972e7221aa16fece3f84e29e5102e901c929253d7fb6040bde28243f7  bmap-tools-3.6.tar.gz
+sha256  8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  COPYING
diff --git a/package/bmap-tools/bmap-tools.mk b/package/bmap-tools/bmap-tools.mk
new file mode 100644 (file)
index 0000000..c8b41c2
--- /dev/null
@@ -0,0 +1,13 @@
+################################################################################
+#
+# bmap-tools
+#
+################################################################################
+
+BMAP_TOOLS_VERSION = 3.6
+BMAP_TOOLS_SITE = $(call github,intel,bmap-tools,v$(BMAP_TOOLS_VERSION))
+BMAP_TOOLS_LICENSE = GPL-2.0
+BMAP_TOOLS_LICENSE_FILES = COPYING
+BMAP_TOOLS_SETUP_TYPE = setuptools
+
+$(eval $(python-package))