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
16 # X.509 Certificate handling
18 obj-
$(CONFIG_X509_CERTIFICATE_PARSER
) += x509_key_parser.o
19 x509_key_parser-y
:= \
25 $(obj
)/x509_cert_parser.o
: \
27 $(obj
)/x509_akid-asn1.h
29 $(obj
)/x509-asn1.o
: $(obj
)/x509-asn1.c
$(obj
)/x509-asn1.h
30 $(obj
)/x509_akid-asn1.o
: $(obj
)/x509_akid-asn1.c
$(obj
)/x509_akid-asn1.h
32 clean-files
+= x509-asn1.c x509-asn1.h
33 clean-files
+= x509_akid-asn1.c x509_akid-asn1.h
36 # PKCS#7 message handling
38 obj-
$(CONFIG_PKCS7_MESSAGE_PARSER
) += pkcs7_message.o
45 $(obj
)/pkcs7_parser.o
: $(obj
)/pkcs7-asn1.h
46 $(obj
)/pkcs7-asn1.o
: $(obj
)/pkcs7-asn1.c
$(obj
)/pkcs7-asn1.h
48 clean-files
+= pkcs7-asn1.c pkcs7-asn1.h
51 # PKCS#7 parser testing key
53 obj-
$(CONFIG_PKCS7_TEST_KEY
) += pkcs7_test_key.o
58 # Signed PE binary-wrapped key handling
60 obj-
$(CONFIG_SIGNED_PE_FILE_VERIFICATION
) += verify_signed_pefile.o
62 verify_signed_pefile-y
:= \
67 $(obj
)/mscode_parser.o
: $(obj
)/mscode-asn1.h
$(obj
)/mscode-asn1.h
68 $(obj
)/mscode-asn1.o
: $(obj
)/mscode-asn1.c
$(obj
)/mscode-asn1.h
70 clean-files
+= mscode-asn1.c mscode-asn1.h