ubi-utils-klibc_1.5.2: fix build for qemuarm

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 <andrea.adami@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
Andrea Adami
2018-01-29 00:05:07 +01:00
committed by Armin Kuster
parent 75356b6a76
commit edbe41f53e
10 changed files with 212 additions and 43 deletions
@@ -11,12 +11,15 @@ inherit klibc
SRCREV = "aea36417067dade75192bafa03af70b6eb2677b1"
SRC_URI = "git://git.infradead.org/mtd-utils.git \
file://0001-Makefile-only-build-ubi-utils.patch \
file://0001-Makefile-build-ubi-utils-only.patch \
file://0002-common.mk-for-klibc-CC-is-klcc.patch \
file://0003-libubi.c-add-klibc-specific-fixes.patch \
file://0004-common.h-klibc-fixes-1.patch \
file://0005-common.h-klibc-fixes-2.patch \
file://0003-libubi.c-add-klibc-specific-fixes-for-ioctl.patch \
file://0004-Restore-compatibility-to-dietlibc-klibc-musl-libc-af.patch \
file://0005-common.h-more-workarounds-for-klibc-compatibility.patch \
file://0006-libiniparser-remove-unused-function-needing-float.patch \
file://0007-mtd-utils-common.c-convert-to-integer-arithmetic.patch \
file://0008-ubi-utils-ubiformat.c-convert-to-integer-arithmetic.patch \
file://0009-Eliminate-warnings-about-implicit-non-const-casting-.patch \
"
S = "${WORKDIR}/git/"