kconfig: move CONFIG_USE_PRIVATE_LIBGCC to Kconfig

The private libgcc is supported only on ARM, MIPS, PowerPC, SH, x86.
Those architectures should "select" HAVE_PRIVATE_LIBGCC and
CONFIG_USE_PRIVATE_LIBGCC should depend on it.

Currently, this option is enabled on Tegra boards and x86 architecture.
Move the definition from header files to Kconfig.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Tested-by: Simon Glass <sjg@chromium.org>
Acked-by: Simon Glass <sjg@chromium.org>
Cc: Stephen Warren <swarren@nvidia.com>
Cc: Tom Warren <twarren@nvidia.com>
master
Masahiro Yamada 10 years ago committed by Tom Rini
parent 76eb5d815e
commit 45ccec8f29
  1. 5
      arch/Kconfig
  2. 3
      arch/arm/cpu/armv7/tegra-common/Kconfig
  3. 3
      arch/x86/Kconfig
  4. 2
      arch/x86/include/asm/config.h
  5. 4
      include/configs/tegra-common.h
  6. 11
      lib/Kconfig

@ -7,6 +7,7 @@ config ARC
config ARM config ARM
bool "ARM architecture" bool "ARM architecture"
select HAVE_PRIVATE_LIBGCC
select SUPPORT_OF_CONTROL select SUPPORT_OF_CONTROL
config AVR32 config AVR32
@ -24,6 +25,7 @@ config MICROBLAZE
config MIPS config MIPS
bool "MIPS architecture" bool "MIPS architecture"
select HAVE_PRIVATE_LIBGCC
config NDS32 config NDS32
bool "NDS32 architecture" bool "NDS32 architecture"
@ -36,6 +38,7 @@ config OPENRISC
config PPC config PPC
bool "PowerPC architecture" bool "PowerPC architecture"
select HAVE_PRIVATE_LIBGCC
config SANDBOX config SANDBOX
bool "Sandbox" bool "Sandbox"
@ -43,12 +46,14 @@ config SANDBOX
config SH config SH
bool "SuperH architecture" bool "SuperH architecture"
select HAVE_PRIVATE_LIBGCC
config SPARC config SPARC
bool "SPARC architecture" bool "SPARC architecture"
config X86 config X86
bool "x86 architecture" bool "x86 architecture"
select HAVE_PRIVATE_LIBGCC
select SUPPORT_OF_CONTROL select SUPPORT_OF_CONTROL
endchoice endchoice

@ -17,6 +17,9 @@ config TEGRA124
endchoice endchoice
config USE_PRIVATE_LIBGCC
default y if SPL_BUILD
config SYS_CPU config SYS_CPU
default "arm720t" if SPL_BUILD default "arm720t" if SPL_BUILD
default "armv7" if !SPL_BUILD default "armv7" if !SPL_BUILD

@ -4,6 +4,9 @@ menu "x86 architecture"
config SYS_ARCH config SYS_ARCH
default "x86" default "x86"
config USE_PRIVATE_LIBGCC
default y
choice choice
prompt "Target select" prompt "Target select"

@ -11,6 +11,4 @@
#define CONFIG_LMB #define CONFIG_LMB
#define CONFIG_SYS_BOOT_RAMDISK_HIGH #define CONFIG_SYS_BOOT_RAMDISK_HIGH
#define CONFIG_USE_PRIVATE_LIBGCC
#endif #endif

@ -154,10 +154,6 @@
#define CONFIG_SPL_SERIAL_SUPPORT #define CONFIG_SPL_SERIAL_SUPPORT
#define CONFIG_SPL_GPIO_SUPPORT #define CONFIG_SPL_GPIO_SUPPORT
#ifdef CONFIG_SPL_BUILD
# define CONFIG_USE_PRIVATE_LIBGCC
#endif
#define CONFIG_SYS_GENERIC_BOARD #define CONFIG_SYS_GENERIC_BOARD
/* Misc utility code */ /* Misc utility code */

@ -8,6 +8,17 @@ config CC_OPTIMIZE_LIBS_FOR_SPEED
If unsure, say N. If unsure, say N.
config HAVE_PRIVATE_LIBGCC
bool
config USE_PRIVATE_LIBGCC
bool "Use private libgcc"
depends on HAVE_PRIVATE_LIBGCC
help
This option allows you to use the built-in libgcc implementation
of U-boot instead of the one privided by the compiler.
If unsure, say N.
config SYS_HZ config SYS_HZ
int int
default 1000 default 1000

Loading…
Cancel
Save