]> code.ossystems Code Review - openembedded-core.git/commit
image_types.bbclass: Restore compatibility with previous UBI filesystems
authorMike Looijmans <mike.looijmans@topic.nl>
Fri, 11 Sep 2015 17:06:40 +0000 (19:06 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 12 Sep 2015 22:01:55 +0000 (23:01 +0100)
commitb6e64de541b37bc5c558c4ad362a0467291a5609
tree0c63383428dc6447eb26dcb7ed394a4777e3cc7e
parent7f03dd50de76f0b5c3a10c514e920615ffaa846c
image_types.bbclass: Restore compatibility with previous UBI filesystems

Support for multiple ubi images has broken dozens of machine deployment scripts
in two ways:
Previously, ubi filesystems would be named $IMAGE_NAME as one would expect. The
current version would append "_rootfs" to that name for no reason. Fix it so that
the name for ubi images remains unchanged if there is only one image to build.
Machines would append to IMAGE_CMD_ubi, adding extra image processing of their
own. This is broken now that IMAGE_CMD_ubi became a variable instead of a function.
Make IMAGE_CMD_ubi a function again, this also makes for more logical quotes (I
was surprised to find that " within " would even work).

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/image_types.bbclass