2 # Makefile for asymmetric cryptographic keys
5 obj-
$(CONFIG_ASYMMETRIC_KEY_TYPE
) += asymmetric_keys.o
7 asymmetric_keys-y
:= asymmetric_type.o signature.o
9 obj-
$(CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE
) += public_key.o
10 obj-
$(CONFIG_PUBLIC_KEY_ALGO_RSA
) += rsa.o
13 # X.509 Certificate handling
15 obj-
$(CONFIG_X509_CERTIFICATE_PARSER
) += x509_key_parser.o
16 x509_key_parser-y
:= \
22 $(obj
)/x509_cert_parser.o
: $(obj
)/x509-asn1.h
$(obj
)/x509_rsakey-asn1.h
23 $(obj
)/x509-asn1.o
: $(obj
)/x509-asn1.c
$(obj
)/x509-asn1.h
24 $(obj
)/x509_rsakey-asn1.o
: $(obj
)/x509_rsakey-asn1.c
$(obj
)/x509_rsakey-asn1.h
26 clean-files
+= x509-asn1.c x509-asn1.h
27 clean-files
+= x509_rsakey-asn1.c x509_rsakey-asn1.h
30 # PKCS#7 message handling
32 obj-
$(CONFIG_PKCS7_MESSAGE_PARSER
) += pkcs7_message.o
39 $(obj
)/pkcs7_parser.o
: $(obj
)/pkcs7-asn1.h
40 $(obj
)/pkcs7-asn1.o
: $(obj
)/pkcs7-asn1.c
$(obj
)/pkcs7-asn1.h
42 clean-files
+= pkcs7-asn1.c pkcs7-asn1.h
45 # PKCS#7 parser testing key
47 obj-
$(CONFIG_PKCS7_TEST_KEY
) += pkcs7_test_key.o
52 # Signed PE binary-wrapped key handling
54 obj-
$(CONFIG_SIGNED_PE_FILE_VERIFICATION
) += verify_signed_pefile.o
56 verify_signed_pefile-y
:= \
61 $(obj
)/mscode_parser.o
: $(obj
)/mscode-asn1.h
$(obj
)/mscode-asn1.h
62 $(obj
)/mscode-asn1.o
: $(obj
)/mscode-asn1.c
$(obj
)/mscode-asn1.h
64 clean-files
+= mscode-asn1.c mscode-asn1.h