]> code.ossystems Code Review - openembedded-core.git/commit
image: Fix "metadata is not deterministic" when chaining 2+ CONVERSION_CMDs
authorTom Rini <trini@konsulko.com>
Tue, 25 Jul 2017 19:58:09 +0000 (15:58 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 29 Aug 2017 10:54:25 +0000 (11:54 +0100)
commit26feb0580642ef8934206ea73cdce9e1f73d14ef
treecae7011e072e1f7a93b623ae295a82617ce6a8da
parentad22f73519292f53d2ea6eaae99f8a919c4f2c26
image: Fix "metadata is not deterministic" when chaining 2+ CONVERSION_CMDs

When we have more than one CONVERSION_CMD being used, for example
ext4.gz.sha256sum we will see errors about "metadata is not
deterministic".  This is because we do not have a stable order of
intermediate files that will be removed in the generated shell command.
We fix this by calling sorted() on the set of rm_tmp_images so that we
will have a stable hash again.

Cc: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 98a2afeb3a53bec7a72a4a9846e1dba636cc6f3d)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/image.bbclass