[U-Boot] [PATCH 0/7] Switch rockchip firefly to using tiny-printf
Sjoerd Simons
sjoerd.simons at collabora.co.uk
Fri Dec 4 23:27:34 CET 2015
The Rockchip rk3288 SPL was always too close to the 32k limit, either
needing gcc 5 or a patched gcc (with some constant string GC fixes) to
actually stay (just) below 32k. With recent changes, it unfortunatly
went over with common gcc versions.
This serie switches the firefly SPL to use tiny-printf instead of the
printf from vsprint, saving around 1800 bytes in the final binary to
bring it under the limit with a bit more margin again.
Sjoerd Simons (7):
spl: use panic_str instead of panic
spl: mmc: Explicitly init mmc struct
lib/tiny-printf.c: Implement vprintf
lib: Split panic functions out of vsprintf.c
lib: split out strtoxxxx functions out of vsprintf.c
mmc: mmc: Don't use sprintf when using tiny-printf
rockchip: firefly: Use tiny-printf
common/spl/spl.c | 2 +-
common/spl/spl_mmc.c | 2 +-
configs/firefly-rk3288_defconfig | 1 +
drivers/mmc/mmc.c | 4 +-
lib/Makefile | 6 +-
lib/panic.c | 45 +++++++++
lib/strto.c | 174 +++++++++++++++++++++++++++++++++++
lib/tiny-printf.c | 18 +++-
lib/vsprintf.c | 193 ---------------------------------------
9 files changed, 241 insertions(+), 204 deletions(-)
create mode 100644 lib/panic.c
create mode 100644 lib/strto.c
--
2.6.2
More information about the U-Boot
mailing list