Skip to content

Commit

Permalink
Kconfig: Remove unused symbols defined only in Kconfig.defconfig files
Browse files Browse the repository at this point in the history
Turning 'def_bool' in Kconfig.defconfig files into 'default' revealed
three unused symbols (confirmed with 'git grep'). Remove them.

Search for "Kconfig.defconfig" in
https://docs.zephyrproject.org/latest/application/kconfig-tips.html for
an explanation of how def_bool->default can reveal undefined symbols.

Removed unused symbols:

 - SPI_DW_CLOCK_GATE

 - PINMUX_MPS2

 - BOARD_XTENSA

Also remove an assignment to the promptless symbol ALTERA_AVALON_SYSID,
in tests/boards/altera_max10/sysid/prj.conf. Assignments to promptless
symbols have no effect.

Signed-off-by: Ulf Magnusson <[email protected]>
  • Loading branch information
ulfalizer authored and nashif committed Nov 13, 2018
1 parent 0324423 commit fc210ab
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 14 deletions.
3 changes: 0 additions & 3 deletions boards/arc/em_starterkit/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ config SPI_DW

if SPI_DW

config SPI_DW_CLOCK_GATE
def_bool n

config SPI_DW_FIFO_DEPTH
default 32

Expand Down
7 changes: 0 additions & 7 deletions boards/arm/mps2_an385/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ config GPIO_CMSDK_AHB_PORT3

endif # GPIO

if PINMUX

config PINMUX_MPS2
def_bool y

endif # PINMUX

if SERIAL

config UART_CMSDK_APB
Expand Down
3 changes: 0 additions & 3 deletions boards/xtensa/intel_s1000_crb/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ if BOARD_INTEL_S1000_CRB
config BOARD
default "intel_s1000_crb"

config BOARD_XTENSA
def_bool y

config CAVS_ICTL_0_OFFSET
default 0x06
config CAVS_ICTL_1_OFFSET
Expand Down
1 change: 0 additions & 1 deletion tests/boards/altera_max10/sysid/prj.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
CONFIG_ALTERA_AVALON_SYSID=y
CONFIG_ZTEST=y

0 comments on commit fc210ab

Please sign in to comment.