[PATCH v2 26/28] asn1_decoder: remove ASN1 decoder when using MbedTLS

Ilias Apalodimas ilias.apalodimas at linaro.org
Fri May 10 07:36:33 CEST 2024


On Tue, 7 May 2024 at 21:03, Raymond Mao <raymond.mao at linaro.org> wrote:
>
> When building with MbedTLS, we are using MbedTLS to decode ASN1 data
> for x509, pkcs7 and mscode. So we can remove asn1_decoder when
> MBEDTLS_LIB_X509 is enabled.
>
> Signed-off-by: Raymond Mao <raymond.mao at linaro.org>
> ---
> Changes in v2
> - Initial patch.
>
>  lib/Makefile | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/lib/Makefile b/lib/Makefile
> index 3534b3301ae..7e3dc1084fb 100644
> --- a/lib/Makefile
> +++ b/lib/Makefile
> @@ -82,7 +82,9 @@ obj-$(CONFIG_$(SPL_)SHA512) += sha512.o
>  endif
>
>  obj-$(CONFIG_CRYPT_PW) += crypt/
> +ifneq ($(CONFIG_MBEDTLS_LIB_X509), y)
>  obj-$(CONFIG_$(SPL_)ASN1_DECODER) += asn1_decoder.o
> +endif
>
>  obj-$(CONFIG_$(SPL_)ZLIB) += zlib/
>  obj-$(CONFIG_$(SPL_)ZSTD) += zstd/
> --
> 2.25.1
>

Reviewed-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>


More information about the U-Boot mailing list