All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/7] Switch rockchip firefly to using tiny-printf
@ 2015-12-04 22:27 Sjoerd Simons
  2015-12-04 22:27 ` [U-Boot] [PATCH 1/7] spl: use panic_str instead of panic Sjoerd Simons
                   ` (7 more replies)
  0 siblings, 8 replies; 32+ messages in thread
From: Sjoerd Simons @ 2015-12-04 22:27 UTC (permalink / raw)
  To: u-boot


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

^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2015-12-14  7:38 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-04 22:27 [U-Boot] [PATCH 0/7] Switch rockchip firefly to using tiny-printf Sjoerd Simons
2015-12-04 22:27 ` [U-Boot] [PATCH 1/7] spl: use panic_str instead of panic Sjoerd Simons
2015-12-06 16:45   ` Simon Glass
2015-12-08  0:39     ` Simon Glass
2015-12-14  3:44       ` Simon Glass
2015-12-04 22:27 ` [U-Boot] [PATCH 2/7] spl: mmc: Explicitly init mmc struct Sjoerd Simons
2015-12-06 16:45   ` Simon Glass
2015-12-04 22:27 ` [U-Boot] [PATCH 3/7] lib/tiny-printf.c: Implement vprintf Sjoerd Simons
2015-12-08  0:39   ` Simon Glass
2015-12-14  3:44     ` Simon Glass
2015-12-04 22:27 ` [U-Boot] [PATCH 4/7] lib: Split panic functions out of vsprintf.c Sjoerd Simons
2015-12-08  0:39   ` Simon Glass
2015-12-08  7:27     ` Sjoerd Simons
2015-12-08 19:34       ` Simon Glass
2015-12-08 19:36         ` Scott Wood
2015-12-08 19:38           ` Simon Glass
2015-12-14  3:45             ` Simon Glass
2015-12-14  7:38               ` Sjoerd Simons
2015-12-04 22:27 ` [U-Boot] [PATCH 5/7] lib: split out strtoxxxx " Sjoerd Simons
2015-12-08  0:39   ` Simon Glass
2015-12-08  7:30     ` Sjoerd Simons
2015-12-14  3:45       ` Simon Glass
2015-12-04 22:27 ` [U-Boot] [PATCH 6/7] mmc: mmc: Don't use sprintf when using tiny-printf Sjoerd Simons
2015-12-08  0:40   ` Simon Glass
2015-12-08  7:34     ` Sjoerd Simons
2015-12-14  3:45       ` Simon Glass
2015-12-04 22:27 ` [U-Boot] [PATCH 7/7] rockchip: firefly: Use tiny-printf Sjoerd Simons
2015-12-08  0:40   ` Simon Glass
2015-12-14  3:45     ` Simon Glass
2015-12-05 10:00 ` [U-Boot] [PATCH 0/7] Switch rockchip firefly to using tiny-printf Stefan Roese
2015-12-07 21:43   ` Simon Glass
2015-12-07 21:53     ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.