]> code.ossystems Code Review - openembedded-core.git/commit
image.bbclass: support duplicate compression types
authorPatrick Ohly <patrick.ohly@intel.com>
Wed, 18 May 2016 16:24:14 +0000 (19:24 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 22 May 2016 15:09:22 +0000 (16:09 +0100)
commit85855af359c2c3bfc1eaa942c95f1f7d7cc6698e
tree9ff1367c27766b5a0e710505112b05cda103047e
parent6cc65261169c9d4da61a85596e3f7864699d50d0
image.bbclass: support duplicate compression types

When a derived distro adds a certain type, say zip, to
COMPRESSIONTYPES and later OE-core does the same, we end up with the
type being listed twice, and that would have undesired effects
(commands generated twice).

So to support such loosely coupled extension, we de-duplicated the
list of types first.

Alternatively, such a situation could also be treated as error. But that
seems unnecessary because typically commands for the same type will also
do the same thing.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/image.bbclass