1 # SPDX-License-Identifier: GPL-2.0
3 # Makefile for asymmetric cryptographic keys
6 obj-
$(CONFIG_ASYMMETRIC_KEY_TYPE
) += asymmetric_keys.o
13 obj-
$(CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE
) += public_key.o
14 obj-
$(CONFIG_ASYMMETRIC_TPM_KEY_SUBTYPE
) += asym_tpm.o
17 # X.509 Certificate handling
19 obj-
$(CONFIG_X509_CERTIFICATE_PARSER
) += x509_key_parser.o
20 x509_key_parser-y
:= \
26 $(obj
)/x509_cert_parser.o
: \
28 $(obj
)/x509_akid.asn1.h
30 $(obj
)/x509.asn1.o
: $(obj
)/x509.asn1.c
$(obj
)/x509.asn1.h
31 $(obj
)/x509_akid.asn1.o
: $(obj
)/x509_akid.asn1.c
$(obj
)/x509_akid.asn1.h
34 # PKCS#8 private key handling
36 obj-
$(CONFIG_PKCS8_PRIVATE_KEY_PARSER
) += pkcs8_key_parser.o
37 pkcs8_key_parser-y
:= \
41 $(obj
)/pkcs8_parser.o
: $(obj
)/pkcs8.asn1.h
42 $(obj
)/pkcs8-asn1.o
: $(obj
)/pkcs8.asn1.c
$(obj
)/pkcs8.asn1.h
44 clean-files
+= pkcs8.asn1.c pkcs8.asn1.h
47 # PKCS#7 message handling
49 obj-
$(CONFIG_PKCS7_MESSAGE_PARSER
) += pkcs7_message.o
56 $(obj
)/pkcs7_parser.o
: $(obj
)/pkcs7.asn1.h
57 $(obj
)/pkcs7.asn1.o
: $(obj
)/pkcs7.asn1.c
$(obj
)/pkcs7.asn1.h
60 # PKCS#7 parser testing key
62 obj-
$(CONFIG_PKCS7_TEST_KEY
) += pkcs7_test_key.o
67 # Signed PE binary-wrapped key handling
69 obj-
$(CONFIG_SIGNED_PE_FILE_VERIFICATION
) += verify_signed_pefile.o
71 verify_signed_pefile-y
:= \
76 $(obj
)/mscode_parser.o
: $(obj
)/mscode.asn1.h
$(obj
)/mscode.asn1.h
77 $(obj
)/mscode.asn1.o
: $(obj
)/mscode.asn1.c
$(obj
)/mscode.asn1.h
80 # TPM private key parsing
82 obj-
$(CONFIG_TPM_KEY_PARSER
) += tpm_key_parser.o
87 $(obj
)/tpm_parser.o
: $(obj
)/tpm.asn1.h
88 $(obj
)/tpm.asn1.o
: $(obj
)/tpm.asn1.c
$(obj
)/tpm.asn1.h