Kconfig: Simplify the conditional default statement
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
d46dce5819
commit
8083b094c3
@ -148,8 +148,7 @@ endif # EXAMPLES_FOC_SENSORED
|
|||||||
config EXAMPLES_FOC_HAVE_OPENLOOP
|
config EXAMPLES_FOC_HAVE_OPENLOOP
|
||||||
bool "FOC example have open-loop controller"
|
bool "FOC example have open-loop controller"
|
||||||
select INDUSTRY_FOC_ANGLE_OPENLOOP
|
select INDUSTRY_FOC_ANGLE_OPENLOOP
|
||||||
default y if EXAMPLES_FOC_SENSORLESS
|
default EXAMPLES_FOC_SENSORLESS
|
||||||
default n
|
|
||||||
|
|
||||||
config EXAMPLES_FOC_HAVE_TORQ
|
config EXAMPLES_FOC_HAVE_TORQ
|
||||||
bool "FOC example torque controller support"
|
bool "FOC example torque controller support"
|
||||||
@ -157,8 +156,7 @@ config EXAMPLES_FOC_HAVE_TORQ
|
|||||||
|
|
||||||
config EXAMPLES_FOC_HAVE_VEL
|
config EXAMPLES_FOC_HAVE_VEL
|
||||||
bool "FOC example velocity controller support"
|
bool "FOC example velocity controller support"
|
||||||
default y if EXAMPLES_FOC_SENSORLESS
|
default EXAMPLES_FOC_SENSORLESS
|
||||||
default n
|
|
||||||
|
|
||||||
config EXAMPLES_FOC_HAVE_POS
|
config EXAMPLES_FOC_HAVE_POS
|
||||||
bool "FOC example position controller support"
|
bool "FOC example position controller support"
|
||||||
@ -414,8 +412,7 @@ endmenu # FOC controller parameters
|
|||||||
|
|
||||||
config EXAMPLES_FOC_HAVE_RUN
|
config EXAMPLES_FOC_HAVE_RUN
|
||||||
bool
|
bool
|
||||||
default y if !EXAMPLES_FOC_RUN_DISABLE
|
default !EXAMPLES_FOC_RUN_DISABLE
|
||||||
default n
|
|
||||||
|
|
||||||
config EXAMPLES_FOC_RUN_DISABLE
|
config EXAMPLES_FOC_RUN_DISABLE
|
||||||
bool "FOC Disable FOC motor controller"
|
bool "FOC Disable FOC motor controller"
|
||||||
|
@ -29,8 +29,7 @@ config EXAMPLES_MLD_STACKSIZE
|
|||||||
|
|
||||||
config EXAMPLES_MLD_INIT
|
config EXAMPLES_MLD_INIT
|
||||||
bool "Initialize network"
|
bool "Initialize network"
|
||||||
default n if NSH_NETINIT
|
default !NSH_NETINIT
|
||||||
default y if !NSH_NETINIT
|
|
||||||
---help---
|
---help---
|
||||||
Include logic to initialize the network. This should not be done if
|
Include logic to initialize the network. This should not be done if
|
||||||
the network is already initialized when nettest runs. This is
|
the network is already initialized when nettest runs. This is
|
||||||
|
@ -129,8 +129,7 @@ endchoice # IP Domain
|
|||||||
|
|
||||||
config EXAMPLES_NETTEST_INIT
|
config EXAMPLES_NETTEST_INIT
|
||||||
bool "Initialize network"
|
bool "Initialize network"
|
||||||
default n if NSH_NETINIT
|
default !NSH_NETINIT
|
||||||
default y if !NSH_NETINIT
|
|
||||||
depends on !EXAMPLES_NETTEST_LOOPBACK
|
depends on !EXAMPLES_NETTEST_LOOPBACK
|
||||||
---help---
|
---help---
|
||||||
Include logic to initialize the network. This should not be done if
|
Include logic to initialize the network. This should not be done if
|
||||||
|
@ -146,8 +146,7 @@ endchoice # IP Domain
|
|||||||
|
|
||||||
config EXAMPLES_TCPBLASTER_INIT
|
config EXAMPLES_TCPBLASTER_INIT
|
||||||
bool "Initialize network"
|
bool "Initialize network"
|
||||||
default n if NSH_NETINIT
|
default !NSH_NETINIT
|
||||||
default y if !NSH_NETINIT
|
|
||||||
depends on !EXAMPLES_TCPBLASTER_LOOPBACK
|
depends on !EXAMPLES_TCPBLASTER_LOOPBACK
|
||||||
---help---
|
---help---
|
||||||
Include logic to initialize the network. This should not be done if
|
Include logic to initialize the network. This should not be done if
|
||||||
|
@ -70,8 +70,7 @@ config EXAMPLES_UDP_DEVNAME
|
|||||||
|
|
||||||
config EXAMPLES_UDP_NETINIT
|
config EXAMPLES_UDP_NETINIT
|
||||||
bool "Initialize network"
|
bool "Initialize network"
|
||||||
default n if NSH_NETINIT
|
default !NSH_NETINIT
|
||||||
default y if !NSH_NETINIT
|
|
||||||
---help---
|
---help---
|
||||||
Selecting this option will enable logic in the example to perform
|
Selecting this option will enable logic in the example to perform
|
||||||
some basic initialization of the network. You would probably only
|
some basic initialization of the network. You would probably only
|
||||||
|
@ -57,8 +57,7 @@ endchoice # IP Domain
|
|||||||
|
|
||||||
config EXAMPLES_UDPBLASTER_INIT
|
config EXAMPLES_UDPBLASTER_INIT
|
||||||
bool "Initialize network"
|
bool "Initialize network"
|
||||||
default n if NSH_NETINIT
|
default !NSH_NETINIT
|
||||||
default y if !NSH_NETINIT
|
|
||||||
depends on !EXAMPLES_UDPBLASTER_LOOPBACK
|
depends on !EXAMPLES_UDPBLASTER_LOOPBACK
|
||||||
---help---
|
---help---
|
||||||
Include logic to initialize the network. This should not be done if
|
Include logic to initialize the network. This should not be done if
|
||||||
|
@ -18,8 +18,7 @@ menu "NX Server/Device Configuration"
|
|||||||
|
|
||||||
config NXWIDGETS_FLICKERFREE
|
config NXWIDGETS_FLICKERFREE
|
||||||
bool "Enable Flicker Reduction Logic"
|
bool "Enable Flicker Reduction Logic"
|
||||||
default y if NX_LCDDRIVER
|
default NX_LCDDRIVER
|
||||||
default n if !NX_LCDDRIVER
|
|
||||||
---help---
|
---help---
|
||||||
Because of their performance an in the manner in which they are
|
Because of their performance an in the manner in which they are
|
||||||
updated, LCDs may be prone to "flicker" in the displays when Widgets
|
updated, LCDs may be prone to "flicker" in the displays when Widgets
|
||||||
|
@ -124,8 +124,7 @@ comment "Background Image"
|
|||||||
|
|
||||||
config NXWM_DISABLE_BACKGROUND_IMAGE
|
config NXWM_DISABLE_BACKGROUND_IMAGE
|
||||||
bool "Disable Background Image"
|
bool "Disable Background Image"
|
||||||
default n if !NXWM_DISABLE_MINIMIZE
|
default NXWM_DISABLE_MINIMIZE
|
||||||
default y if NXWM_DISABLE_MINIMIZE
|
|
||||||
---help---
|
---help---
|
||||||
Disable support for the "Desktop" background image.
|
Disable support for the "Desktop" background image.
|
||||||
|
|
||||||
@ -465,8 +464,7 @@ menu "NxWM Touchscreen Configuration"
|
|||||||
|
|
||||||
config NXWM_TOUCHSCREEN
|
config NXWM_TOUCHSCREEN
|
||||||
bool "Touchscreen Support"
|
bool "Touchscreen Support"
|
||||||
default y if INPUT
|
default INPUT
|
||||||
default n if !INPUT
|
|
||||||
---help---
|
---help---
|
||||||
Define to build in touchscreen support.
|
Define to build in touchscreen support.
|
||||||
|
|
||||||
|
@ -16,8 +16,7 @@ if NETUTILS_WEBSERVER
|
|||||||
|
|
||||||
config NETUTILS_HTTPD_SINGLECONNECT
|
config NETUTILS_HTTPD_SINGLECONNECT
|
||||||
bool "Single Connection"
|
bool "Single Connection"
|
||||||
default n if !DISABLE_PTHREAD
|
default DISABLE_PTHREAD
|
||||||
default y if DISABLE_PTHREAD
|
|
||||||
---help---
|
---help---
|
||||||
By default, the uIP web server will create a new, independent thread
|
By default, the uIP web server will create a new, independent thread
|
||||||
for each connection. This can, however, use a lot of stack space
|
for each connection. This can, however, use a lot of stack space
|
||||||
@ -28,15 +27,13 @@ config NETUTILS_HTTPD_SINGLECONNECT
|
|||||||
|
|
||||||
config NETUTILS_HTTPD_SCRIPT_DISABLE
|
config NETUTILS_HTTPD_SCRIPT_DISABLE
|
||||||
bool "Disable %! scripting"
|
bool "Disable %! scripting"
|
||||||
default y if NETUTILS_HTTPD_SENDFILE
|
default NETUTILS_HTTPD_SENDFILE
|
||||||
default n if !NETUTILS_HTTPD_SENDFILE
|
|
||||||
---help---
|
---help---
|
||||||
This option, if selected, will elide the %! scripting
|
This option, if selected, will elide the %! scripting
|
||||||
|
|
||||||
config NETUTILS_HTTPD_ENABLE_CHUNKED_ENCODING
|
config NETUTILS_HTTPD_ENABLE_CHUNKED_ENCODING
|
||||||
bool "Enable HTTP chunked encoding"
|
bool "Enable HTTP chunked encoding"
|
||||||
default y if !NETUTILS_HTTPD_SCRIPT_DISABLE
|
default !NETUTILS_HTTPD_SCRIPT_DISABLE
|
||||||
default n if NETUTILS_HTTPD_SCRIPT_DISABLE
|
|
||||||
---help---
|
---help---
|
||||||
This option, if selected, will cause transmissions of blocks of
|
This option, if selected, will cause transmissions of blocks of
|
||||||
initially unknown size (e.g. dynamic content creation) to be sent
|
initially unknown size (e.g. dynamic content creation) to be sent
|
||||||
|
@ -650,8 +650,7 @@ config NSH_DISABLE_XD
|
|||||||
|
|
||||||
config NSH_DISABLE_RESET_CAUSE
|
config NSH_DISABLE_RESET_CAUSE
|
||||||
bool "Disable reset cause"
|
bool "Disable reset cause"
|
||||||
default n if !DEFAULT_SMALL
|
default DEFAULT_SMALL
|
||||||
default y if DEFAULT_SMALL
|
|
||||||
depends on BOARDCTL_RESET_CAUSE
|
depends on BOARDCTL_RESET_CAUSE
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
Loading…
Reference in New Issue
Block a user