]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: mvebu: Hide bubt specific options when bubt is disabled
authorPali Rohár <pali@kernel.org>
Tue, 3 May 2022 09:13:24 +0000 (11:13 +0200)
committerStefan Roese <sr@denx.de>
Mon, 16 May 2022 09:31:33 +0000 (11:31 +0200)
CONFIG_MVEBU_NAND_BOOT, CONFIG_MVEBU_SPI_BOOT, CONFIG_MVEBU_MMC_BOOT and
CONFIG_MVEBU_UBOOT_DFLT_NAME are unused when CONFIG_CMD_MVEBU_BUBT is not
enabled. So hide them.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
cmd/mvebu/Kconfig

index ac8b0afd20e59d29c401ad00bfa5a121a61fa929..39963db82c9877adc4c8824bab9922412b7d9e16 100644 (file)
@@ -9,6 +9,8 @@ config CMD_MVEBU_BUBT
          For details about bubt command please see the documentation
          in doc/mvebu/cmd/bubt.txt
 
+if CMD_MVEBU_BUBT
+
 choice
        prompt "Flash for image"
        default MVEBU_SPI_BOOT
@@ -49,6 +51,8 @@ config MVEBU_UBOOT_DFLT_NAME
          This option should contain a default file name to be used with
          MVEBU "bubt" command if the source file name is omitted
 
+endif
+
 config CMD_MVEBU_COMPHY_RX_TRAINING
        bool "mvebu_comphy_rx_training"
        depends on ARMADA_8K