kconfig: Remove symbol types from Kconfig.defconfig files

Same deal as in commit 7fdb525754 ("kconfig: Use 'default' instead of
'def_bool' in Kconfig.defconfig files"), but I hacked Kconfiglib to also
find cases where the type is given separately as e.g.

    config FOO
            int
            default 3

Motivation (from a note in
https://docs.zephyrproject.org/latest/guides/kconfig/index.html):

    For a symbol defined in multiple locations (e.g., in a
    Kconfig.defconfig file in Zephyr), it is best to only give the
    symbol type for the "base" definition of the symbol, and to use
    'default' (instead of 'def_<type>' value) for the remaining
    definitions. That way, if the base definition of the symbol is
    removed, the symbol ends up without a type, which generates a
    warning that points to the other definitions. That makes the extra
    definitions easier to discover and remove.

It's also nice if 'def_bool' and the like turn into a semi-reliable flag
that the symbol is only defined in Kconfig.defconfig files. That might
be a sign that things could be cleaned up.

Will do a separate pass later to remove some symbols only defined in
Kconfig.defconfig files.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
This commit is contained in:
Ulf Magnusson 2019-10-24 08:13:13 +02:00 committed by Maureen Helm
commit 2b61031c8f
134 changed files with 27 additions and 197 deletions

View file

@ -9,7 +9,6 @@ if SOC_STM32F030X4
# STM32F0 Cube package advises to use 'stm32f030x6' code
# for both STM32F030x4 and STM32F030x6 SoC variants.
config SOC
string
default "stm32f030x6"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32F030X8
config SOC
string
default "stm32f030x8"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32F051X8
config SOC
string
default "stm32f051x8"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32F070XB
config SOC
string
default "stm32f070xb"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32F072XB
config SOC
string
default "stm32f072xb"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32F091XC
config SOC
string
default "stm32f091xc"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32F103XB || SOC_STM32F103X8
config SOC
string
default "stm32f103xb"
config NUM_IRQS
@ -27,7 +26,6 @@ endif # SOC_STM32F103XB || SOC_STM32F103X8
if SOC_STM32F103XE
config SOC
string
default "stm32f103xe"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32F107XC
config SOC
string
default "stm32f107xc"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32F207XX
config SOC
string
default "STM32F207xx"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32F302X8
config SOC
string
default "stm32f302x8"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32F303XC
config SOC
string
default "stm32f303xc"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32F334X8
config SOC
string
default "stm32f334x8"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32F373XC
config SOC
string
default "stm32f373xc"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32F401XC
config SOC
string
default "stm32f401xc"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32F401XE
config SOC
string
default "stm32f401xe"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32F405XG
config SOC
string
default "stm32f405xx"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32F407XG
config SOC
string
default "stm32f407xx"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32F411XE
config SOC
string
default "stm32f411xe"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32F412CG
config SOC
string
default "stm32f412cx"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32F412ZG
config SOC
string
default "stm32f412zx"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32F413XX
config SOC
string
default "stm32f413xx"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32F415XX
config SOC
string
default "stm32f415xx"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32F417XX
config SOC
string
default "stm32f417xx"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32F429XX
config SOC
string
default "stm32f429xx"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32F437XX
config SOC
string
default "stm32f437xx"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32F446XX
config SOC
string
default "stm32f446xx"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32F469XX
config SOC
string
default "stm32f469xx"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32F723XX
config SOC
string
default "stm32f723xx"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32F746XX
config SOC
string
default "stm32f746xx"
if GPIO_STM32

View file

@ -8,7 +8,6 @@
if SOC_STM32F756XX
config SOC
string
default "stm32f756xx"
if GPIO_STM32

View file

@ -8,7 +8,6 @@
if SOC_STM32F769XX
config SOC
string
default "stm32f769xx"
if GPIO_STM32

View file

@ -9,7 +9,6 @@
if SOC_STM32G071XX
config SOC
string
default "stm32g071xx"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32G431XX
config SOC
string
default "stm32g431xx"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32H747XX
config SOC
string
default "stm32h747xx"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32L053XX
config SOC
string
default "stm32l053xx"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32L072XX
config SOC
string
default "stm32l072xx"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32L073XX
config SOC
string
default "stm32l073xx"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32L151X8A
config SOC
string
default "stm32l151x8a"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32L151XB
config SOC
string
default "stm32l151xb"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32L151XBA
config SOC
string
default "stm32l151xba"
config NUM_IRQS

View file

@ -9,7 +9,6 @@
if SOC_STM32L432XX
config SOC
string
default "stm32l432xx"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32L433XX
config SOC
string
default "stm32l433xx"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32L452XX
config SOC
string
default "stm32l452xx"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32L471XX
config SOC
string
default "stm32l471xx"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32L475XX
config SOC
string
default "stm32l475xx"
config NUM_IRQS

View file

@ -9,7 +9,6 @@
if SOC_STM32L476XX
config SOC
string
default "stm32l476xx"
config NUM_IRQS

View file

@ -10,7 +10,6 @@
if SOC_STM32L496XX
config SOC
string
default "stm32l496xx"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32L4R5XX
config SOC
string
default "stm32l4r5xx"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32L4R9XX
config SOC
string
default "stm32l4r9xx"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32MP15_M4
config SOC
string
default "stm32mp157cxx"
config NUM_IRQS

View file

@ -8,7 +8,6 @@
if SOC_STM32WB55XX
config SOC
string
default "stm32wb55xx"
config NUM_IRQS