diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-15 18:00:25 +1300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-03-27 15:04:30 +1300 |
commit | 907bcd3a33253515cb1bdc01077e127c6735f74b (patch) | |
tree | 5aacf8cf1abe10b14f366d39763dd6f7e4b8b154 /cmd/acpi.c | |
parent | 71cebf0b5947cc0e393bec0841744d9eda0a038d (diff) | |
download | u-boot-907bcd3a33253515cb1bdc01077e127c6735f74b.tar.gz u-boot-907bcd3a33253515cb1bdc01077e127c6735f74b.tar.bz2 u-boot-907bcd3a33253515cb1bdc01077e127c6735f74b.zip |
cmd: Add missing check for CONFIG_SYS_LONGHELP
Two commands are missing this check, so compilation fails when building
without CONFIG_CMDLINE. Add it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd/acpi.c')
-rw-r--r-- | cmd/acpi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/acpi.c b/cmd/acpi.c index 157261bffb..e5b9a1752b 100644 --- a/cmd/acpi.c +++ b/cmd/acpi.c @@ -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), |