lib: rsa: distinguish between tpl and spl for
From: Heiko Stuebner <heiko.stuebner@...> Date: Tue, 7 Apr 2020 10:49:58 +0200
Commit-Message
While the SPL may want to do signature checking this won't be the case for TPL in all cases, as TPL is mostly used when the amound of initial memory is not enough for a full SPL. So on a system where SPL uses DM but TPL does not we currently end up with a TPL compile error of: lib/rsa/rsa-verify.c:48:25: error: dereferencing pointer to incomplete type ‘struct checksum_algo’ To prevent that change the $(SPL_) to $(SPL_TPL_) to distinguish between both. If someone really needs FIT signature checking in TPL as well, a new TPL_RSA_VERIFY config symbol needs to be added. Signed-off-by: Heiko Stuebner <heiko.stuebner@...> Reviewed-by: Philipp Tomsich <philipp.tomsich@...> Reviewed-by: Kever Yang <kever.yang@...>
Patch-Comment
changes in v2: - fix typo "distinguis(h)" I've split out the build fixes from the signature series. It would be cool to get these applied already, as they do fix actual issues to be seen when enabling signature support in spl. lib/rsa/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Statistics
- 1 lines added
- 1 lines removed