]> code.ossystems Code Review - openembedded-core.git/commit
mtd-utils: Fix return value of ubiformat
authorOtavio Salvador <otavio.salvador@gmail.com>
Fri, 12 Jun 2020 18:08:09 +0000 (15:08 -0300)
committerSteve Sakoman <steve@sakoman.com>
Thu, 18 Jun 2020 16:23:00 +0000 (06:23 -1000)
commit3ee98b6c9ddd1dd0825245ca672236b7befb9859
tree2c7411055501cbc6257625312347389c6241097e
parente6e2cabc33ab30d38e31ef830f7bc5e3cd07b6d5
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

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 7ebacd9cbaec98fbc406e8ae99c9805a24fdadc6)
Signed-off-by: Steve Sakoman <steve@sakoman.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