From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sjoerd Simons Date: Fri, 4 Dec 2015 23:27:34 +0100 Subject: [U-Boot] [PATCH 0/7] Switch rockchip firefly to using tiny-printf Message-ID: <1449268061-805-1-git-send-email-sjoerd.simons@collabora.co.uk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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