treewide: drop redundant "type string" for SYS_SOC and friends

The Kconfig symbols SYS_ARCH, SYS_CPU, SYS_SOC, SYS_VENDOR and
SYS_BOARD are defined in arch/Kconfig as having type string, and most
board files simply amend those definition with suitable

  default "foo"

or

  default "foo" if BAR

stanzas. But some also include a redundant repetition of the type.

Homogenize the code base by removing those lines.

Generated by

  find arch/*/ board -name Kconfig | xargs perl -i -g -pe 's/(config SYS_(ARCH|CPU|SOC|VENDOR|BOARD)\n)\s*string\n/\1/gs'

with the trailing slash in arch/*/ ensuring that arch/Kconfig itself
is not found.

This does not change boards which add a prompt string, e.g.

  string "Board name"

because I think those change the semantics of the symbol into being
user-settable.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Rasmus Villemoes
2024-09-04 10:18:40 +02:00
committed by Tom Rini
parent 2def0df217
commit 52ec7b7c89
25 changed files with 0 additions and 59 deletions

View File

@@ -13,7 +13,6 @@ config TARGET_OCTEONTX_83XX
endchoice endchoice
config SYS_SOC config SYS_SOC
string
default "octeontx" default "octeontx"
endif endif

View File

@@ -13,7 +13,6 @@ config TARGET_OCTEONTX2_96XX
endchoice endchoice
config SYS_SOC config SYS_SOC
string
default "octeontx2" default "octeontx2"
endif endif

View File

@@ -2,7 +2,6 @@ menu "Octeon platforms"
depends on ARCH_OCTEON depends on ARCH_OCTEON
config SYS_SOC config SYS_SOC
string
default "octeon" default "octeon"
config OCTEON_CN7XXX config OCTEON_CN7XXX

View File

@@ -2,7 +2,6 @@ menu "Xtensa architecture"
depends on XTENSA depends on XTENSA
config SYS_ARCH config SYS_ARCH
string
default "xtensa" default "xtensa"
config SYS_CPU config SYS_CPU

View File

@@ -1,11 +1,9 @@
if TARGET_OCTEON_EBB7304 if TARGET_OCTEON_EBB7304
config SYS_BOARD config SYS_BOARD
string
default "octeon_ebb7304" default "octeon_ebb7304"
config SYS_VENDOR config SYS_VENDOR
string
default "Marvell" default "Marvell"
config SYS_CONFIG_NAME config SYS_CONFIG_NAME

View File

@@ -1,11 +1,9 @@
if TARGET_OCTEON_NIC23 if TARGET_OCTEON_NIC23
config SYS_BOARD config SYS_BOARD
string
default "octeon_nic23" default "octeon_nic23"
config SYS_VENDOR config SYS_VENDOR
string
default "Marvell" default "Marvell"
config SYS_CONFIG_NAME config SYS_CONFIG_NAME

View File

@@ -1,11 +1,9 @@
if TARGET_OCTEONTX_81XX || TARGET_OCTEONTX_83XX if TARGET_OCTEONTX_81XX || TARGET_OCTEONTX_83XX
config SYS_VENDOR config SYS_VENDOR
string
default "Marvell" default "Marvell"
config SYS_BOARD config SYS_BOARD
string
default "octeontx" default "octeontx"
config SYS_CONFIG_NAME config SYS_CONFIG_NAME

View File

@@ -1,11 +1,9 @@
if TARGET_OCTEONTX2_95XX || TARGET_OCTEONTX2_96XX if TARGET_OCTEONTX2_95XX || TARGET_OCTEONTX2_96XX
config SYS_VENDOR config SYS_VENDOR
string
default "Marvell" default "Marvell"
config SYS_BOARD config SYS_BOARD
string
default "octeontx2" default "octeontx2"
config SYS_CONFIG_NAME config SYS_CONFIG_NAME

View File

@@ -17,11 +17,9 @@ config XTFPGA_KC705
endchoice endchoice
config SYS_BOARD config SYS_BOARD
string
default "xtfpga" default "xtfpga"
config SYS_VENDOR config SYS_VENDOR
string
default "cadence" default "cadence"
config SYS_CONFIG_NAME config SYS_CONFIG_NAME

View File

@@ -1,15 +1,12 @@
if TARGET_THUNDERX_88XX if TARGET_THUNDERX_88XX
config SYS_CPU config SYS_CPU
string
default "armv8" default "armv8"
config SYS_BOARD config SYS_BOARD
string
default "thunderx" default "thunderx"
config SYS_VENDOR config SYS_VENDOR
string
default "cavium" default "cavium"
config SYS_CONFIG_NAME config SYS_CONFIG_NAME

View File

@@ -1,15 +1,12 @@
if TARGET_IMXRT1020_EVK if TARGET_IMXRT1020_EVK
config SYS_BOARD config SYS_BOARD
string
default "imxrt1020-evk" default "imxrt1020-evk"
config SYS_VENDOR config SYS_VENDOR
string
default "freescale" default "freescale"
config SYS_SOC config SYS_SOC
string
default "imxrt1020" default "imxrt1020"
config SYS_CONFIG_NAME config SYS_CONFIG_NAME

View File

@@ -1,15 +1,12 @@
if TARGET_IMXRT1050_EVK if TARGET_IMXRT1050_EVK
config SYS_BOARD config SYS_BOARD
string
default "imxrt1050-evk" default "imxrt1050-evk"
config SYS_VENDOR config SYS_VENDOR
string
default "freescale" default "freescale"
config SYS_SOC config SYS_SOC
string
default "imxrt1050" default "imxrt1050"
config SYS_CONFIG_NAME config SYS_CONFIG_NAME

View File

@@ -1,15 +1,12 @@
if TARGET_IMXRT1170_EVK if TARGET_IMXRT1170_EVK
config SYS_BOARD config SYS_BOARD
string
default "imxrt1170-evk" default "imxrt1170-evk"
config SYS_VENDOR config SYS_VENDOR
string
default "freescale" default "freescale"
config SYS_SOC config SYS_SOC
string
default "imxrt1170" default "imxrt1170"
config SYS_CONFIG_NAME config SYS_CONFIG_NAME

View File

@@ -1,11 +1,9 @@
if TARGET_KONTRON_MX6UL if TARGET_KONTRON_MX6UL
config SYS_BOARD config SYS_BOARD
string
default "sl-mx6ul" default "sl-mx6ul"
config SYS_VENDOR config SYS_VENDOR
string
default "kontron" default "kontron"
config SYS_CONFIG_NAME config SYS_CONFIG_NAME

View File

@@ -1,11 +1,9 @@
if TARGET_KONTRON_MX8MM if TARGET_KONTRON_MX8MM
config SYS_BOARD config SYS_BOARD
string
default "sl-mx8mm" default "sl-mx8mm"
config SYS_VENDOR config SYS_VENDOR
string
default "kontron" default "kontron"
config SYS_CONFIG_NAME config SYS_CONFIG_NAME

View File

@@ -1,11 +1,9 @@
if TARGET_MX6S_SIELAFF if TARGET_MX6S_SIELAFF
config SYS_BOARD config SYS_BOARD
string
default "imx6dl-sielaff" default "imx6dl-sielaff"
config SYS_VENDOR config SYS_VENDOR
string
default "sielaff" default "sielaff"
config SYS_CONFIG_NAME config SYS_CONFIG_NAME

View File

@@ -1,15 +1,12 @@
if TARGET_STIH410_B2260 if TARGET_STIH410_B2260
config SYS_BOARD config SYS_BOARD
string
default "stih410-b2260" default "stih410-b2260"
config SYS_VENDOR config SYS_VENDOR
string
default "st" default "st"
config SYS_SOC config SYS_SOC
string
default "stih410" default "stih410"
config SYS_CONFIG_NAME config SYS_CONFIG_NAME

View File

@@ -1,15 +1,12 @@
if TARGET_STM32F429_DISCOVERY if TARGET_STM32F429_DISCOVERY
config SYS_BOARD config SYS_BOARD
string
default "stm32f429-discovery" default "stm32f429-discovery"
config SYS_VENDOR config SYS_VENDOR
string
default "st" default "st"
config SYS_SOC config SYS_SOC
string
default "stm32f4" default "stm32f4"
config SYS_CONFIG_NAME config SYS_CONFIG_NAME

View File

@@ -1,15 +1,12 @@
if TARGET_STM32F429_EVALUATION if TARGET_STM32F429_EVALUATION
config SYS_BOARD config SYS_BOARD
string
default "stm32f429-evaluation" default "stm32f429-evaluation"
config SYS_VENDOR config SYS_VENDOR
string
default "st" default "st"
config SYS_SOC config SYS_SOC
string
default "stm32f4" default "stm32f4"
config SYS_CONFIG_NAME config SYS_CONFIG_NAME

View File

@@ -1,15 +1,12 @@
if TARGET_STM32F469_DISCOVERY if TARGET_STM32F469_DISCOVERY
config SYS_BOARD config SYS_BOARD
string
default "stm32f469-discovery" default "stm32f469-discovery"
config SYS_VENDOR config SYS_VENDOR
string
default "st" default "st"
config SYS_SOC config SYS_SOC
string
default "stm32f4" default "stm32f4"
config SYS_CONFIG_NAME config SYS_CONFIG_NAME

View File

@@ -1,15 +1,12 @@
if TARGET_STM32F746_DISCO if TARGET_STM32F746_DISCO
config SYS_BOARD config SYS_BOARD
string
default "stm32f746-disco" default "stm32f746-disco"
config SYS_VENDOR config SYS_VENDOR
string
default "st" default "st"
config SYS_SOC config SYS_SOC
string
default "stm32f7" default "stm32f7"
config SYS_CONFIG_NAME config SYS_CONFIG_NAME

View File

@@ -1,15 +1,12 @@
if TARGET_STM32H743_DISCO if TARGET_STM32H743_DISCO
config SYS_BOARD config SYS_BOARD
string
default "stm32h743-disco" default "stm32h743-disco"
config SYS_VENDOR config SYS_VENDOR
string
default "st" default "st"
config SYS_SOC config SYS_SOC
string
default "stm32h7" default "stm32h7"
config SYS_CONFIG_NAME config SYS_CONFIG_NAME

View File

@@ -1,15 +1,12 @@
if TARGET_STM32H743_EVAL if TARGET_STM32H743_EVAL
config SYS_BOARD config SYS_BOARD
string
default "stm32h743-eval" default "stm32h743-eval"
config SYS_VENDOR config SYS_VENDOR
string
default "st" default "st"
config SYS_SOC config SYS_SOC
string
default "stm32h7" default "stm32h7"
config SYS_CONFIG_NAME config SYS_CONFIG_NAME

View File

@@ -1,15 +1,12 @@
if TARGET_STM32H750_ART_PI if TARGET_STM32H750_ART_PI
config SYS_BOARD config SYS_BOARD
string
default "stm32h750-art-pi" default "stm32h750-art-pi"
config SYS_VENDOR config SYS_VENDOR
string
default "st" default "st"
config SYS_SOC config SYS_SOC
string
default "stm32h7" default "stm32h7"
config SYS_CONFIG_NAME config SYS_CONFIG_NAME

View File

@@ -1,15 +1,12 @@
if TARGET_AMCORE if TARGET_AMCORE
config SYS_CPU config SYS_CPU
string
default "mcf530x" default "mcf530x"
config SYS_BOARD config SYS_BOARD
string
default "amcore" default "amcore"
config SYS_VENDOR config SYS_VENDOR
string
default "sysam" default "sysam"
config SYS_CONFIG_NAME config SYS_CONFIG_NAME