[PATCH] treewide: drop redundant "type string" for SYS_SOC and friends

Tom Rini trini at konsulko.com
Wed Sep 4 20:14:10 CEST 2024


On Wed, Sep 04, 2024 at 10:18:40AM +0200, Rasmus Villemoes wrote:

> 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.

Correct.

> Signed-off-by: Rasmus Villemoes <rasmus.villemoes at prevas.dk>

Reviewed-by: Tom Rini <trini at konsulko.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20240904/a2a003dc/attachment.sig>


More information about the U-Boot mailing list