From 02c765af35f9e09ef5cd8ace07d555fd90fd176f Mon Sep 17 00:00:00 2001 From: Ayoub Zaki Date: Thu, 2 Jan 2025 14:33:58 +0100 Subject: [PATCH] package/bmap-writer: add initial package Signed-off-by: Ayoub Zaki Signed-off-by: Thomas Petazzoni --- DEVELOPERS | 3 +++ package/Config.in | 1 + package/Config.in.host | 1 + package/bmap-writer/Config.in | 19 +++++++++++++++++++ package/bmap-writer/Config.in.host | 12 ++++++++++++ package/bmap-writer/bmap-writer.hash | 3 +++ package/bmap-writer/bmap-writer.mk | 15 +++++++++++++++ 7 files changed, 54 insertions(+) create mode 100644 package/bmap-writer/Config.in create mode 100644 package/bmap-writer/Config.in.host create mode 100644 package/bmap-writer/bmap-writer.hash create mode 100644 package/bmap-writer/bmap-writer.mk diff --git a/DEVELOPERS b/DEVELOPERS index 24fb3e07e0..6254f2e1db 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -304,6 +304,9 @@ F: package/orbit/ N: Attila Wagner F: package/python-canopen/ +N: Ayoub Zaki +F: package/bmap-writer/ + N: Bagas Sanjaya F: package/git/ diff --git a/package/Config.in b/package/Config.in index 83f69f9004..e501bca3aa 100644 --- a/package/Config.in +++ b/package/Config.in @@ -214,6 +214,7 @@ menu "Filesystem and flash utilities" source "package/aufs-util/Config.in" source "package/autofs/Config.in" source "package/bmap-tools/Config.in" + source "package/bmap-writer/Config.in" source "package/btrfs-progs/Config.in" source "package/cifs-utils/Config.in" source "package/cpio/Config.in" diff --git a/package/Config.in.host b/package/Config.in.host index 90b161eeab..bf04f5fa97 100644 --- a/package/Config.in.host +++ b/package/Config.in.host @@ -10,6 +10,7 @@ menu "Host utilities" source "package/asn1c/Config.in.host" source "package/babeltrace2/Config.in.host" source "package/bmap-tools/Config.in.host" + source "package/bmap-writer/Config.in.host" source "package/bootgen/Config.in.host" source "package/btrfs-progs/Config.in.host" source "package/cbootimage/Config.in.host" diff --git a/package/bmap-writer/Config.in b/package/bmap-writer/Config.in new file mode 100644 index 0000000000..b2e63c8381 --- /dev/null +++ b/package/bmap-writer/Config.in @@ -0,0 +1,19 @@ +config BR2_PACKAGE_BMAP_WRITER + bool "bmap-writer" + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_USE_WCHAR # libarchive + select BR2_PACKAGE_LIBARCHIVE + select BR2_PACKAGE_LIBXML2 + help + bmap-writer is a command-line utility designed to + efficiently write disk images to storage devices using block + mapping (BMAP). It serves as a lightweight alternative to + the Yocto BMAP tool, specifically for embedded + systems. Unlike the Yocto BMAP tool, bmap-writer is C++ + based, does not require Python, and focuses solely on + writing an image. + + https://github.com/embetrix/bmap-writer + +comment "bmap-writer needs a toolchain w/ C++, wchar" + depends on !BR2_USE_WCHAR || !BR2_INSTALL_LIBSTDCPP diff --git a/package/bmap-writer/Config.in.host b/package/bmap-writer/Config.in.host new file mode 100644 index 0000000000..a5365f47cf --- /dev/null +++ b/package/bmap-writer/Config.in.host @@ -0,0 +1,12 @@ +config BR2_PACKAGE_HOST_BMAP_WRITER + bool "host bmap-writer" + help + bmap-writer is a command-line utility designed to + efficiently write disk images to storage devices using block + mapping (BMAP). It serves as a lightweight alternative to + the Yocto BMAP tool, specifically for embedded + systems. Unlike the Yocto BMAP tool, bmap-writer is C++ + based, does not require Python, and focuses solely on + writing an image. + + https://github.com/embetrix/bmap-writer diff --git a/package/bmap-writer/bmap-writer.hash b/package/bmap-writer/bmap-writer.hash new file mode 100644 index 0000000000..c59c7a91cb --- /dev/null +++ b/package/bmap-writer/bmap-writer.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 94fda8420fa82256bfd01a76dff18ae23c6be9be03cb641f9845164e9326de60 bmap-writer-0.0.3.tar.gz +sha256 8b1ba204bb69a0ade2bfcf65ef294a920f6bb361b317dba43c7ef29d96332b9b LICENSE diff --git a/package/bmap-writer/bmap-writer.mk b/package/bmap-writer/bmap-writer.mk new file mode 100644 index 0000000000..dc049c2b9b --- /dev/null +++ b/package/bmap-writer/bmap-writer.mk @@ -0,0 +1,15 @@ +################################################################################ +# +# bmap-writer +# +################################################################################ + +BMAP_WRITER_VERSION = 0.0.3 +BMAP_WRITER_SITE = $(call github,embetrix,bmap-writer,$(BMAP_WRITER_VERSION)) +BMAP_WRITER_LICENSE = GPL-3.0 +BMAP_WRITER_LICENSE_FILES = LICENSE +BMAP_WRITER_DEPENDENCIES = host-pkgconf libarchive libxml2 +HOST_BMAP_WRITER_DEPENDENCIES = host-pkgconf host-libarchive host-libxml2 + +$(eval $(cmake-package)) +$(eval $(host-cmake-package))