diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-10-02 09:06:55 -0700 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-10-04 14:53:29 +0000 |
commit | dec9f0ba38811962fc9486559eb5432c36cf4d9c (patch) | |
tree | d95c8185813fd4b5a19fe58fd10e79d8d0a1ccd2 /meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc | |
parent | e222c07ae9b38f77095c76c326f16dc17dcc73c9 (diff) | |
download | meta-openembedded-dec9f0ba38811962fc9486559eb5432c36cf4d9c.tar.gz |
ubi-utils-klibc: Update to 1.5.2 release of mtd-utils
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc')
2 files changed, 16 insertions, 31 deletions
diff --git a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/0001-Makefile-only-build-ubi-utils.patch b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/0001-Makefile-only-build-ubi-utils.patch index 9d5e4ebf0..6e1b9ff10 100644 --- a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/0001-Makefile-only-build-ubi-utils.patch +++ b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/0001-Makefile-only-build-ubi-utils.patch | |||
@@ -25,11 +25,11 @@ Signed-off-by: Andrea Adami <andrea.adami@gmail.com> | |||
25 | Makefile | 24 ++---------------------- | 25 | Makefile | 24 ++---------------------- |
26 | 1 file changed, 2 insertions(+), 22 deletions(-) | 26 | 1 file changed, 2 insertions(+), 22 deletions(-) |
27 | 27 | ||
28 | diff --git a/Makefile b/Makefile | 28 | Index: git/Makefile |
29 | index eade234..2275865 100644 | 29 | =================================================================== |
30 | --- a/Makefile | 30 | --- git.orig/Makefile |
31 | +++ b/Makefile | 31 | +++ git/Makefile |
32 | @@ -16,28 +16,13 @@ endif | 32 | @@ -16,28 +16,11 @@ endif |
33 | 33 | ||
34 | TESTS = tests | 34 | TESTS = tests |
35 | 35 | ||
@@ -37,7 +37,7 @@ index eade234..2275865 100644 | |||
37 | - ftl_format flash_erase nanddump doc_loadbios \ | 37 | - ftl_format flash_erase nanddump doc_loadbios \ |
38 | - ftl_check mkfs.jffs2 flash_lock flash_unlock \ | 38 | - ftl_check mkfs.jffs2 flash_lock flash_unlock \ |
39 | - flash_otp_info flash_otp_dump flash_otp_lock flash_otp_write \ | 39 | - flash_otp_info flash_otp_dump flash_otp_lock flash_otp_write \ |
40 | - mtd_debug flashcp nandwrite nandtest \ | 40 | - mtd_debug flashcp nandwrite nandtest mtdpart \ |
41 | - jffs2dump \ | 41 | - jffs2dump \ |
42 | - nftldump nftl_format docfdisk \ | 42 | - nftldump nftl_format docfdisk \ |
43 | - rfddump rfdformat \ | 43 | - rfddump rfdformat \ |
@@ -51,15 +51,15 @@ index eade234..2275865 100644 | |||
51 | -BINS += mkfs.ubifs/mkfs.ubifs | 51 | -BINS += mkfs.ubifs/mkfs.ubifs |
52 | -BINS += $(addprefix ubi-utils/,$(UBI_BINS)) | 52 | -BINS += $(addprefix ubi-utils/,$(UBI_BINS)) |
53 | -SCRIPTS = flash_eraseall | 53 | -SCRIPTS = flash_eraseall |
54 | +BINS = $(addprefix ubi-utils/,$(UBI_BINS)) | 54 | - |
55 | 55 | -TARGETS = $(BINS) | |
56 | TARGETS = $(BINS) | ||
57 | -TARGETS += lib/libmtd.a | 56 | -TARGETS += lib/libmtd.a |
58 | -TARGETS += ubi-utils/libubi.a | 57 | -TARGETS += ubi-utils/libubi.a |
58 | +BINS = $(addprefix ubi-utils/,$(UBI_BINS)) | ||
59 | 59 | ||
60 | OBJDEPS = $(BUILDDIR)/include/version.h | 60 | OBJDEPS = $(BUILDDIR)/include/version.h |
61 | 61 | ||
62 | @@ -61,12 +46,9 @@ endif | 62 | @@ -61,12 +44,9 @@ endif |
63 | rm -f $(BUILDDIR)/include/version.h | 63 | rm -f $(BUILDDIR)/include/version.h |
64 | $(MAKE) -C $(TESTS) clean | 64 | $(MAKE) -C $(TESTS) clean |
65 | 65 | ||
@@ -73,7 +73,7 @@ index eade234..2275865 100644 | |||
73 | 73 | ||
74 | tests:: | 74 | tests:: |
75 | $(MAKE) -C $(TESTS) | 75 | $(MAKE) -C $(TESTS) |
76 | @@ -91,8 +73,6 @@ LDLIBS_mkfs.jffs2 = -lz $(LZOLDLIBS) | 76 | @@ -91,8 +71,6 @@ LDLIBS_mkfs.jffs2 = -lz $(LZOLDLIBS) |
77 | LDFLAGS_jffs2reader = $(ZLIBLDFLAGS) $(LZOLDFLAGS) | 77 | LDFLAGS_jffs2reader = $(ZLIBLDFLAGS) $(LZOLDFLAGS) |
78 | LDLIBS_jffs2reader = -lz $(LZOLDLIBS) | 78 | LDLIBS_jffs2reader = -lz $(LZOLDLIBS) |
79 | 79 | ||
@@ -82,6 +82,3 @@ index eade234..2275865 100644 | |||
82 | # | 82 | # |
83 | # Common libmtd | 83 | # Common libmtd |
84 | # | 84 | # |
85 | -- | ||
86 | 1.9.1 | ||
87 | |||
diff --git a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/0005-common.h-klibc-fixes-2.patch b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/0005-common.h-klibc-fixes-2.patch index 2e43d5d97..6b09c14d6 100644 --- a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/0005-common.h-klibc-fixes-2.patch +++ b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/0005-common.h-klibc-fixes-2.patch | |||
@@ -22,20 +22,11 @@ Signed-off-by: Andrea Adami <andrea.adami@gmail.com> | |||
22 | include/common.h | 10 ++++++---- | 22 | include/common.h | 10 ++++++---- |
23 | 1 file changed, 6 insertions(+), 4 deletions(-) | 23 | 1 file changed, 6 insertions(+), 4 deletions(-) |
24 | 24 | ||
25 | diff --git a/include/common.h b/include/common.h | 25 | Index: git/include/common.h |
26 | index 77f3f7d..2cbee0f 100644 | 26 | =================================================================== |
27 | --- a/include/common.h | 27 | --- git.orig/include/common.h |
28 | +++ b/include/common.h | 28 | +++ git/include/common.h |
29 | @@ -126,7 +126,7 @@ static char __PRIxoff_t_static_assert[sizeof(off_t) == 8 ? 1 : -1]; | 29 | @@ -161,15 +161,17 @@ static inline int __rpmatch(const char * |
30 | fprintf(stderr, "%s: warning!: " fmt "\n", PROGRAM_NAME, ##__VA_ARGS__); \ | ||
31 | } while(0) | ||
32 | |||
33 | -#if defined(__UCLIBC__) | ||
34 | +#if defined(__UCLIBC__) || defined(__KLIBC__) | ||
35 | /* uClibc versions before 0.9.34 don't have rpmatch() */ | ||
36 | #if __UCLIBC_MAJOR__ == 0 && \ | ||
37 | (__UCLIBC_MINOR__ < 9 || \ | ||
38 | @@ -146,15 +146,17 @@ static inline int __rpmatch(const char *resp) | ||
39 | */ | 30 | */ |
40 | static inline bool prompt(const char *msg, bool def) | 31 | static inline bool prompt(const char *msg, bool def) |
41 | { | 32 | { |
@@ -56,6 +47,3 @@ index 77f3f7d..2cbee0f 100644 | |||
56 | printf("failed to read prompt; assuming '%s'\n", | 47 | printf("failed to read prompt; assuming '%s'\n", |
57 | def ? "yes" : "no"); | 48 | def ? "yes" : "no"); |
58 | break; | 49 | break; |
59 | -- | ||
60 | 1.9.1 | ||
61 | |||