]> code.ossystems Code Review - openembedded-core.git/commit
mtd-utils: Fix return value of ubiformat
authorOtavio Salvador <otavio.salvador@gmail.com>
Wed, 8 Jul 2020 21:07:55 +0000 (00:07 +0300)
committerAnuj Mittal <anuj.mittal@intel.com>
Fri, 17 Jul 2020 01:36:48 +0000 (09:36 +0800)
commite10f007c165ed974a0cd4d46934cd4708661aaf5
tree8c94f275307b9f03c2af127485e5d141da57f1e9
parent19c87007f6f92dc94db19e3c23ad06e09f397abe
mtd-utils: Fix return value of ubiformat

This changeset fixes a feature regression in ubiformat.  Older versions
of ubiformat, when invoked with a flash-image, would return 0 in the
case no error was encountered.  Upon upgrading to latest, it was
discovered that ubiformat returned 255 even without encountering an
error condition.

This changeset corrects the above issue and causes ubiformat, when given an
image file, to return 0 when no errors are detected.

Backport fix from 2.1.2

(From OE-Core rev: 3ee98b6c9ddd1dd0825245ca672236b7befb9859)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
(cherry picked from commit 7ebacd9cbaec98fbc406e8ae99c9805a24fdadc6)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/recipes-devtools/mtd/mtd-utils/0001-mtd-utils-Fix-return-value-of-ubiformat.patch [new file with mode: 0644]
meta/recipes-devtools/mtd/mtd-utils_git.bb