[U-Boot] [PATCH 2/4] sunxi: Use Thumb2 for the FEL mode SPL
Siarhei Siamashka
siarhei.siamashka at gmail.com
Fri Jan 30 12:58:47 CET 2015
With the FEL entry point converted to assembly code (which uses ARM
mode), the rest of the SPL can be now compiled in Thumb2 mode safely.
This provides a significant code size reduction:
== before ==
text data bss dec hex filename
13938 440 28 14406 3846 spl/u-boot-spl
== after ==
text data bss dec hex filename
10918 440 28 11386 2c7a spl/u-boot-spl
Signed-off-by: Siarhei Siamashka <siarhei.siamashka at gmail.com>
---
include/configs/sunxi-common.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h
index 6cfd7e1..f570d9c 100644
--- a/include/configs/sunxi-common.h
+++ b/include/configs/sunxi-common.h
@@ -18,10 +18,8 @@
*/
#define CONFIG_SUNXI /* sunxi family */
#ifdef CONFIG_SPL_BUILD
-#ifndef CONFIG_SPL_FEL
#define CONFIG_SYS_THUMB_BUILD /* Thumbs mode to save space in SPL */
#endif
-#endif
#include <asm/arch/cpu.h> /* get chip and board defs */
--
2.0.5
More information about the U-Boot
mailing list