Building the recipe with TUNE_FEATURES = "aarch64" and TARGET_FPU = ""
fails. See patch headers for more details.
Patch sent upstream for master, here rebased for 1.5.2.
Tested runtime on armv5.
While there backport one more patch fixing warnings in libmtd.c and
move the patches in their specific dir, preparing for v2.0.1.
Signed-off-by: Andrea Adami
---
Changelog;
v1 initial patch
v2 fix comments and update Upstream_Status
v3 refresh and move patches to ubi-utils-1.5.2 subdir
.../0001-Makefile-build-ubi-utils-only.patch} | 19 ---
.../0002-common.mk-for-klibc-CC-is-klcc.patch | 10 ++--
...ubi.c-add-klibc-specific-fixes-for-ioctl.patch} | 10 ++--
...atibility-to-dietlibc-klibc-musl-libc-af.patch} | 18 +++---
...more-workarounds-for-klibc-compatibility.patch} | 23
...rser-remove-unused-function-needing-float.patch | 8 +--
...ls-common.c-convert-to-integer-arithmetic.patch | 64 ++
...ubiformat.c-convert-to-integer-arithmetic.patch | 44 +++
...arnings-about-implicit-non-const-casting-.patch | 48
.../recipes-devtools/mtd/ubi-utils-klibc_1.5.2.bb | 11 ++--
10 files changed, 212 insertions(+), 43 deletions(-)
rename
meta-initramfs/recipes-devtools/mtd/{ubi-utils-klibc/0001-Makefile-only-build-ubi-utils.patch
=> ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch} (86%)
rename meta-initramfs/recipes-devtools/mtd/{ubi-utils-klibc =>
ubi-utils-klibc-1.5.2}/0002-common.mk-for-klibc-CC-is-klcc.patch (71%)
rename
meta-initramfs/recipes-devtools/mtd/{ubi-utils-klibc/0003-libubi.c-add-klibc-specific-fixes.patch
=>
ubi-utils-klibc-1.5.2/0003-libubi.c-add-klibc-specific-fixes-for-ioctl.patch}
(91%)
rename
meta-initramfs/recipes-devtools/mtd/{ubi-utils-klibc/0004-common.h-klibc-fixes-1.patch
=>
ubi-utils-klibc-1.5.2/0004-Restore-compatibility-to-dietlibc-klibc-musl-libc-af.patch}
(86%)
rename
meta-initramfs/recipes-devtools/mtd/{ubi-utils-klibc/0005-common.h-klibc-fixes-2.patch
=>
ubi-utils-klibc-1.5.2/0005-common.h-more-workarounds-for-klibc-compatibility.patch}
(71%)
rename meta-initramfs/recipes-devtools/mtd/{ubi-utils-klibc =>
ubi-utils-klibc-1.5.2}/0006-libiniparser-remove-unused-function-needing-float.patch
(95%)
create mode 100644
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0007-mtd-utils-common.c-convert-to-integer-arithmetic.patch
create mode 100644
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0008-ubi-utils-ubiformat.c-convert-to-integer-arithmetic.patch
create mode 100644
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0009-Eliminate-warnings-about-implicit-non-const-casting-.patch
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-1.5.2/0001-Makefile-build-ubi-utils-only.patch
similarity index 86%
rename from
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/0001-Makefile-only-build-ubi-utils.patch
rename to
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
index 6e1b9ff..6ac2cca 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-1.5.2/0001-Makefile-build-ubi-utils-only.patch
@@ -1,7 +1,7 @@
-From c4e6bd9378645d577e9d9f85da85f1438afe7c50 Mon Sep 17 00:00:00 2001
+From 1c989e4c36d0bf76ab444f984bc73b98eeacd03f Mon Sep 17 00:00:00 2001
From: Andrea Adami
Date: Sun, 29 Jun 2014 00:32:29 +0200
-Subject: [PATCH 1/6] Makefile: build ubi-utils only
+Subject: [PATCH 1/9] Makefile: build ubi-utils only
We build all the static ubi-utils but actually only ubiattach is needed in
a minimalistic initramfs for the mount of ubi volumes.
@@ -22,13 +22,13 @@ Upstream-Status: Inappropriate [embedded specific]
Signed-off-by: Andrea Adami
---
- Makefile | 24 ++--
- 1 file changed, 2 insertions(+), 22 deletions(-)
+ Makefile | 26 ++
+ 1 file changed, 2 insertions(+), 24 deletions(-)
-Index: git/Makefile
-===
git.orig/Makefile
-+++ git/Makefile
+diff --git a/Makefile b/Makefile
+index 3ce8587..8b79f71 100644
+--- a/Makefile
b/Makefile
@@ -16,28 +16,11 @@ endif
TESTS = tests
@@ -82,3 +82,6 @@ Index: git/Makefile
#
# Common libmtd
#
+--
+2.7.4
+
diff --git
a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/0002-common.mk-for-klibc-CC-is-klcc.patch
b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0002-common.mk-for-klibc-CC-is-klcc.patch
similarity index 71%
rename from
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/0002-common.mk-for-klibc-CC-is-klcc.patch
rename to