Skip to content

Commit e942a7c

Browse files
anchaoxiaoxiang781216
authored andcommitted
build/Kconfig: fix warnings detected by kconfiglib
Signed-off-by: chao an <[email protected]>
1 parent 3a0fdb0 commit e942a7c

File tree

28 files changed

+46
-67
lines changed

28 files changed

+46
-67
lines changed

arch/arm/Kconfig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ config ARCH_CHIP_A1X
6060
select ARCH_HAVE_LOWVECTORS
6161
select ARCH_HAVE_FETCHADD
6262
select ARCH_HAVE_SDRAM
63-
select BOOT_RUNFROMSDRAM
63+
depends on BOOT_RUNFROMSDRAM
6464
select ARCH_HAVE_ADDRENV
6565
select ARCH_NEED_ADDRENV_MAPPING
6666
---help---
@@ -74,7 +74,7 @@ config ARCH_CHIP_AM335X
7474
select ARCH_HAVE_LOWVECTORS
7575
select ARCH_HAVE_FETCHADD
7676
select ARCH_HAVE_SDRAM
77-
select BOOT_RUNFROMSDRAM
77+
depends on BOOT_RUNFROMSDRAM
7878
select ARCH_HAVE_ADDRENV
7979
select ARCH_NEED_ADDRENV_MAPPING
8080
---help---
@@ -144,7 +144,7 @@ config ARCH_CHIP_IMX6
144144
select ARCH_HAVE_LOWVECTORS
145145
select ARCH_HAVE_FETCHADD
146146
select ARCH_HAVE_SDRAM
147-
select BOOT_RUNFROMSDRAM
147+
depends on BOOT_RUNFROMSDRAM
148148
select ARCH_HAVE_ADDRENV
149149
select ARCH_NEED_ADDRENV_MAPPING
150150
---help---
@@ -1358,7 +1358,7 @@ if ARCH_CHIP_S32K1XX
13581358
source "arch/arm/src/s32k1xx/Kconfig"
13591359
endif
13601360
if ARCH_CHIP_S32K3XX
1361-
source arch/arm/src/s32k3xx/Kconfig
1361+
source "arch/arm/src/s32k3xx/Kconfig"
13621362
endif
13631363
if ARCH_CHIP_MAX326XX
13641364
source "arch/arm/src/max326xx/Kconfig"
@@ -1415,7 +1415,7 @@ if ARCH_CHIP_STM32U5
14151415
source "arch/arm/src/stm32u5/Kconfig"
14161416
endif
14171417
if ARCH_CHIP_STM32WB
1418-
source arch/arm/src/stm32wb/Kconfig
1418+
source "arch/arm/src/stm32wb/Kconfig"
14191419
endif
14201420
if ARCH_CHIP_STM32WL5
14211421
source "arch/arm/src/stm32wl5/Kconfig"

arch/arm/src/efm32/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,14 +308,14 @@ choice
308308
config LEUART0_SERIAL_CONSOLE
309309
bool "Use LEUART0 as the serial console"
310310
depends on EFM32_LEUART0
311-
select OTHER_SERIAL_CONSOLE
311+
depends on OTHER_SERIAL_CONSOLE
312312
---help---
313313
Use the LEUART0 device as the serial console
314314

315315
config LEUART1_SERIAL_CONSOLE
316316
bool "Use LEUART1 as the serial console"
317317
depends on EFM32_LEUART1
318-
select OTHER_SERIAL_CONSOLE
318+
depends on OTHER_SERIAL_CONSOLE
319319
---help---
320320
Use the LEUART0 device as the serial console
321321

arch/arm/src/imx6/Kconfig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,19 +181,19 @@ choice
181181

182182
config IMX6_BOOT_OCRAM
183183
bool "Running from internal OCRAM"
184-
select BOOT_RUNFROMISRAM
184+
depends on BOOT_RUNFROMISRAM
185185

186186
config IMX6_BOOT_SDRAM
187187
bool "Running from external SDRAM"
188-
select BOOT_RUNFROMSDRAM
188+
depends on BOOT_RUNFROMSDRAM
189189

190190
config IMX6_BOOT_NOR
191191
bool "Running from external NOR FLASH"
192-
select BOOT_RUNFROMFLASH
192+
depends on BOOT_RUNFROMFLASH
193193

194194
config IMX6_BOOT_SRAM
195195
bool "Running from external SRAM"
196-
select BOOT_RUNFROMEXTSRAM
196+
depends on BOOT_RUNFROMEXTSRAM
197197

198198
endchoice # i.MX6 Boot Configuration
199199

arch/arm/src/imxrt/Kconfig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1776,7 +1776,7 @@ endchoice # i.MX RT Ethernet Interface
17761776

17771777
choice
17781778
prompt "i.MX RT Ethernet TX Clock Source"
1779-
default IMXRT_PROVIDES_TXC
1779+
default IMXRT_MAC_PROVIDES_TXC
17801780
depends on IMXRT_ENET
17811781

17821782
config IMXRT_MAC_PROVIDES_TXC
@@ -1892,21 +1892,21 @@ choice
18921892

18931893
config IMXRT_BOOT_OCRAM
18941894
bool "Running from internal OCRAM"
1895-
select BOOT_RUNFROMISRAM
1895+
depends on BOOT_RUNFROMISRAM
18961896

18971897
config IMXRT_BOOT_SDRAM
18981898
bool "Running from external SDRAM"
1899-
select BOOT_RUNFROMSDRAM
1899+
depends on BOOT_RUNFROMSDRAM
19001900
depends on IMXRT_SEMC_SDRAM
19011901

19021902
config IMXRT_BOOT_NOR
19031903
bool "Running from external NOR FLASH"
1904-
select BOOT_RUNFROMFLASH
1904+
depends on BOOT_RUNFROMFLASH
19051905
depends on IMXRT_SEMC_NOR
19061906

19071907
config IMXRT_BOOT_SRAM
19081908
bool "Running from external SRAM"
1909-
select BOOT_RUNFROMEXTSRAM
1909+
depends on BOOT_RUNFROMEXTSRAM
19101910
depends on IMXRT_SEMC_SRAM
19111911

19121912
endchoice # i.MX RT Boot Configuration

arch/arm/src/nrf52/Kconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -664,8 +664,7 @@ menuconfig NRF52_SOFTDEVICE_CONTROLLER
664664
select ARMV7M_USEBASEPRI
665665
select ARCH_RAMVECTORS
666666
select ARCH_IRQPRIO
667-
select NRF52_USE_LFCLK
668-
select NRF52_LFCLK_XTAL
667+
depends on NRF52_LFCLK_XTAL
669668
---help---
670669
This enables use of Nordic SoftDevice controller
671670
(SDC). It is a library version of a subset of

arch/arm/src/sama5/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4415,7 +4415,7 @@ if SAMA5_ADC_PWMTRIG
44154415

44164416
choice
44174417
prompt "PWM Event Line Selection"
4418-
default SAMA5_ADC_PWMTRIG_LINE0
4418+
default SAMA5_ADC_PWM_TRIG_LINE0
44194419

44204420
config SAMA5_ADC_PWM_TRIG_LINE0
44214421
bool "PWM event Line 0"

arch/arm/src/stm32/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2760,7 +2760,7 @@ config STM32_CORDIC
27602760
bool "CORDIC Accelerator"
27612761
default n
27622762
depends on STM32_HAVE_CORDIC
2763-
select MATH_CORDIC_USE_Q31
2763+
depends on MATH_CORDIC_USE_Q31
27642764

27652765
config STM32_BKP
27662766
bool "BKP"

arch/avr/src/avr/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ menu "Atmel AVR Toolchain options"
6363
config AVR_HAS_MEMX_PTR
6464
bool "Enable in-flash static const stings"
6565
depends on AVR_ATMEL_AVR_TOOLCHAIN
66-
select ARCH_DEBUG_H
66+
depends on ARCH_DEBUG_H
6767
default y
6868
---help---
6969
Enabling this option (recommended) will place all constant

arch/sparc/Kconfig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ config ARCH_CHIP
6262
default "bm3823" if ARCH_CHIP_BM3823
6363
default "s698pm" if ARCH_CHIP_S698PM
6464

65-
source arch/sparc/src/sparc_v8/Kconfig
66-
source arch/sparc/src/bm3803/Kconfig
67-
source arch/sparc/src/bm3823/Kconfig
68-
source arch/sparc/src/s698pm/Kconfig
65+
source "arch/sparc/src/sparc_v8/Kconfig"
66+
source "arch/sparc/src/bm3803/Kconfig"
67+
source "arch/sparc/src/bm3823/Kconfig"
68+
source "arch/sparc/src/s698pm/Kconfig"
6969

7070
endif

arch/z80/src/ez80/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,15 @@ endchoice # ZDS-II Toolchain version
8888
config EZ80_BOOTLOADER
8989
bool
9090
default n
91-
select BOOT_RUNFROMFLASH
91+
depends on BOOT_RUNFROMFLASH
9292
---help---
9393
Binary image is a bootloader that may require special properties
9494
such as re-direction of interrupts (eZ80F92)
9595

9696
config EZ80_PROGRAM
9797
bool
9898
default n
99-
select BOOT_RUNFROMEXTSRAM
99+
depends on BOOT_RUNFROMEXTSRAM
100100
---help---
101101
Binary image is a RAM-resident program loaded by a bootloader and
102102
may require special properties such as re-direction of interrupts

0 commit comments

Comments
 (0)