From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko =?ISO-8859-1?Q?St=FCbner?= Date: Tue, 04 Apr 2017 11:34:52 +0200 Subject: [U-Boot] [PATCH v2 0/5] Patches to reduce TPL code size In-Reply-To: <20170402155032.27473-1-sjg@chromium.org> References: <20170402155032.27473-1-sjg@chromium.org> Message-ID: <1955498.OWTG1DWZFn@diego> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Am Sonntag, 2. April 2017, 09:50:27 CEST schrieb Simon Glass: > With the rockchip 'rock' board some build and code size problems have come > to light with TPL. This series provides a few ideas to improve things. great stuff! With these patches applied, rk3188-rock still boots and the TPL has come down to 616byte on gcc-4.9 and 592bytes on gcc-6.3, so Tested-by: Heiko Stuebner We have like vast amounts of free space in tpl now ;-) I guess I should fold your TINY_MEMSET option into my rock board, once you've applied the core patch? Heiko > > Changes in v2: > - Adjust the option to be SPL-only > - Change the option to default to off (name it CONFIG_SPL_TINY_MEMSET) > - Add a new patch to enable CONFIG_SPL_TINY_MEMSET > - Add new patch to allow driver model to be disabled for TPL > - Add new patch to allow driver-model serial to be disabled for TPL > > Simon Glass (5): > string: Provide a slimmed-down memset() > rockchip: rock: Enable CONFIG_SPL_TINY_MEMSET > Makefile: Provide an option to select SPL or TPL > dm: core: Allow driver model to be disabled for TPL > dm: serial: Allow driver-model serial to be disabled for TPL > > configs/rock_defconfig | 1 + > drivers/Makefile | 2 +- > drivers/core/Kconfig | 14 ++++++++++++++ > drivers/serial/Kconfig | 20 ++++++++++++++++++++ > drivers/serial/Makefile | 2 +- > lib/Kconfig | 8 ++++++++ > lib/string.c | 6 ++++-- > scripts/Kbuild.include | 6 ++++++ > scripts/Makefile.spl | 6 ++++++ > 9 files changed, 61 insertions(+), 4 deletions(-)