[PATCH v2 0/2] mtd-utils: improve compatibility with klibc
Andrea Adami
andrea.adami at gmail.com
Mon Jan 29 14:07:10 PST 2018
Klibc does not support floating point calculations.
Here some fixes needed to build the ubi-utils against klibc for aarch64,
without FPU.
These lines end up compiled with soft float for other arm targets w/out
FPU thus this was discovered only cross-building for qemuarm64 using the flag
'-mgeneral-regs-only'.
Changes tested on armv5, same output is printed.
v2 fixes compiler warnings (-Wformat) about printf().
Andrea Adami (2):
mtd-utils: common.c: convert to integer arithmetic
ubi-utils: ubiformat.c: convert to integer arithmetic
lib/common.c | 18 ++++++++++++------
ubi-utils/ubiformat.c | 2 +-
2 files changed, 13 insertions(+), 7 deletions(-)
--
2.7.4
More information about the linux-mtd
mailing list