Kconfig: Only show the "usb ids" menu if low-level options are enabled

It's rare to customize the usb ids, so make it a "low-level" option.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2020-05-31 20:45:59 -04:00
parent ea9eac6c38
commit 38772492f9
1 changed files with 10 additions and 7 deletions

View File

@ -48,23 +48,26 @@ config SERIAL_BAUD
to 250000. Read the FAQ before changing this value.
# Generic configuration options for USB
menu "USB ids"
depends on USBSERIAL
config USB_VENDOR_ID
hex "USB vendor ID"
default 0x1d50
config USB_DEVICE_ID
hex "USB device ID"
default 0x614e
config USB_SERIAL_NUMBER_CHIPID
depends on HAVE_CHIPID
bool "USB serial number from CHIPID"
default y
config USB_SERIAL_NUMBER
string "USB serial number" if !USB_SERIAL_NUMBER_CHIPID
default "12345"
menu "USB ids"
depends on USBSERIAL && LOW_LEVEL_OPTIONS
config USB_VENDOR_ID
hex "USB vendor ID"
config USB_DEVICE_ID
hex "USB device ID"
config USB_SERIAL_NUMBER_CHIPID
bool "USB serial number from CHIPID" if HAVE_CHIPID
config USB_SERIAL_NUMBER
string "USB serial number" if !USB_SERIAL_NUMBER_CHIPID
endmenu
# Step timing customization