From d53b85f467eff620745fcfdcb452a10d44bd0c24 Mon Sep 17 00:00:00 2001 From: Tim Orling Date: Tue, 22 Feb 2022 11:16:51 -0800 Subject: bmap-tools: set PIP_INSTALL_PACKAGE, BASEVER Change filename to _git.bb and use BASEVER to set PV. The wheel built by bdist_wheel is named "bmap_tool-*.whl" set the PIP_INSTALL_PACKAGE name accordingly. Use BASEVER to set PYPA_WHEEL to match the version in the wheel produced by bdist_wheel. [YOCTO #14638] (From OE-Core rev: 7aea6a938544582d036c454beeef947c986eedc7) Signed-off-by: Tim Orling Signed-off-by: Richard Purdie --- meta/recipes-support/bmap-tools/bmap-tools_3.6.bb | 26 -------------------- meta/recipes-support/bmap-tools/bmap-tools_git.bb | 30 +++++++++++++++++++++++ 2 files changed, 30 insertions(+), 26 deletions(-) delete mode 100644 meta/recipes-support/bmap-tools/bmap-tools_3.6.bb create mode 100644 meta/recipes-support/bmap-tools/bmap-tools_git.bb (limited to 'meta') diff --git a/meta/recipes-support/bmap-tools/bmap-tools_3.6.bb b/meta/recipes-support/bmap-tools/bmap-tools_3.6.bb deleted file mode 100644 index 1e87d45c90..0000000000 --- a/meta/recipes-support/bmap-tools/bmap-tools_3.6.bb +++ /dev/null @@ -1,26 +0,0 @@ -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, \ -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" -SECTION = "console/utils" -LICENSE = "GPL-2.0-only" -LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" - -SRC_URI = "git://github.com/intel/${BPN};branch=master;protocol=https" - -SRCREV = "c0673962a8ec1624b5189dc1d24f33fe4f06785a" -S = "${WORKDIR}/git" -PV .= "+git${SRCPV}" - -UPSTREAM_CHECK_GITTAGREGEX = "v(?P\d+(\.\d+)+)" - -# Need df from coreutils -RDEPENDS:${PN} = "python3-core python3-compression python3-mmap python3-setuptools python3-fcntl python3-six coreutils" - -inherit python3native -inherit setuptools3 - -BBCLASSEXTEND = "native nativesdk" diff --git a/meta/recipes-support/bmap-tools/bmap-tools_git.bb b/meta/recipes-support/bmap-tools/bmap-tools_git.bb new file mode 100644 index 0000000000..e3315321ed --- /dev/null +++ b/meta/recipes-support/bmap-tools/bmap-tools_git.bb @@ -0,0 +1,30 @@ +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, \ +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" +SECTION = "console/utils" +LICENSE = "GPL-2.0-only" +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" + +SRC_URI = "git://github.com/intel/${BPN};branch=master;protocol=https" + +SRCREV = "c0673962a8ec1624b5189dc1d24f33fe4f06785a" +S = "${WORKDIR}/git" +BASEVER = "3.6" +PV = "${BASEVER}+git${SRCPV}" + +UPSTREAM_CHECK_GITTAGREGEX = "v(?P\d+(\.\d+)+)" + +# Need df from coreutils +RDEPENDS:${PN} = "python3-core python3-compression python3-mmap python3-setuptools python3-fcntl python3-six coreutils" + +inherit python3native +inherit setuptools3 + +PIP_INSTALL_PACKAGE = "bmap_tools" +PYPA_WHEEL = "${PIP_INSTALL_DIST_PATH}/${PIP_INSTALL_PACKAGE}-${BASEVER}-*.whl" + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf