2017-09-22 17:33:41 +08:00
|
|
|
# Copyright (c) 2017 Linaro Limited
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
|
|
|
mainmenu "MCUBOOT configuration"
|
|
|
|
|
|
|
|
config ZEPHYR_BASE
|
|
|
|
string
|
|
|
|
option env="ZEPHYR_BASE"
|
|
|
|
|
|
|
|
source "$ZEPHYR_BASE/Kconfig.zephyr"
|
|
|
|
|
|
|
|
menuconfig MCUBOOT_SERIAL
|
|
|
|
bool
|
|
|
|
prompt "MCUBOOT serial recovery"
|
|
|
|
default n
|
|
|
|
select REBOOT
|
2017-10-19 17:21:52 +08:00
|
|
|
select UART_INTERRUPT_DRIVEN
|
|
|
|
select SERIAL
|
2017-09-22 17:33:41 +08:00
|
|
|
help
|
|
|
|
Enable serial recovery feature in mcuboot.
|
|
|
|
|
2017-10-19 17:21:52 +08:00
|
|
|
config BOOT_MAX_LINE_INPUT_LEN
|
|
|
|
int "cmd line max length"
|
|
|
|
default 512
|
|
|
|
depends on MCUBOOT_SERIAL
|
|
|
|
help
|
|
|
|
Maximum length of commands transported over the serial protocol
|
|
|
|
|
2017-09-22 17:33:41 +08:00
|
|
|
config BOOT_SERIAL_DETECT_PORT
|
|
|
|
string
|
|
|
|
prompt "GPIO Port to trigger serial recovery mode"
|
|
|
|
default CONFIG_GPIO_NRF5_P0_DEV_NAME
|
|
|
|
depends on MCUBOOT_SERIAL
|
|
|
|
help
|
|
|
|
Serial recovery detect port
|
|
|
|
|
|
|
|
config BOOT_SERIAL_DETECT_PIN
|
|
|
|
int
|
|
|
|
prompt "Pin to trigger serial recovery mode"
|
|
|
|
default 0
|
|
|
|
depends on MCUBOOT_SERIAL
|
|
|
|
help
|
|
|
|
Serial recovery detect pin
|
|
|
|
|
|
|
|
config BOOT_SERIAL_DETECT_PIN_VAL
|
|
|
|
int "Boot Pin trigger value"
|
|
|
|
default 0
|
|
|
|
range 0 1
|
|
|
|
depends on MCUBOOT_SERIAL
|
|
|
|
help
|
|
|
|
The input pin logic value which triggers the boot serial recovery mode.
|