]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: Add missing check for CONFIG_SYS_LONGHELP
authorSimon Glass <sjg@chromium.org>
Mon, 15 Mar 2021 05:00:25 +0000 (18:00 +1300)
committerSimon Glass <sjg@chromium.org>
Sat, 27 Mar 2021 02:04:30 +0000 (15:04 +1300)
Two commands are missing this check, so compilation fails when building
without CONFIG_CMDLINE. Add it.

Signed-off-by: Simon Glass <sjg@chromium.org>
cmd/acpi.c
cmd/bloblist.c

index 157261bffbe1b3fb5a818354cfb2115c766a1ded..e5b9a1752bc6d79adc0a7c330b19cb477c0258fa 100644 (file)
@@ -187,10 +187,12 @@ static int do_acpi_dump(struct cmd_tbl *cmdtp, int flag, int argc,
        return 0;
 }
 
+#ifdef CONFIG_SYS_LONGHELP
 static char acpi_help_text[] =
        "list - list ACPI tables\n"
        "acpi items [-d]  - List/dump each piece of ACPI data from devices\n"
        "acpi dump <name> - Dump ACPI table";
+#endif
 
 U_BOOT_CMD_WITH_SUBCMDS(acpi, "ACPI tables", acpi_help_text,
        U_BOOT_SUBCMD_MKENT(list, 1, 1, do_acpi_list),
index 97b57341617c06325fce1a36edfb0a796465d0b5..21e7ff67af205d574fb1ae333c1f21f347ea1e4e 100644 (file)
@@ -29,9 +29,11 @@ static int do_bloblist_list(struct cmd_tbl *cmdtp, int flag, int argc,
        return 0;
 }
 
+#ifdef CONFIG_SYS_LONGHELP
 static char bloblist_help_text[] =
        "info   - show information about the bloblist\n"
        "bloblist list   - list blobs in the bloblist";
+#endif
 
 U_BOOT_CMD_WITH_SUBCMDS(bloblist, "Bloblists", bloblist_help_text,
        U_BOOT_SUBCMD_MKENT(info, 1, 1, do_bloblist_info),