mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-17 12:41:32 +00:00
arm: Don't use printf() in SPL builds
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. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
2cb06a4fda
commit
fe901f2d9b
1 changed files with 2 additions and 1 deletions
|
@ -13,7 +13,8 @@
|
|||
|
||||
int raise (int signum)
|
||||
{
|
||||
#if !defined(CONFIG_SPL_BUILD) || defined(CONFIG_SPL_LIBCOMMON_SUPPORT)
|
||||
/* Even if printf() is available, it's large. Punt it for SPL builds */
|
||||
#if !defined(CONFIG_SPL_BUILD)
|
||||
printf("raise: Signal # %d caught\n", signum);
|
||||
#endif
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue