Skip to contentSkip to conversation

bmaptool: now part of Yocto Project

PATCH In review Trevor Woerner 3 participants 4 messages Mar 4, 2024 – Mar 5, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bmaptool: now part of Yocto Project

The bmaptool (previously: bmap-tools, bmap-tool, bmaptool) has been moved to be under the Yocto Project umbrella and is now hosted at:

github.com/yoctoproject/bmaptool

---
 meta/classes-recipe/image_types.bbclass                   | 2 +-
 meta/classes-recipe/image_types_wic.bbclass               | 2 +-
 meta/conf/distro/include/maintainers.inc                  | 2 +-
 .../bmap-tools_git.bb => bmaptool/bmaptool_git.bb}        | 8 ++++----
 .../files/0001-BmapCopy.py-fix-error-message.patch        | 0
 ...0002-CLI.py-fix-block-device-udev-race-condition.patch | 0
 .../0003-BmapCopy.py-tweak-suggested-udev-rule.patch      | 0
 7 files changed, 7 insertions(+), 7 deletions(-)
 rename meta/recipes-support/{bmap-tools/bmap-tools_git.bb => bmaptool/bmaptool_git.bb} (78%)
 rename meta/recipes-support/{bmap-tools => bmaptool}/files/0001-BmapCopy.py-fix-error-message.patch (100%)
 rename meta/recipes-support/{bmap-tools => bmaptool}/files/0002-CLI.py-fix-block-device-udev-race-condition.patch (100%)
 rename meta/recipes-support/{bmap-tools => bmaptool}/files/0003-BmapCopy.py-tweak-suggested-udev-rule.patch (100%)
meta/classes-recipe/image_types.bbclass +1 -1
index 3733bdfc20c6..4ad13b43677a 100644
@@ -363,7 +363,7 @@ CONVERSION_DEPENDS_zip = "zip-native"
 CONVERSION_DEPENDS_7zip = "p7zip-native"
 CONVERSION_DEPENDS_zst = "zstd-native"
 CONVERSION_DEPENDS_sum = "mtd-utils-native"
-CONVERSION_DEPENDS_bmap = "bmap-tools-native"
+CONVERSION_DEPENDS_bmap = "bmaptool-native"
 CONVERSION_DEPENDS_u-boot = "u-boot-tools-native"
 CONVERSION_DEPENDS_vmdk = "qemu-system-native"
 CONVERSION_DEPENDS_vdi = "qemu-system-native"
meta/classes-recipe/image_types_wic.bbclass +1 -1
index ce7125f6f18f..cf3be909b30c 100644
@@ -106,7 +106,7 @@ do_image_wic[recrdeptask] += "do_deploy"
 do_image_wic[deptask] += "do_image_complete"
 
 WKS_FILE_DEPENDS_DEFAULT = '${@bb.utils.contains_any("BUILD_ARCH", [ 'x86_64', 'i686' ], "syslinux-native", "",d)}'
-WKS_FILE_DEPENDS_DEFAULT += "bmap-tools-native cdrtools-native btrfs-tools-native squashfs-tools-native e2fsprogs-native erofs-utils-native"
+WKS_FILE_DEPENDS_DEFAULT += "bmaptool-native cdrtools-native btrfs-tools-native squashfs-tools-native e2fsprogs-native erofs-utils-native"
 # Unified kernel images need objcopy
 WKS_FILE_DEPENDS_DEFAULT += "virtual/${TARGET_PREFIX}binutils"
 WKS_FILE_DEPENDS_BOOTLOADERS = ""
meta/conf/distro/include/maintainers.inc +1 -1
index 7e17e9b71fa0..a3433f496cb4 100644
@@ -70,7 +70,7 @@ RECIPE_MAINTAINER:pn-bison = "Chen Qi <[email protected]>"
 RECIPE_MAINTAINER:pn-blktool = "Yi Zhao <[email protected]>"
 RECIPE_MAINTAINER:pn-blktrace = "Alexander Kanavin <[email protected]>"
 RECIPE_MAINTAINER:pn-bluez5 = "Anuj Mittal <[email protected]>"
-RECIPE_MAINTAINER:pn-bmap-tools = "Anuj Mittal <[email protected]>"
+RECIPE_MAINTAINER:pn-bmaptool = "Trevor Woerner <[email protected]>"
 RECIPE_MAINTAINER:pn-boost = "Alexander Kanavin <[email protected]>"
 RECIPE_MAINTAINER:pn-boost-build-native = "Alexander Kanavin <[email protected]>"
 RECIPE_MAINTAINER:pn-bootchart2 = "Alexander Kanavin <[email protected]>"
meta/recipes-support/bmaptool/bmaptool_git.bb renamed from meta/recipes-support/bmap-tools/bmap-tools_git.bb +4 -4
similarity index 78%
rename from meta/recipes-support/bmap-tools/bmap-tools_git.bb
rename to meta/recipes-support/bmaptool/bmaptool_git.bb
index ffb6ccfe99a5..87328af8c65b 100644
@@ -1,16 +1,16 @@
 SUMMARY = "Tools to generate block map (AKA bmap) and flash images using bmap"
-DESCRIPTION = "Bmap-tools - tools to generate block map (AKA bmap) and flash images using \
-bmap. Bmaptool is a generic tool for creating the block map (bmap) for a file, \
+DESCRIPTION = "bmaptool - tools to generate block map (AKA bmap) and flash images using \
+bmap. 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"."
-HOMEPAGE = "https://github.com/01org/bmap-tools"
+HOMEPAGE = "https://github.com/yoctoproject/bmaptool"
 SECTION = "console/utils"
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 
 FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
-SRC_URI = "git://github.com/intel/${BPN};branch=main;protocol=https \
+SRC_URI = "git://github.com/yoctoproject/${BPN};branch=main;protocol=https \
 	file://0001-BmapCopy.py-fix-error-message.patch \
 	file://0002-CLI.py-fix-block-device-udev-race-condition.patch \
 	file://0003-BmapCopy.py-tweak-suggested-udev-rule.patch \
meta/recipes-support/bmaptool/files/0001-BmapCopy.py-fix-error-message.patch renamed from meta/recipes-support/bmap-tools/files/0001-BmapCopy.py-fix-error-message.patch +0 -0
similarity index 100%
rename from meta/recipes-support/bmap-tools/files/0001-BmapCopy.py-fix-error-message.patch
rename to meta/recipes-support/bmaptool/files/0001-BmapCopy.py-fix-error-message.patch
meta/recipes-support/bmaptool/files/0002-CLI.py-fix-block-device-udev-race-condition.patch renamed from meta/recipes-support/bmap-tools/files/0002-CLI.py-fix-block-device-udev-race-condition.patch +0 -0
similarity index 100%
rename from meta/recipes-support/bmap-tools/files/0002-CLI.py-fix-block-device-udev-race-condition.patch
rename to meta/recipes-support/bmaptool/files/0002-CLI.py-fix-block-device-udev-race-condition.patch
meta/recipes-support/bmaptool/files/0003-BmapCopy.py-tweak-suggested-udev-rule.patch renamed from meta/recipes-support/bmap-tools/files/0003-BmapCopy.py-tweak-suggested-udev-rule.patch +0 -0
similarity index 100%
rename from meta/recipes-support/bmap-tools/files/0003-BmapCopy.py-tweak-suggested-udev-rule.patch
rename to meta/recipes-support/bmaptool/files/0003-BmapCopy.py-tweak-suggested-udev-rule.patch
Signature · 1 line
2.43.0.76.g1a87c842ece3
#1 lore raw
Quoted 14 lines · Trevor Woerner

The bmaptool (previously: bmap-tools, bmap-tool, bmaptool) has been moved to be under the Yocto Project umbrella and is now hosted at:

github.com/yoctoproject/bmaptool

---
 meta/classes-recipe/image_types.bbclass                   | 2 +- meta/classes-recipe/image_types_wic.bbclass               | 2 +- meta/conf/distro/include/maintainers.inc                  | 2 +- .../bmap-tools_git.bb => bmaptool/bmaptool_git.bb}        | 8 ++++---- .../files/0001-BmapCopy.py-fix-error-message.patch        | 0 ...0002-CLI.py-fix-block-device-udev-race-condition.patch | 0 .../0003-BmapCopy.py-tweak-suggested-udev-rule.patch      | 0

Quoted 5 lines
 7 files changed, 7 insertions(+), 7 deletions(-)

 rename meta/recipes-support/{bmap-tools/bmap-tools_git.bb => bmaptool/bmaptool_git.bb} (78%)
 rename meta/recipes-support/{bmap-tools => bmaptool}/files/0001-BmapCopy.py-fix-error-message.patch (100%) rename meta/recipes-support/{bmap-tools => bmaptool}/files/0002-CLI.py-fix-block-device-udev-race-condition.patch (100%) rename meta/recipes-support/{bmap-tools => bmaptool}/files/0003-BmapCopy.py-tweak-suggested-udev-rule.patch (100%)

Thanks. Unfortunately this wasn't quite enough and caused a ton of build failures, it also needs:

meta/recipes-core/meta/wic-tools.bb +1 -1
index 9282d36a4dc..76494e7fca4 100644
@@ -4,7 +4,7 @@ LICENSE = "MIT"
 
 DEPENDS = "\
            parted-native gptfdisk-native dosfstools-native \
-           mtools-native bmap-tools-native grub-native cdrtools-native \
+           mtools-native bmaptool-native grub-native cdrtools-native \
            btrfs-tools-native squashfs-tools-native pseudo-native \
            e2fsprogs-native util-linux-native tar-native erofs-utils-native \
            virtual/${TARGET_PREFIX}binutils \
scripts/lib/wic/misc.py +1 -1
index 2b90821b305..1a7c140fa6c 100644
@@ -25,7 +25,7 @@ from wic import WicError
 logger = logging.getLogger('wic')
 
 # executable -> recipe pairs for exec_native_cmd
-NATIVE_RECIPES = {"bmaptool": "bmap-tools",
+NATIVE_RECIPES = {"bmaptool": "bmaptool",
                   "dumpe2fs": "e2fsprogs",
                   "grub-mkimage": "grub-efi",
                   "isohybrid": "syslinux",

but I'll squash that into the patch.

Cheers,

Richard

#2 lore raw
Quoted 21 lines · Richard Purdie
Quoted 14 lines · Trevor Woerner

The bmaptool (previously: bmap-tools, bmap-tool, bmaptool) has been moved to be under the Yocto Project umbrella and is now hosted at:

github.com/yoctoproject/bmaptool

---
 meta/classes-recipe/image_types.bbclass                   | 2 +- meta/classes-recipe/image_types_wic.bbclass               | 2 +- meta/conf/distro/include/maintainers.inc                  | 2 +- .../bmap-tools_git.bb => bmaptool/bmaptool_git.bb}        | 8 ++++---- .../files/0001-BmapCopy.py-fix-error-message.patch        | 0 ...0002-CLI.py-fix-block-device-udev-race-condition.patch | 0 .../0003-BmapCopy.py-tweak-suggested-udev-rule.patch      | 0

Quoted 5 lines
 7 files changed, 7 insertions(+), 7 deletions(-)

 rename meta/recipes-support/{bmap-tools/bmap-tools_git.bb => bmaptool/bmaptool_git.bb} (78%)
 rename meta/recipes-support/{bmap-tools => bmaptool}/files/0001-BmapCopy.py-fix-error-message.patch (100%) rename meta/recipes-support/{bmap-tools => bmaptool}/files/0002-CLI.py-fix-block-device-udev-race-condition.patch (100%) rename meta/recipes-support/{bmap-tools => bmaptool}/files/0003-BmapCopy.py-tweak-suggested-udev-rule.patch (100%)

Quoted 2 lines

Thanks. Unfortunately this wasn't quite enough and caused a ton of build failures, it also needs:

Oops! Sorry about that.

Quoted 27 lines
meta/recipes-core/meta/wic-tools.bb +1 -1
index 9282d36a4dc..76494e7fca4 100644
@@ -4,7 +4,7 @@ LICENSE = "MIT"
 
 DEPENDS = "\
            parted-native gptfdisk-native dosfstools-native \
-           mtools-native bmap-tools-native grub-native cdrtools-native \
+           mtools-native bmaptool-native grub-native cdrtools-native \
            btrfs-tools-native squashfs-tools-native pseudo-native \
            e2fsprogs-native util-linux-native tar-native erofs-utils-native \
            virtual/${TARGET_PREFIX}binutils \
scripts/lib/wic/misc.py +1 -1
index 2b90821b305..1a7c140fa6c 100644
@@ -25,7 +25,7 @@ from wic import WicError
 logger = logging.getLogger('wic')
 
 # executable -> recipe pairs for exec_native_cmd
-NATIVE_RECIPES = {"bmaptool": "bmap-tools",
+NATIVE_RECIPES = {"bmaptool": "bmaptool",
                   "dumpe2fs": "e2fsprogs",
                   "grub-mkimage": "grub-efi",
                   "isohybrid": "syslinux",
Quoted 1 line

but I'll squash that into the patch.

Great, thanks!

#3 lore raw

This also needs to reflect in docs.

Quoted 67 lines · Trevor Woerner
Quoted 21 lines · Richard Purdie
Quoted 6 lines · Trevor Woerner

The bmaptool (previously: bmap-tools, bmap-tool, bmaptool) has been moved to be under the Yocto Project umbrella and is now hosted at:

github.com/yoctoproject/bmaptool

Quoted 13 lines
---
 meta/classes-recipe/image_types.bbclass                   | 2 +-
 meta/classes-recipe/image_types_wic.bbclass               | 2 +-
 meta/conf/distro/include/maintainers.inc                  | 2 +-
 .../bmap-tools_git.bb => bmaptool/bmaptool_git.bb}        | 8 ++++----
 .../files/0001-BmapCopy.py-fix-error-message.patch        | 0
 ...0002-CLI.py-fix-block-device-udev-race-condition.patch | 0
 .../0003-BmapCopy.py-tweak-suggested-udev-rule.patch      | 0
 7 files changed, 7 insertions(+), 7 deletions(-)
 rename meta/recipes-support/{bmap-tools/bmap-tools_git.bb => bmaptool/bmaptool_git.bb} (78%)
 rename meta/recipes-support/{bmap-tools => bmaptool}/files/0001-BmapCopy.py-fix-error-message.patch (100%)
 rename meta/recipes-support/{bmap-tools => bmaptool}/files/0002-CLI.py-fix-block-device-udev-race-condition.patch (100%)
 rename meta/recipes-support/{bmap-tools => bmaptool}/files/0003-BmapCopy.py-tweak-suggested-udev-rule.patch (100%)
Quoted 2 lines

Thanks. Unfortunately this wasn't quite enough and caused a ton of build failures, it also needs:

Oops! Sorry about that.

Quoted 27 lines
meta/recipes-core/meta/wic-tools.bb +1 -1
index 9282d36a4dc..76494e7fca4 100644
@@ -4,7 +4,7 @@ LICENSE = "MIT"
 
 DEPENDS = "\
            parted-native gptfdisk-native dosfstools-native \
-           mtools-native bmap-tools-native grub-native cdrtools-native \
+           mtools-native bmaptool-native grub-native cdrtools-native \
            btrfs-tools-native squashfs-tools-native pseudo-native \
            e2fsprogs-native util-linux-native tar-native erofs-utils-native \
            virtual/${TARGET_PREFIX}binutils \
scripts/lib/wic/misc.py +1 -1
index 2b90821b305..1a7c140fa6c 100644
@@ -25,7 +25,7 @@ from wic import WicError
 logger = logging.getLogger('wic')
 
 # executable -> recipe pairs for exec_native_cmd
-NATIVE_RECIPES = {"bmaptool": "bmap-tools",
+NATIVE_RECIPES = {"bmaptool": "bmaptool",
                   "dumpe2fs": "e2fsprogs",
                   "grub-mkimage": "grub-efi",
                   "isohybrid": "syslinux",
Quoted 1 line

but I'll squash that into the patch.

Great, thanks!

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#196631): https://lists.openembedded.org/g/openembedded-core/message/196631
Mute This Topic: https://lists.openembedded.org/mt/104729497/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-