cmd: mvebu/bubt: Set correct default image name for 32-bit Armada SoCs
authorPali Rohár <pali@kernel.org>
Sun, 8 Jan 2023 13:01:03 +0000 (14:01 +0100)
committerStefan Roese <sr@denx.de>
Wed, 1 Mar 2023 05:39:17 +0000 (06:39 +0100)
32-bit Armada SoCs uses u-boot binary packed in kwbimage format. Name of
the image is in CONFIG_BUILD_TARGET option. So use it as a default option
in Kconfig.

Signed-off-by: Pali Rohár <pali@kernel.org>
cmd/mvebu/Kconfig

index 8f30a0c..9f6ad2d 100644 (file)
@@ -60,6 +60,7 @@ endchoice
 
 config MVEBU_UBOOT_DFLT_NAME
        string "Default image name for bubt command"
+       default BUILD_TARGET if ARMADA_32BIT && BUILD_TARGET != ""
        default "flash-image.bin"
        help
          This option should contain a default file name to be used with