diff options
| -rw-r--r-- | meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/0001-Makefile-only-build-ubi-utils.patch | 25 | ||||
| -rw-r--r-- | meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/0005-common.h-klibc-fixes-2.patch | 22 | ||||
| -rw-r--r-- | meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_1.5.2.bb (renamed from meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_1.5.1.bb) | 8 |
3 files changed, 19 insertions, 36 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 9d5e4ebf07..6e1b9ff100 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 2e43d5d974..6b09c14d6c 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 | |||
diff --git a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_1.5.1.bb b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_1.5.2.bb index 8ca1ca727d..518c02fc00 100644 --- a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_1.5.1.bb +++ b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_1.5.2.bb | |||
| @@ -9,7 +9,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ | |||
| 9 | 9 | ||
| 10 | inherit klibc | 10 | inherit klibc |
| 11 | 11 | ||
| 12 | SRC_URI = "git://git.infradead.org/mtd-utils.git;tag=b7455d847ab4f9eeeb6a729efc306bfda7bddc99 \ | 12 | SRCREV = "aea36417067dade75192bafa03af70b6eb2677b1" |
| 13 | SRC_URI = "git://git.infradead.org/mtd-utils.git \ | ||
| 13 | file://0001-Makefile-only-build-ubi-utils.patch \ | 14 | file://0001-Makefile-only-build-ubi-utils.patch \ |
| 14 | file://0002-common.mk-for-klibc-CC-is-klcc.patch \ | 15 | file://0002-common.mk-for-klibc-CC-is-klcc.patch \ |
| 15 | file://0003-libubi.c-add-klibc-specific-fixes.patch \ | 16 | file://0003-libubi.c-add-klibc-specific-fixes.patch \ |
| @@ -23,10 +24,7 @@ S = "${WORKDIR}/git/" | |||
| 23 | EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} -I${S}include -DWITHOUT_XATTR' 'BUILDDIR=${S}'" | 24 | EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} -I${S}include -DWITHOUT_XATTR' 'BUILDDIR=${S}'" |
| 24 | 25 | ||
| 25 | do_install () { | 26 | do_install () { |
| 26 | 27 | oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} INCLUDEDIR=${includedir} | |
| 27 | install -d ${D}${sbindir} | ||
| 28 | oe_runmake DESTDIR="${D}" install | ||
| 29 | |||
| 30 | } | 28 | } |
| 31 | 29 | ||
| 32 | PACKAGES = "ubi-utils-klibc-dbg" | 30 | PACKAGES = "ubi-utils-klibc-dbg" |
