Make custom board options invisible until custom board is selected

This commit is contained in:
Gregory Nutt 2016-06-24 07:54:41 -06:00
parent 170574d331
commit 8afe721612

View File

@ -1265,6 +1265,20 @@ config ARCH_BOARD_CUSTOM
endchoice
if !ARCH_BOARD_CUSTOM
config ARCH_BOARD_CUSTOM_DIR
string
default "configs/dummy"
config ARCH_BOARD_CUSTOM_DIR_RELPATH
bool
default y
endif # !ARCH_BOARD_CUSTOM
if ARCH_BOARD_CUSTOM
menu "Custom Board Configuration"
config ARCH_BOARD_CUSTOM_DIR
@ -1286,8 +1300,6 @@ config ARCH_BOARD_CUSTOM_DIR_RELPATH
---help---
Specifies that the board directory is relative to the NuttX directory.
if ARCH_BOARD_CUSTOM
config ARCH_BOARD_CUSTOM_NAME
string "Custom board name"
---help---
@ -1318,8 +1330,8 @@ config BOARD_CUSTOM_INTERRUPT
depends on NETDEVICES
select ARCH_PHY_INTERRUPT if NETDEVICES
endif #ARCH_BOARD_CUSTOM
endmenu # Custom Board Configuration
endif #ARCH_BOARD_CUSTOM
config ARCH_BOARD
string