Commit 7f7563cec11388451cd81c99abfa86836b1bdd75

Authored by Masahiro Yamada
Committed by Tom Rini
1 parent 89bedb0c10

sparc: move CONFIG_SYS_TEXT_BASE to Kconfig

Defining CONFIG_SYS_TEXT_BASE in config.mk is very old style.

Create CONFIG_SYS_TEXT_BASE option in Kconfig, but let it
depend on CONFIG_SPARC because we do not want to disturb
the other architectures that still define CONFIG_SYS_TEXT_BASE
in their header files.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Daniel Hellstrom <daniel@gaisler.com>

Showing 11 changed files with 11 additions and 84 deletions Side-by-side Diff

... ... @@ -107,6 +107,12 @@
107 107 configuration to Kconfig. Since this option will be removed sometime,
108 108 new boards should not use this option.
109 109  
  110 +config SYS_TEXT_BASE
  111 + depends on SPARC
  112 + hex "Text Base"
  113 + help
  114 + TODO: Move CONFIG_SYS_TEXT_BASE for all the architecture
  115 +
110 116 endmenu # Boot images
111 117  
112 118 source "arch/Kconfig"
board/gaisler/gr_cpci_ax2000/config.mk
1   -#
2   -# (C) Copyright 2008
3   -# Daniel Hellstrom, Gaisler Research, daniel@gaisler.com.
4   -#
5   -# SPDX-License-Identifier: GPL-2.0+
6   -#
7   -
8   -#
9   -# GR-CPCI-AX2000 board
10   -#
11   -
12   -# U-BOOT IN FLASH
13   -CONFIG_SYS_TEXT_BASE = 0x00000000
14   -
15   -# U-BOOT IN RAM or SDRAM with -nosram flag set when starting GRMON
16   -#CONFIG_SYS_TEXT_BASE = 0x40000000
17   -
18   -# U-BOOT IN SDRAM
19   -#CONFIG_SYS_TEXT_BASE = 0x60000000
board/gaisler/gr_ep2s60/config.mk
1   -#
2   -# (C) Copyright 2008
3   -# Daniel Hellstrom, Gaisler Research, daniel@gaisler.com.
4   -#
5   -# SPDX-License-Identifier: GPL-2.0+
6   -#
7   -
8   -#
9   -# Altera NIOS delopment board Stratix II edition, FPGA device EP2S60,
10   -# with GRLIB Template design (GPL Open Source SPARC/LEON3)
11   -#
12   -
13   -# U-BOOT IN FLASH
14   -CONFIG_SYS_TEXT_BASE = 0x00000000
15   -
16   -# U-BOOT IN SDRAM
17   -#CONFIG_SYS_TEXT_BASE = 0x40000000
board/gaisler/gr_xc3s_1500/config.mk
1   -#
2   -# (C) Copyright 2007
3   -# Daniel Hellstrom, Gaisler Research, daniel@gaisler.com.
4   -#
5   -# SPDX-License-Identifier: GPL-2.0+
6   -#
7   -
8   -#
9   -# GR-XC3S-1500 board
10   -#
11   -
12   -# U-BOOT IN FLASH
13   -CONFIG_SYS_TEXT_BASE = 0x00000000
14   -
15   -# U-BOOT IN RAM
16   -#CONFIG_SYS_TEXT_BASE = 0x40000000
board/gaisler/grsim/config.mk
1   -#
2   -# (C) Copyright 2007
3   -# Daniel Hellstrom, Gaisler Research, daniel@gaisler.com
4   -#
5   -# SPDX-License-Identifier: GPL-2.0+
6   -#
7   -
8   -#
9   -# GRSIM simulating a LEON3 GR-XC3S-1500 board
10   -#
11   -
12   -# U-BOOT IN FLASH
13   -CONFIG_SYS_TEXT_BASE = 0x00000000
14   -
15   -# U-BOOT IN RAM
16   -#CONFIG_SYS_TEXT_BASE = 0x40000000
board/gaisler/grsim_leon2/config.mk
1   -#
2   -# (C) Copyright 2007
3   -# Daniel Hellstrom, Gaisler Research, daniel@gaisler.com
4   -#
5   -# SPDX-License-Identifier: GPL-2.0+
6   -#
7   -
8   -#
9   -# GRSIM simulating a LEON2 board
10   -#
11   -
12   -# RUN U-BOOT FROM PROM
13   -CONFIG_SYS_TEXT_BASE = 0x00000000
14   -
15   -# RUN U-BOOT FROM RAM
16   -#CONFIG_SYS_TEXT_BASE = 0x40000000
configs/gr_cpci_ax2000_defconfig
  1 +CONFIG_SYS_TEXT_BASE=0x00000000
1 2 CONFIG_SPARC=y
2 3 CONFIG_TARGET_GR_CPCI_AX2000=y
configs/gr_ep2s60_defconfig
  1 +CONFIG_SYS_TEXT_BASE=0x00000000
1 2 CONFIG_SPARC=y
2 3 CONFIG_TARGET_GR_EP2S60=y
configs/gr_xc3s_1500_defconfig
  1 +CONFIG_SYS_TEXT_BASE=0x00000000
1 2 CONFIG_SPARC=y
2 3 CONFIG_TARGET_GR_XC3S_1500=y
configs/grsim_defconfig
  1 +CONFIG_SYS_TEXT_BASE=0x00000000
1 2 CONFIG_SPARC=y
2 3 CONFIG_TARGET_GRSIM=y
configs/grsim_leon2_defconfig
  1 +CONFIG_SYS_TEXT_BASE=0x00000000
1 2 CONFIG_SPARC=y
2 3 CONFIG_TARGET_GRSIM_LEON2=y