mbox series

[v2,0/2] mtd-utils: improve compatibility with klibc

Message ID 1517263632-11126-1-git-send-email-andrea.adami@gmail.com
Headers show
Series mtd-utils: improve compatibility with klibc | expand

Message

Andrea Adami Jan. 29, 2018, 10:07 p.m. UTC
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(-)

Comments

David Oberhollenzer Jan. 30, 2018, 12:08 p.m. UTC | #1
Applied to mtd-utils.git

Thanks,

David