tools/fit_check_sign: make the module dependent on CONFIG_FIT_SIGNATURE
authorShiji Yang <yangshiji66@outlook.com>
Thu, 19 Jun 2025 16:38:18 +0000 (00:38 +0800)
committerTom Rini <trini@konsulko.com>
Sun, 22 Jun 2025 16:16:39 +0000 (10:16 -0600)
commit1989eb65c50e2541373bc6657a85620ff0c6f573
tree4e0fb4366d9096987dcae916e883dc508101cbc9
parent961e260cdcd01d68c8dae87eef67e116f1a67aed
tools/fit_check_sign: make the module dependent on CONFIG_FIT_SIGNATURE

The function definition of fit_check_sign() is guarded by
"#ifdef CONFIG_FIT_SIGNATURE" in "tools/image-host.c". If we try
to build it without CONFIG_FIT_SIGNATURE, we will get an error:

/usr/bin/ld: tools/fit_check_sign.o: in function `main':
fit_check_sign.c:(.text.startup+0x165): undefined reference to `fit_check_sign'
collect2: error: ld returned 1 exit status

Fixes: 9c79c8fe70da ("tools/fit_check_sign: make key optional")
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
tools/Makefile