test: rng: Add a UT testcase for the rng command
[platform/kernel/u-boot.git] / cmd / Kconfig
index 1d84012..3625ff2 100644 (file)
@@ -31,6 +31,13 @@ config CMDLINE_EDITING
          Enable editing and History functions for interactive command line
          input operations
 
          Enable editing and History functions for interactive command line
          input operations
 
+config CMDLINE_PS_SUPPORT
+       bool "Enable support for changing the command prompt string at run-time"
+       depends on HUSH_PARSER
+       help
+         Only static string in the prompt is supported so far.  The string is
+         obtained from environment variables PS1 and PS2.
+
 config AUTO_COMPLETE
        bool "Enable auto complete using TAB"
        depends on CMDLINE
 config AUTO_COMPLETE
        bool "Enable auto complete using TAB"
        depends on CMDLINE
@@ -64,6 +71,23 @@ config SYS_PROMPT_HUSH_PS2
          printed when the command interpreter needs more input
          to complete a command. Usually "> ".
 
          printed when the command interpreter needs more input
          to complete a command. Usually "> ".
 
+config SYS_MAXARGS
+       int "Maximum number arguments accepted by commands"
+       default 16
+
+config SYS_CBSIZE
+       int "Console input buffer size"
+       default 2048 if ARCH_TEGRA || ARCH_VERSAL || ARCH_ZYNQ || ARCH_ZYNQMP || \
+               RCAR_GEN3 || TARGET_SOCFPGA_SOC64
+       default 512 if ARCH_MX5 || ARCH_MX6 || ARCH_MX7 || FSL_LSCH2 || \
+               FSL_LSCH3 || X86
+       default 256 if M68K || PPC
+       default 1024
+
+config SYS_PBSIZE
+       int "Buffer size for console output"
+       default 1044
+
 config SYS_XTRACE
        bool "Command execution tracer"
        depends on CMDLINE
 config SYS_XTRACE
        bool "Command execution tracer"
        depends on CMDLINE
@@ -160,6 +184,7 @@ config CMD_REGINFO
 config CMD_TLV_EEPROM
        bool "tlv_eeprom"
        depends on I2C_EEPROM
 config CMD_TLV_EEPROM
        bool "tlv_eeprom"
        depends on I2C_EEPROM
+       select CRC32
        help
          Display and program the system EEPROM data block in ONIE Tlvinfo
          format. TLV stands for Type-Length-Value.
        help
          Display and program the system EEPROM data block in ONIE Tlvinfo
          format. TLV stands for Type-Length-Value.
@@ -168,6 +193,7 @@ config SPL_CMD_TLV_EEPROM
        bool "tlv_eeprom for SPL"
        depends on SPL_I2C_EEPROM
        select SPL_DRIVERS_MISC
        bool "tlv_eeprom for SPL"
        depends on SPL_I2C_EEPROM
        select SPL_DRIVERS_MISC
+       select SPL_CRC32
        help
          Read system EEPROM data block in ONIE Tlvinfo format from SPL.
 
        help
          Read system EEPROM data block in ONIE Tlvinfo format from SPL.
 
@@ -194,6 +220,55 @@ config CMD_BOOTM
        help
          Boot an application image from the memory.
 
        help
          Boot an application image from the memory.
 
+config CMD_BOOTM_PRE_LOAD
+       bool "enable pre-load on bootm"
+       depends on CMD_BOOTM
+       depends on IMAGE_PRE_LOAD
+       default n
+       help
+         Enable support of stage pre-load for the bootm command.
+        This stage allow to check or modify the image provided
+        to the bootm command.
+
+config CMD_BOOTDEV
+       bool "bootdev"
+       depends on BOOTSTD
+       default y if BOOTSTD_FULL
+       help
+         Support listing available bootdevs (boot devices) which can provide an
+         OS to boot, as well as showing information about a particular one.
+
+         This command is not necessary for bootstd to work.
+
+config CMD_BOOTFLOW
+       bool "bootflow"
+       depends on BOOTSTD
+       default y
+       help
+         Support scanning for bootflows available with the bootdevs. The
+         bootflows can optionally be booted.
+
+config CMD_BOOTFLOW_FULL
+       bool "bootflow - extract subcommands"
+       depends on BOOTSTD_FULL
+       default y if BOOTSTD_FULL
+       help
+         Add the ability to list the available bootflows, select one and obtain
+         information about it.
+
+         This command is not necessary for bootstd to work.
+
+config CMD_BOOTMETH
+       bool "bootmeth"
+       depends on BOOTSTD
+       default y if BOOTSTD_FULL
+       help
+         Support listing available bootmethds (methods used to boot an
+         Operating System), as well as selecting the order that the bootmeths
+         are used.
+
+         This command is not necessary for bootstd to work.
+
 config BOOTM_EFI
        bool "Support booting UEFI FIT images"
        depends on CMD_BOOTEFI && CMD_BOOTM && FIT
 config BOOTM_EFI
        bool "Support booting UEFI FIT images"
        depends on CMD_BOOTEFI && CMD_BOOTM && FIT
@@ -262,6 +337,16 @@ config BOOTM_VXWORKS
        help
          Support booting VxWorks images via the bootm command.
 
        help
          Support booting VxWorks images via the bootm command.
 
+config SYS_BOOTM_LEN
+       hex "Maximum size of a decompresed OS image"
+       depends on CMD_BOOTM || CMD_BOOTI || CMD_BOOTZ
+       default 0x4000000 if PPC || ARM64
+       default 0x1000000 if X86 || ARCH_MX6 || ARCH_MX7
+       default 0x800000
+       help
+         This is the maximum size of the buffer that is used to decompress the OS
+         image in to, if passing a compressed image to bootm/booti/bootz.
+
 config CMD_BOOTEFI
        bool "bootefi"
        depends on EFI_LOADER
 config CMD_BOOTEFI
        bool "bootefi"
        depends on EFI_LOADER
@@ -297,6 +382,7 @@ source lib/efi_selftest/Kconfig
 config CMD_BOOTMENU
        bool "bootmenu"
        select MENU
 config CMD_BOOTMENU
        bool "bootmenu"
        select MENU
+       select CHARSET
        help
          Add an ANSI terminal boot menu command.
 
        help
          Add an ANSI terminal boot menu command.
 
@@ -508,6 +594,9 @@ config CMD_NVEDIT_EFI
          If enabled, we are allowed to set/print UEFI variables using
          "env" command with "-e" option without knowing details.
 
          If enabled, we are allowed to set/print UEFI variables using
          "env" command with "-e" option without knowing details.
 
+config CMD_NVEDIT_INDIRECT
+       bool "env indirect - Sets environment value from another"
+
 config CMD_NVEDIT_INFO
        bool "env info - print or evaluate environment information"
        help
 config CMD_NVEDIT_INFO
        bool "env info - print or evaluate environment information"
        help
@@ -949,8 +1038,9 @@ config CMD_FPGA_LOADP
          a partial bitstream.
 
 config CMD_FPGA_LOAD_SECURE
          a partial bitstream.
 
 config CMD_FPGA_LOAD_SECURE
-       bool "fpga loads - loads secure bitstreams (Xilinx only)"
+       bool "fpga loads - loads secure bitstreams"
        depends on CMD_FPGA
        depends on CMD_FPGA
+       select FPGA_LOAD_SECURE
        help
          Enables the fpga loads command which is used to load secure
          (authenticated or encrypted or both) bitstreams on to FPGA.
        help
          Enables the fpga loads command which is used to load secure
          (authenticated or encrypted or both) bitstreams on to FPGA.
@@ -976,6 +1066,13 @@ config CMD_GPIO
        help
          GPIO support.
 
        help
          GPIO support.
 
+config CMD_GPIO_READ
+       bool "gpio read - save GPIO value to variable"
+       depends on CMD_GPIO
+       help
+         Enables the 'gpio read' command that saves the value
+         of a GPIO pin to a variable.
+
 config CMD_PWM
        bool "pwm"
        depends on DM_PWM
 config CMD_PWM
        bool "pwm"
        depends on DM_PWM
@@ -1076,6 +1173,11 @@ config CMD_LOADB
        help
          Load a binary file over serial line.
 
        help
          Load a binary file over serial line.
 
+config CMD_LOADM
+       bool "loadm"
+       help
+         Load a binary over memory mapped.
+
 config CMD_LOADS
        bool "loads"
        default y
 config CMD_LOADS
        bool "loads"
        default y
@@ -1209,6 +1311,10 @@ config CMD_ONENAND
          and erasing blocks. It allso provides a way to show and change
          bad blocks, and test the device.
 
          and erasing blocks. It allso provides a way to show and change
          bad blocks, and test the device.
 
+config USE_ONENAND_BOARD_INIT
+       bool "Call onenand_board_init() in the onenand command"
+       depends on CMD_ONENAND
+
 config CMD_OSD
        bool "osd"
        help
 config CMD_OSD
        bool "osd"
        help
@@ -1219,6 +1325,7 @@ config CMD_OSD
 
 config CMD_PART
        bool "part"
 
 config CMD_PART
        bool "part"
+       depends on PARTITIONS
        select HAVE_BLOCK_DEVICE
        select PARTITION_UUIDS
        help
        select HAVE_BLOCK_DEVICE
        select PARTITION_UUIDS
        help
@@ -1647,6 +1754,15 @@ config NFS_TIMEOUT
          "ERROR: Cannot umount" in nfs command, try longer timeout such as
          10000.
 
          "ERROR: Cannot umount" in nfs command, try longer timeout such as
          10000.
 
+config SYS_DISABLE_AUTOLOAD
+       bool "Disable automatically loading files over the network"
+       depends on CMD_BOOTP || CMD_DHCP || CMD_NFS || CMD_RARP
+       help
+         Typically, commands such as "dhcp" will attempt to automatically
+         load a file from the network, once the initial network configuration
+         is complete.  Enable this option to disable this behavior and instead
+         require files to be loaded over the network by subsequent commands.
+
 config CMD_MII
        bool "mii"
        imply CMD_MDIO
 config CMD_MII
        bool "mii"
        imply CMD_MDIO
@@ -1848,6 +1964,7 @@ config CMD_GETTIME
 config CMD_RNG
        bool "rng command"
        depends on DM_RNG
 config CMD_RNG
        bool "rng command"
        depends on DM_RNG
+       default y if SANDBOX
        select HEXDUMP
        help
          Print bytes from the hardware random number generator.
        select HEXDUMP
        help
          Print bytes from the hardware random number generator.
@@ -2484,6 +2601,7 @@ config CMD_UBIFS
        depends on CMD_UBI
        default y if CMD_UBI
        select LZO
        depends on CMD_UBI
        default y if CMD_UBI
        select LZO
+       select GZIP
        help
          UBIFS is a file system for flash devices which works on top of UBI.
 
        help
          UBIFS is a file system for flash devices which works on top of UBI.