[OE-core] [PATCH] image_types: use compress framework to produce checksums for images

Alexander Kanevskiy kad at kad.name
Thu Mar 24 20:45:30 UTC 2016


On Thu, Mar 24, 2016 at 10:32 PM, Andre McCurdy <armccurdy at gmail.com> wrote:

> On Thu, Mar 24, 2016 at 1:16 PM, Alexander D. Kanevskiy <kad at kad.name>
> wrote:
> > Existing compress framework for producing various compressed versions
> > of images is powerfull enough to be extended for other uses, e.g. to
> > convert types of images.
> >
> > It is possible to use it also to produce image checksums at the time
> > of image generation. This commit adds support for all supported
> > at the moment coreutils hashing algorithms: md5, sha1, sha224,
> > sha256, sha384 and sha512
> >
> > Usage:
> > IMAGE_FSTYPES_append = " hddimg.sha256sum"
>
> I guess a common requirement is for hashes of the compressed images,
> not only the uncompressed image.


you can easily chain them.
" hddimg.sha256sum hddimg.xz hddimg.xz.sha256sum"


-- 
br, Alexander Kanevskiy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160324/eb0be499/attachment-0002.html>


More information about the Openembedded-core mailing list