summaryrefslogtreecommitdiff
path: root/test/cmd/Makefile
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2024-11-14 10:49:30 -0600
committerTom Rini <[email protected]>2024-11-14 10:49:51 -0600
commitf6ee67126492f07d400d677e82467de3f8ad2bda (patch)
treecbf2489ee32bc8132d68621ba3469cdfd675e2f2 /test/cmd/Makefile
parenta45d823c0223947848de7031e449e1873032072b (diff)
parent7dfafcd65ef3dc0307a7752ac5a263eb2af56862 (diff)
Merge patch series "cmd: hash: correct parameter count check"
Heinrich Schuchardt <[email protected]> says: Since commit 348ea878508d ("cmd: hash: fix param count check") the hash command cannot be used without the optional variable name parameter if CONFIG_HASH_VERIFY=y. 'hash sha1 $loadaddr $filesize' returns CMD_RET_USAGE. The minimum number of arguments is four no matter if verification is enabled or not. Fix the parameter check. Provide a unit test. Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'test/cmd/Makefile')
-rw-r--r--test/cmd/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/cmd/Makefile b/test/cmd/Makefile
index 5e4a2040d6c..583e7c2eec4 100644
--- a/test/cmd/Makefile
+++ b/test/cmd/Makefile
@@ -19,6 +19,7 @@ obj-$(CONFIG_CMD_BDI) += bdinfo.o
obj-$(CONFIG_COREBOOT_SYSINFO) += coreboot.o
obj-$(CONFIG_CMD_FDT) += fdt.o
obj-$(CONFIG_CONSOLE_TRUETYPE) += font.o
+obj-$(CONFIG_CMD_HASH) += hash.o
obj-$(CONFIG_CMD_HISTORY) += history.o
obj-$(CONFIG_CMD_LOADM) += loadm.o
obj-$(CONFIG_CMD_MEMINFO) += meminfo.o