From 3a649407a49b041ceb826d55b5919dc8297f8965 Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Sat, 18 Mar 2017 09:01:44 -0400 Subject: arm: Migrate SYS_THUMB_BUILD to Kconfig, introduce SPL_SYS_THUMB_BUILD Today, we have cases where we wish to build all of U-Boot in Thumb2 mode for various reasons. We also have cases where we only build SPL in Thumb2 mode due to size constraints and wish to build the rest of the system in ARM mode. So in this migration we introduce a new symbol as well, SPL_SYS_THUMB_BUILD to control if we build everything or just SPL (or in theory, just U-Boot) in Thumb2 mode. Signed-off-by: Tom Rini Acked-by: Siarhei Siamashka --- include/configs/apalis_imx6.h | 1 - include/configs/colibri_imx6.h | 1 - include/configs/colibri_imx7.h | 2 -- include/configs/colibri_vf.h | 1 - include/configs/highbank.h | 1 - include/configs/imx6_spl.h | 1 - include/configs/kc1.h | 2 -- include/configs/openrd.h | 1 - include/configs/pcm052.h | 2 -- include/configs/rcar-gen2-common.h | 2 -- include/configs/rk3036_common.h | 1 - include/configs/rk3288_common.h | 1 - include/configs/smartweb.h | 1 - include/configs/socfpga_common.h | 2 -- include/configs/stm32f429-discovery.h | 1 - include/configs/stm32f746-disco.h | 2 -- include/configs/sunxi-common.h | 7 ------- include/configs/taurus.h | 1 - include/configs/tbs2910.h | 1 - include/configs/ti_armv7_common.h | 2 -- include/configs/ti_omap4_common.h | 2 -- include/configs/tricorder.h | 1 - include/configs/x600.h | 1 - 23 files changed, 37 deletions(-) (limited to 'include/configs') diff --git a/include/configs/apalis_imx6.h b/include/configs/apalis_imx6.h index 9c899e40b0b..cad04208c2b 100644 --- a/include/configs/apalis_imx6.h +++ b/include/configs/apalis_imx6.h @@ -10,7 +10,6 @@ #define __CONFIG_H #include "mx6_common.h" -#define CONFIG_SYS_THUMB_BUILD #undef CONFIG_DISPLAY_BOARDINFO #define CONFIG_DISPLAY_BOARDINFO_LATE /* Calls show_board_info() */ diff --git a/include/configs/colibri_imx6.h b/include/configs/colibri_imx6.h index 2fbadf25225..b1f6b877150 100644 --- a/include/configs/colibri_imx6.h +++ b/include/configs/colibri_imx6.h @@ -10,7 +10,6 @@ #define __CONFIG_H #include "mx6_common.h" -#define CONFIG_SYS_THUMB_BUILD #undef CONFIG_DISPLAY_BOARDINFO #define CONFIG_DISPLAY_BOARDINFO_LATE /* Calls show_board_info() */ diff --git a/include/configs/colibri_imx7.h b/include/configs/colibri_imx7.h index 3da4211e9be..4da91d328ae 100644 --- a/include/configs/colibri_imx7.h +++ b/include/configs/colibri_imx7.h @@ -14,8 +14,6 @@ #include "mx7_common.h" -#define CONFIG_SYS_THUMB_BUILD - /*#define CONFIG_DBG_MONITOR*/ #define PHYS_SDRAM_SIZE SZ_512M diff --git a/include/configs/colibri_vf.h b/include/configs/colibri_vf.h index bfd5fbd8d73..e01be9dde74 100644 --- a/include/configs/colibri_vf.h +++ b/include/configs/colibri_vf.h @@ -15,7 +15,6 @@ #include #define CONFIG_VF610 -#define CONFIG_SYS_THUMB_BUILD #define CONFIG_SYS_FSL_CLK #define CONFIG_DISPLAY_BOARDINFO_LATE /* Calls show_board_info() */ diff --git a/include/configs/highbank.h b/include/configs/highbank.h index b47624ad3fd..67937320ab9 100644 --- a/include/configs/highbank.h +++ b/include/configs/highbank.h @@ -10,7 +10,6 @@ #include #define CONFIG_SYS_DCACHE_OFF -#define CONFIG_SYS_THUMB_BUILD #define CONFIG_SYS_BOOTMAPSZ (16 << 20) diff --git a/include/configs/imx6_spl.h b/include/configs/imx6_spl.h index 3a389ede4b5..4598d272d57 100644 --- a/include/configs/imx6_spl.h +++ b/include/configs/imx6_spl.h @@ -24,7 +24,6 @@ * and some padding thus 'our' max size is really 0x00908000 - 0x00918000 * or 64KB */ -#define CONFIG_SYS_THUMB_BUILD #define CONFIG_SPL_LDSCRIPT "arch/arm/mach-omap2/u-boot-spl.lds" #define CONFIG_SPL_TEXT_BASE 0x00908000 #define CONFIG_SPL_MAX_SIZE 0x10000 diff --git a/include/configs/kc1.h b/include/configs/kc1.h index cc78a09f6ae..dd18329e4cd 100644 --- a/include/configs/kc1.h +++ b/include/configs/kc1.h @@ -16,8 +16,6 @@ * Build */ -#define CONFIG_SYS_THUMB_BUILD - /* * CPU */ diff --git a/include/configs/openrd.h b/include/configs/openrd.h index 14cf3b43a27..19660db0809 100644 --- a/include/configs/openrd.h +++ b/include/configs/openrd.h @@ -21,7 +21,6 @@ #define CONFIG_KW88F6281 1 /* SOC Name */ #define CONFIG_MACH_OPENRD_BASE /* Machine type */ #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */ -#define CONFIG_SYS_THUMB_BUILD /* * Commands configuration diff --git a/include/configs/pcm052.h b/include/configs/pcm052.h index 49090498dac..2cbd8feb71d 100644 --- a/include/configs/pcm052.h +++ b/include/configs/pcm052.h @@ -13,8 +13,6 @@ #define CONFIG_VF610 -#define CONFIG_SYS_THUMB_BUILD - #define CONFIG_SKIP_LOWLEVEL_INIT /* Enable passing of ATAGs */ diff --git a/include/configs/rcar-gen2-common.h b/include/configs/rcar-gen2-common.h index 39c40d3f828..286b5d61af4 100644 --- a/include/configs/rcar-gen2-common.h +++ b/include/configs/rcar-gen2-common.h @@ -14,8 +14,6 @@ #define CONFIG_CMD_DFL #define CONFIG_CMD_SDRAM -#define CONFIG_SYS_THUMB_BUILD - /* Support File sytems */ #define CONFIG_FAT_WRITE #define CONFIG_SUPPORT_VFAT diff --git a/include/configs/rk3036_common.h b/include/configs/rk3036_common.h index 318a52c3ed9..f07f237530a 100644 --- a/include/configs/rk3036_common.h +++ b/include/configs/rk3036_common.h @@ -17,7 +17,6 @@ #define CONFIG_SYS_MALLOC_LEN (32 << 20) #define CONFIG_SYS_CBSIZE 1024 #define CONFIG_SKIP_LOWLEVEL_INIT -#define CONFIG_SYS_THUMB_BUILD #define CONFIG_SYS_TIMER_RATE (24 * 1000 * 1000) #define CONFIG_SYS_TIMER_BASE 0x200440a0 /* TIMER5 */ diff --git a/include/configs/rk3288_common.h b/include/configs/rk3288_common.h index b5606d463c5..a08c8525962 100644 --- a/include/configs/rk3288_common.h +++ b/include/configs/rk3288_common.h @@ -17,7 +17,6 @@ #define CONFIG_BAUDRATE 115200 #define CONFIG_SYS_MALLOC_LEN (32 << 20) #define CONFIG_SYS_CBSIZE 1024 -#define CONFIG_SYS_THUMB_BUILD #define CONFIG_SYS_TIMER_RATE (24 * 1000 * 1000) #define CONFIG_SYS_TIMER_BASE 0xff810020 /* TIMER7 */ diff --git a/include/configs/smartweb.h b/include/configs/smartweb.h index f53f5d8ae2f..46ace67872d 100644 --- a/include/configs/smartweb.h +++ b/include/configs/smartweb.h @@ -270,7 +270,6 @@ #define CONFIG_SYS_AT91_PLLB 0x10483f0e #if defined(CONFIG_SPL_BUILD) -#define CONFIG_SYS_THUMB_BUILD #define CONFIG_SYS_ICACHE_OFF #define CONFIG_SYS_DCACHE_OFF #endif diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h index 582b04af3de..2f1d817d4a2 100644 --- a/include/configs/socfpga_common.h +++ b/include/configs/socfpga_common.h @@ -9,8 +9,6 @@ /* Virtual target or real hardware */ #undef CONFIG_SOCFPGA_VIRTUAL_TARGET -#define CONFIG_SYS_THUMB_BUILD - /* * High level configuration */ diff --git a/include/configs/stm32f429-discovery.h b/include/configs/stm32f429-discovery.h index 69135ff0f61..42d46b022cb 100644 --- a/include/configs/stm32f429-discovery.h +++ b/include/configs/stm32f429-discovery.h @@ -8,7 +8,6 @@ #ifndef __CONFIG_H #define __CONFIG_H -#define CONFIG_SYS_THUMB_BUILD #define CONFIG_STM32F4DISCOVERY #define CONFIG_MISC_INIT_R diff --git a/include/configs/stm32f746-disco.h b/include/configs/stm32f746-disco.h index ae3211ab273..734dc008c3f 100644 --- a/include/configs/stm32f746-disco.h +++ b/include/configs/stm32f746-disco.h @@ -8,8 +8,6 @@ #ifndef __CONFIG_H #define __CONFIG_H -#define CONFIG_SYS_THUMB_BUILD - #define CONFIG_SYS_FLASH_BASE 0x08000000 #define CONFIG_SYS_INIT_SP_ADDR 0x20050000 #define CONFIG_SYS_TEXT_BASE 0x08000000 diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h index d48bdac07af..e5a514fd2b9 100644 --- a/include/configs/sunxi-common.h +++ b/include/configs/sunxi-common.h @@ -32,13 +32,6 @@ # define CONFIG_MACH_TYPE_COMPAT_REV 1 #endif -/* - * High Level Configuration Options - */ -#if defined(CONFIG_SPL_BUILD) && !defined(CONFIG_ARM64) -#define CONFIG_SYS_THUMB_BUILD /* Thumbs mode to save space in SPL */ -#endif - /* Serial & console */ #define CONFIG_SYS_NS16550_SERIAL /* ns16550 reg in the low bits of cpu reg */ diff --git a/include/configs/taurus.h b/include/configs/taurus.h index ba7346c6285..b452ea93ae0 100644 --- a/include/configs/taurus.h +++ b/include/configs/taurus.h @@ -23,7 +23,6 @@ #include #if defined(CONFIG_SPL_BUILD) -#define CONFIG_SYS_THUMB_BUILD #define CONFIG_SYS_ICACHE_OFF #define CONFIG_SYS_DCACHE_OFF #endif diff --git a/include/configs/tbs2910.h b/include/configs/tbs2910.h index 09a7942650f..f69df336cbc 100644 --- a/include/configs/tbs2910.h +++ b/include/configs/tbs2910.h @@ -12,7 +12,6 @@ #include "mx6_common.h" /* General configuration */ -#define CONFIG_SYS_THUMB_BUILD #define CONFIG_MACH_TYPE 3980 diff --git a/include/configs/ti_armv7_common.h b/include/configs/ti_armv7_common.h index fbe8859eca5..ca7d6a3760b 100644 --- a/include/configs/ti_armv7_common.h +++ b/include/configs/ti_armv7_common.h @@ -278,8 +278,6 @@ #define CONFIG_CMD_SPL #endif -#define CONFIG_SYS_THUMB_BUILD - /* General parts of the framework, required. */ #define CONFIG_SPL_BOARD_INIT diff --git a/include/configs/ti_omap4_common.h b/include/configs/ti_omap4_common.h index 8e0f9eb964d..d07cb9ffb4b 100644 --- a/include/configs/ti_omap4_common.h +++ b/include/configs/ti_omap4_common.h @@ -18,8 +18,6 @@ #define CONFIG_OMAP4430 1 /* which is in a 4430 */ #define CONFIG_MISC_INIT_R -#define CONFIG_SYS_THUMB_BUILD - #ifndef CONFIG_SYS_L2CACHE_OFF #define CONFIG_SYS_L2_PL310 1 #define CONFIG_SYS_PL310_BASE 0x48242000 diff --git a/include/configs/tricorder.h b/include/configs/tricorder.h index 2b80352f540..2448dd7ebf2 100644 --- a/include/configs/tricorder.h +++ b/include/configs/tricorder.h @@ -17,7 +17,6 @@ #define __CONFIG_H /* High Level Configuration Options */ -#define CONFIG_SYS_THUMB_BUILD #define CONFIG_OMAP /* in a TI OMAP core */ #define CONFIG_MACH_TYPE MACH_TYPE_TRICORDER diff --git a/include/configs/x600.h b/include/configs/x600.h index 67c70f6e6e9..082ce1fbc28 100644 --- a/include/configs/x600.h +++ b/include/configs/x600.h @@ -16,7 +16,6 @@ */ #define CONFIG_SPEAR600 /* SPEAr600 SoC */ #define CONFIG_X600 /* on X600 board */ -#define CONFIG_SYS_THUMB_BUILD #include -- cgit v1.2.3