mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-17 02:15:02 +00:00

Heinrich Schuchardt <heinrich.schuchardt@canonical.com> says:
Since commit 348ea87850
("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/20241102100836.103005-1-heinrich.schuchardt@canonical.com
43 lines
1.3 KiB
Makefile
43 lines
1.3 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# Copyright (c) 2013 Google, Inc
|
|
# Copyright 2022-2023 Arm Limited and/or its affiliates <open-source-office@arm.com>
|
|
|
|
obj-y += cmd_ut_cmd.o
|
|
|
|
obj-$(CONFIG_$(XPL_)CMDLINE) += command.o
|
|
ifdef CONFIG_HUSH_PARSER
|
|
obj-$(CONFIG_CONSOLE_RECORD) += test_echo.o
|
|
endif
|
|
ifdef CONFIG_CONSOLE_RECORD
|
|
obj-$(CONFIG_CMD_PAUSE) += test_pause.o
|
|
endif
|
|
obj-y += exit.o mem.o
|
|
obj-$(CONFIG_X86) += cpuid.o msr.o
|
|
obj-$(CONFIG_CMD_ADDRMAP) += addrmap.o
|
|
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
|
|
obj-$(CONFIG_CMD_MEMORY) += mem_copy.o
|
|
obj-$(CONFIG_CMD_MEM_SEARCH) += mem_search.o
|
|
ifdef CONFIG_CMD_PCI
|
|
obj-$(CONFIG_CMD_PCI_MPS) += pci_mps.o
|
|
endif
|
|
obj-$(CONFIG_CMD_SEAMA) += seama.o
|
|
ifdef CONFIG_SANDBOX
|
|
obj-$(CONFIG_CMD_MBR) += mbr.o
|
|
obj-$(CONFIG_CMD_PINMUX) += pinmux.o
|
|
obj-$(CONFIG_CMD_PWM) += pwm.o
|
|
obj-$(CONFIG_CMD_READ) += rw.o
|
|
obj-$(CONFIG_CMD_SETEXPR) += setexpr.o
|
|
obj-$(CONFIG_CMD_TEMPERATURE) += temperature.o
|
|
ifdef CONFIG_NET
|
|
obj-$(CONFIG_CMD_WGET) += wget.o
|
|
endif
|
|
obj-$(CONFIG_ARM_FFA_TRANSPORT) += armffa.o
|
|
endif
|