Re: [OE-core] [PATCH v2 1/3] bmap-tools: initial commit, version 3.2

2016-05-02 Thread Ed Bartosh
On Fri, Apr 29, 2016 at 11:38:38AM +0300, Alexander Kanevskiy wrote:
> On Fri, Apr 29, 2016 at 7:55 AM, Paul Eggleton <
> paul.eggle...@linux.intel.com> wrote:
> 
> > On Fri, 29 Apr 2016 01:07:56 Alexander Kanevskiy wrote:
> > > On Wed, Apr 27, 2016 at 12:36 PM, Ed Bartosh  > >
> > >
> > > wrote:
> > > > 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".
> > > >
> > > > [YOCTO #9414]
> > > >
> > > > Signed-off-by: Ed Bartosh 
> > >
> > > better to use recipe that would create in deploy/tools standalone version
> > > of the tool.
> > > Otherwise, there is no easy way for user to utilize generated bmap files.
> >
> > You both probably have had notification already, but just to close the
> > loop I
> > found the issue with the do_deploy version, see the comments on bug 9414:
> >
> > https://bugzilla.yoctoproject.org/show_bug.cgi?id=9414
> >
> >
> Thank you Paul for your help! Your fix mentioned in the bug for do_depoly
> is indeed the best solution.
>

OK. I'll add this functionality back in a separate patch.

--
Regards,
Ed
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH v2 1/3] bmap-tools: initial commit, version 3.2

2016-04-29 Thread Alexander Kanevskiy
On Fri, Apr 29, 2016 at 7:55 AM, Paul Eggleton <
paul.eggle...@linux.intel.com> wrote:

> On Fri, 29 Apr 2016 01:07:56 Alexander Kanevskiy wrote:
> > On Wed, Apr 27, 2016 at 12:36 PM, Ed Bartosh  >
> >
> > wrote:
> > > 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".
> > >
> > > [YOCTO #9414]
> > >
> > > Signed-off-by: Ed Bartosh 
> >
> > better to use recipe that would create in deploy/tools standalone version
> > of the tool.
> > Otherwise, there is no easy way for user to utilize generated bmap files.
>
> You both probably have had notification already, but just to close the
> loop I
> found the issue with the do_deploy version, see the comments on bug 9414:
>
> https://bugzilla.yoctoproject.org/show_bug.cgi?id=9414
>
>
Thank you Paul for your help! Your fix mentioned in the bug for do_depoly
is indeed the best solution.


-- 
br, Alexander Kanevskiy
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH v2 1/3] bmap-tools: initial commit, version 3.2

2016-04-28 Thread Paul Eggleton
On Fri, 29 Apr 2016 01:07:56 Alexander Kanevskiy wrote:
> On Wed, Apr 27, 2016 at 12:36 PM, Ed Bartosh 
> 
> wrote:
> > 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".
> > 
> > [YOCTO #9414]
> > 
> > Signed-off-by: Ed Bartosh 
> > ---
> > 
> >  meta/recipes-support/bmap-tools/bmap-tools_3.2.bb | 24
> > 
> > +++
> > 
> >  1 file changed, 24 insertions(+)
> >  create mode 100644 meta/recipes-support/bmap-tools/bmap-tools_3.2.bb
> > 
> > diff --git a/meta/recipes-support/bmap-tools/bmap-tools_3.2.bb
> > b/meta/recipes-support/bmap-tools/bmap-tools_3.2.bb
> > new file mode 100644
> > index 000..e10f5fd
> > --- /dev/null
> > +++ b/meta/recipes-support/bmap-tools/bmap-tools_3.2.bb
> > @@ -0,0 +1,24 @@
> > +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 = "http://git.infradead.org/users/dedekind/bmap-tools.git;
> > +SECTION = "console/utils"
> > +LICENSE = "GPLv2"
> > +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
> > +
> > +SRC_URI = "ftp://ftp.infradead.org/pub/${BPN}/${BPN}-${PV}.tgz;
> > +SRC_URI[md5sum] = "92cdad1cb4dfa0cca7176c8e22752616"
> > +SRC_URI[sha256sum] =
> > "cc6c7f7dc0a37e2a32deb127308e24e6c4b80bfb54f3803c308efab02bf2d434"
> > +
> > +RDEPENDS_${PN} = "python-core python-compression"
> > +
> > +inherit setuptools
> > +
> > +BBCLASSEXTEND = "native"
> > +
> > +do_install_append_class-native() {
> > +sed -i -e 's|^#!.*/usr/bin/env python|#! /usr/bin/env nativepython|'
> > ${D}${bindir}/bmaptool
> > +}
> 
> better to use recipe that would create in deploy/tools standalone version
> of the tool.
> Otherwise, there is no easy way for user to utilize generated bmap files.

You both probably have had notification already, but just to close the loop I 
found the issue with the do_deploy version, see the comments on bug 9414:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=9414

Cheers,
Paul

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH v2 1/3] bmap-tools: initial commit, version 3.2

2016-04-28 Thread Alexander Kanevskiy
On Wed, Apr 27, 2016 at 12:36 PM, Ed Bartosh 
wrote:

> 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".
>
> [YOCTO #9414]
>
> Signed-off-by: Ed Bartosh 
> ---
>  meta/recipes-support/bmap-tools/bmap-tools_3.2.bb | 24
> +++
>  1 file changed, 24 insertions(+)
>  create mode 100644 meta/recipes-support/bmap-tools/bmap-tools_3.2.bb
>
> diff --git a/meta/recipes-support/bmap-tools/bmap-tools_3.2.bb
> b/meta/recipes-support/bmap-tools/bmap-tools_3.2.bb
> new file mode 100644
> index 000..e10f5fd
> --- /dev/null
> +++ b/meta/recipes-support/bmap-tools/bmap-tools_3.2.bb
> @@ -0,0 +1,24 @@
> +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 = "http://git.infradead.org/users/dedekind/bmap-tools.git;
> +SECTION = "console/utils"
> +LICENSE = "GPLv2"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
> +
> +SRC_URI = "ftp://ftp.infradead.org/pub/${BPN}/${BPN}-${PV}.tgz;
> +SRC_URI[md5sum] = "92cdad1cb4dfa0cca7176c8e22752616"
> +SRC_URI[sha256sum] =
> "cc6c7f7dc0a37e2a32deb127308e24e6c4b80bfb54f3803c308efab02bf2d434"
> +
> +RDEPENDS_${PN} = "python-core python-compression"
> +
> +inherit setuptools
> +
> +BBCLASSEXTEND = "native"
> +
> +do_install_append_class-native() {
> +sed -i -e 's|^#!.*/usr/bin/env python|#! /usr/bin/env nativepython|'
> ${D}${bindir}/bmaptool
> +}
>

better to use recipe that would create in deploy/tools standalone version
of the tool.
Otherwise, there is no easy way for user to utilize generated bmap files.

--
> 2.1.4
>
> --
> ___
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>



-- 
br, Alexander Kanevskiy
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v2 1/3] bmap-tools: initial commit, version 3.2

2016-04-27 Thread Ed Bartosh
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".

[YOCTO #9414]

Signed-off-by: Ed Bartosh 
---
 meta/recipes-support/bmap-tools/bmap-tools_3.2.bb | 24 +++
 1 file changed, 24 insertions(+)
 create mode 100644 meta/recipes-support/bmap-tools/bmap-tools_3.2.bb

diff --git a/meta/recipes-support/bmap-tools/bmap-tools_3.2.bb 
b/meta/recipes-support/bmap-tools/bmap-tools_3.2.bb
new file mode 100644
index 000..e10f5fd
--- /dev/null
+++ b/meta/recipes-support/bmap-tools/bmap-tools_3.2.bb
@@ -0,0 +1,24 @@
+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 = "http://git.infradead.org/users/dedekind/bmap-tools.git;
+SECTION = "console/utils"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+SRC_URI = "ftp://ftp.infradead.org/pub/${BPN}/${BPN}-${PV}.tgz;
+SRC_URI[md5sum] = "92cdad1cb4dfa0cca7176c8e22752616"
+SRC_URI[sha256sum] = 
"cc6c7f7dc0a37e2a32deb127308e24e6c4b80bfb54f3803c308efab02bf2d434"
+
+RDEPENDS_${PN} = "python-core python-compression"
+
+inherit setuptools
+
+BBCLASSEXTEND = "native"
+
+do_install_append_class-native() {
+sed -i -e 's|^#!.*/usr/bin/env python|#! /usr/bin/env nativepython|' 
${D}${bindir}/bmaptool
+}
-- 
2.1.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core