menu "Amlogic commands"

config AML_RPMB
	depends on OPTEE
	depends on MMC
	bool "support RPMB set in bootargs"
	default y
	help
	  Support RPMB set in bootargs.

config AML_STORE_WRAPPER
	depends on AML_STORAGE
	bool "wrapper for store"
	default y
	help
	  based on AML_STORAGE
	  read/write don't care bad blocks

config AML_IMG_READ
	depends on AML_STORAGE
	bool "image read"
	default y
	help
	  based on AML_STORAGE
	  read image without specify size

config AML_DEFENV
	bool "aml defenv_without"
	default y
	help
	  support reserv env from c array

config AML_UPDATE_ENV
	bool "aml update env part"
	depends on CMD_SAVEENV && !ENV_IS_NOWHERE
	default y
	help
	  support only update specified env list to flash
	  unlike saveenv, which overwrite env part with env buffer

config BOOTLOADER_CONTROL_BLOCK
	bool "bootloader control block support"
	default n
	help
	  used for recovery and the bootloader to talk to each other

config BOOTLOADER_SHOW_ERRCODE
	bool "bootloader show error code support"
	default n
	help
	  used for show error code when bootup failed
	  errcode will display in the upper left corner of the screen

config CMD_BCB
	bool "bcd cmd"
	depends on !AML_PRODUCT_MODE
	help
	  Say Y here if you want to change bcb cmds
	  by serial cmds.

config CMD_BOOTCTOL_AVB
	bool "avb cmd"
	default n
	help
	  support avb related cmds

config CMD_BOOTCTOL_NONE_RESET
	bool "bootctol cmd without reset"
	default n
	help
	  Say Y here if you want skip reset when bootctol
	  cmd switch slot

config CMD_CAR_PARAMS
	bool "used to read car camera params"
	default n
	help
	  support read car camera params

config CMD_RSVMEM
	bool "rsvmem cmd"
	default y
	help
	  support rsvmem cmd

config CMD_DMCRW
	bool "dmcrw cmd"
	default y
	help
	  support dmc read write cmd
	  support dmc sec violation check

config CMD_DDR_D2PLL
	bool "d2pll cmd"
	default n
	help
	  support d2pll cmd

config CMD_DDR_TEST
	bool "ddr test cmd"
	default y
	help
	  support ddr_test cmd

config CMD_OS_IDENT
	bool "os_ident"
	default y
	help
	  Ident OS type

config AML_ROBUST
	bool "envs for robust upgrade"
	depends on AML_STORAGE
	default y
	help
		"envs for robust upgrade like defendkey"

config CMD_AUTOSCR
	bool "legacy autoscr cmd"
	default y
	depends on CMD_SOURCE
	help
	  Run script in memory

config CMD_RMA
	bool "support rma command"
	depends on OPTEE
	default n
	help
	  Support rma cmd

config CMD_WATCHKEY
	bool "support watchkey command"
	select AMLOGIC_WATCHKEY
	help
	  Support watchkey cmd.

config MEASUREMENT_BOOT_TIME
	bool "profile time cmd"
	default n
	help
	  support print profile time command,
	  It will display in detail the time nodes of the bootloader phase.

#prduct mode start---->
config ENABLE_AML_GPIO_UPGRADE
	bool "enter upgrade by gpio key"
	depends on CMD_GPIO
	default n

config AML_GPIO_UPGRADE_KEY
	string "config gpio upgrade key"
	depends on ENABLE_AML_GPIO_UPGRADE

config NO_FASTBOOT_FLASHING
	depends on FASTBOOT
	bool "support fastboot lock/unlock"
	default n

config DISABLE_AML_SERIAL
	bool "disable debug serial tx/rx"
	depends on MESON_SERIAL
	select SILENT_CONSOLE
	select DISABLE_CONSOLE
	default n

config USB_TOOL_ENTRY
	string "support usb burn tool in run update"
	default "echo productmode" if AML_PRODUCT_MODE
	default "adnl 1200" if !AML_PRODUCT_MODE

config KNL_LOG_LEVEL
	string "restrict kernel log level"
	default " loglevel=1 " if AML_PRODUCT_MODE
	default " loglevel=7 " if !AML_PRODUCT_MODE

config AML_DISABLE_DEV_CMDS
	bool "disable unsafe developing commands"
	default n
	help
	"Disable un-safe developing commands for product mode"

config CMD_PMU
	bool "enable pmu test"
	default n
	help
	"enable pmu test"

config CMD_AML_MODEL
	bool "enable amlogic model management"
	default n
	help
	"enable amlogic model management, new version for panel ini parse"

config NOVERBOSE_BUILD
	bool "no verbose log build"
	default n

config AML_PRODUCT_MODE
	bool "amlogic product/security mode"
	default n
	imply NO_FASTBOOT_FLASHING
	imply DISABLE_AML_SERIAL
	imply AML_DISABLE_DEV_CMDS
	select NOVERBOSE_BUILD
	help
		recommend enable when product is ready for producing
#prduct mode end<----

config CMD_MBSPI
	bool "enable mbox spi test"
	default n
	help
	Enable mbox spi test
	Send a SPI transferring request command to AOCPU

config CMD_SECINFO
	bool "enable secinfo cmd"
	default n
	help
	Enable secinfo cmd
	Pass secinfo through bootargs.
endmenu
