From: Siarhei Siamashka Date: Fri, 30 Jan 2015 13:58:47 +0200 Subject: [U-Boot] [PATCH 2/4] sunxi: Use Thumb2 for the FEL mode SPL In-Reply-To: <1422619129-23352-1-git-send-email-siarhei.siamashka@gmail.com> References: <1422619129-23352-1-git-send-email-siarhei.siamashka@gmail.com> Message-ID: <1422619129-23352-3-git-send-email-siarhei.siamashka@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- 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 /* get chip and board defs */ -- 2.0.5