Skip to contentSkip to conversation

cmd: mvebu/bubt: Fix default options in help

PATCH New Pali Rohár 2 participants 3 messages Jan 27, 2021 – Feb 8, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cmd: mvebu/bubt: Fix default options in help

Default options depends on compile time defines.

---
 cmd/mvebu/bubt.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
cmd/mvebu/bubt.c +3 -3
index 4c58fd3c2e..b64996320c 100644
@@ -874,9 +874,9 @@ U_BOOT_CMD(
 	bubt, 4, 0, do_bubt_cmd,
 	"Burn a u-boot image to flash",
 	"[file-name] [destination [source]]\n"
-	"\t-file-name     The image file name to burn. Default = flash-image.bin\n"
-	"\t-destination   Flash to burn to [spi, nand, mmc]. Default = active boot device\n"
-	"\t-source        The source to load image from [tftp, usb, mmc]. Default = tftp\n"
+	"\t-file-name     The image file name to burn. Default = " CONFIG_MVEBU_UBOOT_DFLT_NAME "\n"
+	"\t-destination   Flash to burn to [spi, nand, mmc]. Default = " DEFAULT_BUBT_DST "\n"
+	"\t-source        The source to load image from [tftp, usb, mmc]. Default = " DEFAULT_BUBT_SRC "\n"
 	"Examples:\n"
 	"\tbubt - Burn flash-image.bin from tftp to active boot device\n"
 	"\tbubt flash-image-new.bin nand - Burn flash-image-new.bin from tftp to NAND flash\n"
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 cmd: mvebu/bubt: Fix default options in help

Quoted 3 lines · Pali Roh?r

Default options depends on compile time defines.

Thanks,
Stefan

Quoted 12 lines
---
  cmd/mvebu/bubt.c | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
cmd/mvebu/bubt.c +0 -0
index 4c58fd3c2e..b64996320c 100644
@@ -874,9 +874,9 @@ U_BOOT_CMD(
  	bubt, 4, 0, do_bubt_cmd,
  	"Burn a u-boot image to flash",

cmd/mvebu/bubt.c U_BOOT_CMD( · line 882

Quoted 10 lines
cmd/mvebu/bubt.c +3 -3
  	"[file-name] [destination [source]]\n"
-	"\t-file-name     The image file name to burn. Default = flash-image.bin\n"
-	"\t-destination   Flash to burn to [spi, nand, mmc]. Default = active boot device\n"
-	"\t-source        The source to load image from [tftp, usb, mmc]. Default = tftp\n"
+	"\t-file-name     The image file name to burn. Default = " CONFIG_MVEBU_UBOOT_DFLT_NAME "\n"
+	"\t-destination   Flash to burn to [spi, nand, mmc]. Default = " DEFAULT_BUBT_DST "\n"
+	"\t-source        The source to load image from [tftp, usb, mmc]. Default = " DEFAULT_BUBT_SRC "\n"
  	"Examples:\n"
  	"\tbubt - Burn flash-image.bin from tftp to active boot device\n"
  	"\tbubt flash-image-new.bin nand - Burn flash-image-new.bin from tftp to NAND flash\n"

Viele Gr??e,
Stefan

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de