]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
buildstats: check IMAGE_ROOTFS exists before checking its size
authorMikko Ylinen <mikko.ylinen@intel.com>
Wed, 19 Oct 2016 06:34:00 +0000 (09:34 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 25 Oct 2016 16:51:19 +0000 (17:51 +0100)
commit952a47b42cb3696db2896ac53b5246802bba0f59
tree6bfb93be110ba70b8dc6f88a1947c15496b707b4
parent74f30e91bca1f6af3bef0ff9e652c0591013b412
buildstats: check IMAGE_ROOTFS exists before checking its size

After 0d6b7276003f1afabc6de683f663540327d52bdc, the exceptions are
correctly checked if the rootfs size check fails. In case of a
failure a build error is triggered.

However, there are cases where this is known to fail (e.g.,
with meta-swupd the rootfs for swupd images is other than IMAGE_ROOTFS).

Because of that, check IMAGE_ROOTFS exists before trying to get the
size of it. Also, in case of any error catched as err, simply print
out a warning.

(From OE-Core rev: b4929542ff01a24bea5edd1c40e3174f55e213ff)

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/buildstats.bbclass