]> git.dujemihanovic.xyz Git - u-boot.git/commit
treewide: drop redundant "type string" for SYS_SOC and friends
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Wed, 4 Sep 2024 08:18:40 +0000 (10:18 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 10 Sep 2024 19:14:59 +0000 (13:14 -0600)
commit52ec7b7c89ff1256daed551012e378df7fce4564
tree89fbe03a17996ebc8187d283ec3ea0518ad714f7
parent2def0df217866d343020ea0f93e6bd122d53c72d
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>
25 files changed:
arch/arm/mach-octeontx/Kconfig
arch/arm/mach-octeontx2/Kconfig
arch/mips/mach-octeon/Kconfig
arch/xtensa/Kconfig
board/Marvell/octeon_ebb7304/Kconfig
board/Marvell/octeon_nic23/Kconfig
board/Marvell/octeontx/Kconfig
board/Marvell/octeontx2/Kconfig
board/cadence/xtfpga/Kconfig
board/cavium/thunderx/Kconfig
board/freescale/imxrt1020-evk/Kconfig
board/freescale/imxrt1050-evk/Kconfig
board/freescale/imxrt1170-evk/Kconfig
board/kontron/sl-mx6ul/Kconfig
board/kontron/sl-mx8mm/Kconfig
board/sielaff/imx6dl-sielaff/Kconfig
board/st/stih410-b2260/Kconfig
board/st/stm32f429-discovery/Kconfig
board/st/stm32f429-evaluation/Kconfig
board/st/stm32f469-discovery/Kconfig
board/st/stm32f746-disco/Kconfig
board/st/stm32h743-disco/Kconfig
board/st/stm32h743-eval/Kconfig
board/st/stm32h750-art-pi/Kconfig
board/sysam/amcore/Kconfig