]> git.baikalelectronics.ru Git - uboot.git/commit
rsa-verify: Rework host check for CONFIG_RSA_VERIFY_WITH_PKEY
authorTom Rini <trini@konsulko.com>
Tue, 6 Dec 2022 18:51:21 +0000 (13:51 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 23 Dec 2022 15:07:03 +0000 (10:07 -0500)
commit614d580f5149cefce5832215c422ee6a48e3f1f6
tree623250990d8e0fc536bc7fcd17a5592b136dc5b3
parenta3ab394361422d61c5961b142f64b28c8bb1d396
rsa-verify: Rework host check for CONFIG_RSA_VERIFY_WITH_PKEY

While we do not want to use CONFIG_RSA_VERIFY_WITH_PKEY on the host, we
cannot undef the symbol in this manner. As this ends up being a test
within another function we can use !tools_build() as a test here.

Cc: AKASHI Takahiro <takahiro.akashi@linaro.org>
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/rsa/rsa-verify.c