From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Mon, 5 Mar 2012 09:21:26 +0100 Subject: [U-Boot] [PATCH] arm: Don't use printf() in SPL builds In-Reply-To: <1330806795-20763-1-git-send-email-sjg@chromium.org> References: <1330806795-20763-1-git-send-email-sjg@chromium.org> Message-ID: <201203050921.26402.sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Saturday 03 March 2012 21:33:15 Simon Glass wrote: > raise() likes to call printf() if it is available, but in SPL builds it > either is not available, or adds a large chunk to the resulting image > size. > > So don't call it even if it is available. > > This change reduces SPL size from 10KB to 6.3KB on hawkboard, for > example, using generic relocation. Thanks. I do have a similar patch in my SPEAr600 SPL patch queue where printf support increases the image size. So: Acked-by: Stefan Roese Thanks, Stefan -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de