1#
2# Makefile for asymmetric cryptographic keys
3#
4
5obj-$(CONFIG_ASYMMETRIC_KEY_TYPE) += asymmetric_keys.o
6
7asymmetric_keys-y := \
8	asymmetric_type.o \
9	restrict.o \
10	signature.o
11
12obj-$(CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE) += public_key.o
13
14#
15# X.509 Certificate handling
16#
17obj-$(CONFIG_X509_CERTIFICATE_PARSER) += x509_key_parser.o
18x509_key_parser-y := \
19	x509-asn1.o \
20	x509_akid-asn1.o \
21	x509_cert_parser.o \
22	x509_public_key.o
23
24$(obj)/x509_cert_parser.o: \
25	$(obj)/x509-asn1.h \
26	$(obj)/x509_akid-asn1.h
27
28$(obj)/x509-asn1.o: $(obj)/x509-asn1.c $(obj)/x509-asn1.h
29$(obj)/x509_akid-asn1.o: $(obj)/x509_akid-asn1.c $(obj)/x509_akid-asn1.h
30
31clean-files	+= x509-asn1.c x509-asn1.h
32clean-files	+= x509_akid-asn1.c x509_akid-asn1.h
33
34#
35# PKCS#7 message handling
36#
37obj-$(CONFIG_PKCS7_MESSAGE_PARSER) += pkcs7_message.o
38pkcs7_message-y := \
39	pkcs7-asn1.o \
40	pkcs7_parser.o \
41	pkcs7_trust.o \
42	pkcs7_verify.o
43
44$(obj)/pkcs7_parser.o: $(obj)/pkcs7-asn1.h
45$(obj)/pkcs7-asn1.o: $(obj)/pkcs7-asn1.c $(obj)/pkcs7-asn1.h
46
47clean-files	+= pkcs7-asn1.c pkcs7-asn1.h
48
49#
50# PKCS#7 parser testing key
51#
52obj-$(CONFIG_PKCS7_TEST_KEY) += pkcs7_test_key.o
53pkcs7_test_key-y := \
54	pkcs7_key_type.o
55
56#
57# Signed PE binary-wrapped key handling
58#
59obj-$(CONFIG_SIGNED_PE_FILE_VERIFICATION) += verify_signed_pefile.o
60
61verify_signed_pefile-y := \
62	verify_pefile.o \
63	mscode_parser.o \
64	mscode-asn1.o
65
66$(obj)/mscode_parser.o: $(obj)/mscode-asn1.h $(obj)/mscode-asn1.h
67$(obj)/mscode-asn1.o: $(obj)/mscode-asn1.c $(obj)/mscode-asn1.h
68
69clean-files	+= mscode-asn1.c mscode-asn1.h
70