package/mtd: bump to version 2.1.2
PATCH 1/1 package/mtd: bump to version 2.1.2
- drop patch included in version
- update hash file formatting (2 spaces)
Signed-off-by Heiko Thiery <[email protected]>
--- ...-utils-Fix-return-value-of-ubiformat.patch | 60 ------------------- package/mtd/mtd.hash | 6 +- package/mtd/mtd.mk | 2 +- 3 files changed, 4 insertions(+), 64 deletions(-) delete mode 100644 package/mtd/0001-mtd-utils-Fix-return-value-of-ubiformat.patch
package/mtd/0001-mtd-utils-Fix-return-value-of-ubiformat.patch deleted +0 -60
@@ -1,60 +0,0 @@ -From 95633c4dfe943a701d4fcd809e6cabf4bf8710b8 Mon Sep 17 00:00:00 2001 -From: Barry Grussling <[email protected]> -Date: Sun, 12 Jan 2020 12:33:32 -0800 -Subject: [PATCH] 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. - -Tested by running through my loading scripts and verifying ubiformat returned -0. - -Signed-off-by: Barry Grussling <[email protected]> -Signed-off-by: David Oberhollenzer <[email protected]> -Backported-from: 95633c4dfe943a701d4fcd809e6cabf4bf8710b8 -Signed-off-by: Thomas De Schampheleire <[email protected]> ---- - ubi-utils/ubiformat.c | 7 +++++-- - 1 file changed, 5 insertions(+), 2 deletions(-) - -diff --git a/ubi-utils/ubiformat.c b/ubi-utils/ubiformat.c -index 64afad2..be40e52 100644 ---- a/ubi-utils/ubiformat.c -+++ b/ubi-utils/ubiformat.c -@@ -550,6 +550,7 @@ static int format(libmtd_t libmtd, const struct mtd_dev_info *mtd, - struct ubi_vtbl_record *vtbl; - int eb1 = -1, eb2 = -1; - long long ec1 = -1, ec2 = -1; -+ int ret = -1; - - write_size = UBI_EC_HDR_SIZE + mtd->subpage_size - 1; - write_size /= mtd->subpage_size; -@@ -643,8 +644,10 @@ static int format(libmtd_t libmtd, const struct mtd_dev_info *mtd, - if (!args.quiet && !args.verbose) - printf("\n"); - -- if (novtbl) -+ if (novtbl) { -+ ret = 0; - goto out_free; -+ } - - if (eb1 == -1 || eb2 == -1) { - errmsg("no eraseblocks for volume table"); -@@ -669,7 +672,7 @@ static int format(libmtd_t libmtd, const struct mtd_dev_info *mtd, - - out_free: - free(hdr); -- return -1; -+ return ret; - } - - int main(int argc, char * const argv[]) --- -2.24.1 -
package/mtd/mtd.hash +3 -3
@@ -1,4 +1,4 @@ # Locally calculated after checking pgp signature -# ftp://ftp.infradead.org/pub/mtd-utils/mtd-utils-2.1.1.tar.bz2.asc -sha256 8d15e8b70f036d6af1a66011f8ca0e048e9675fa7983d33bea92c24313a232d2 mtd-utils-2.1.1.tar.bz2 -sha256 dcc100d4161cc0b7177545ab6e47216f84857cda3843847c792a25289852dcaa COPYING +# ftp://ftp.infradead.org/pub/mtd-utils/mtd-utils-2.1.2.tar.bz2.asc +sha256 8ad4c5f34716d40646aa28724a2f5616d325a6f119254f914e26976f1f76e9d6 mtd-utils-2.1.2.tar.bz2 +sha256 dcc100d4161cc0b7177545ab6e47216f84857cda3843847c792a25289852dcaa COPYING
package/mtd/mtd.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -MTD_VERSION = 2.1.1 +MTD_VERSION = 2.1.2 MTD_SOURCE = mtd-utils-$(MTD_VERSION).tar.bz2 MTD_SITE = ftp://ftp.infradead.org/pub/mtd-utils MTD_LICENSE = GPL-2.0
Signature · 1 line
2.20.1
Thomas Petazzoni
AppliedPATCH 1/1 package/mtd: bump to version 2.1.2
Quoted 10 lines · On Wed, 15 Jul 2020 22:58:38 +0200 Heiko Thiery <[email protected]> wrote:
- drop patch included in version
- update hash file formatting (2 spaces)Signed-off-by Heiko Thiery <[email protected]>--- ...-utils-Fix-return-value-of-ubiformat.patch | 60 ------------------- package/mtd/mtd.hash | 6 +- package/mtd/mtd.mk | 2 +- 3 files changed, 4 insertions(+), 64 deletions(-) delete mode 100644 package/mtd/0001-mtd-utils-Fix-return-value-of-ubiformat.patch
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com