diff options
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r-- | meta/classes/image.bbclass | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 6b9f9798db..0e81b4e7e0 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -297,7 +297,15 @@ python setup_debugfs () { | |||
297 | 297 | ||
298 | python () { | 298 | python () { |
299 | vardeps = set() | 299 | vardeps = set() |
300 | ctypes = d.getVar('COMPRESSIONTYPES', True).split() | 300 | # We allow COMPRESSIONTYPES to have duplicates. That avoids breaking |
301 | # derived distros when OE-core or some other layer independently adds | ||
302 | # the same type. There is still only one command for each type, but | ||
303 | # presumably the commands will do the same when the type is the same, | ||
304 | # even when added in different places. | ||
305 | # | ||
306 | # Without de-duplication, gen_conversion_cmds() below | ||
307 | # would create the same compression command multiple times. | ||
308 | ctypes = set(d.getVar('COMPRESSIONTYPES', True).split()) | ||
301 | old_overrides = d.getVar('OVERRIDES', 0) | 309 | old_overrides = d.getVar('OVERRIDES', 0) |
302 | 310 | ||
303 | def _image_base_type(type): | 311 | def _image_base_type(type): |