blob: 4719aad5dec0beee0f10bee468a3052c218539b7 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
David Howells964f3b32012-09-13 15:17:21 +01002#
3# Makefile for asymmetric cryptographic keys
4#
5
6obj-$(CONFIG_ASYMMETRIC_KEY_TYPE) += asymmetric_keys.o
7
David Howellscfb664f2016-04-06 16:14:26 +01008asymmetric_keys-y := \
9 asymmetric_type.o \
10 restrict.o \
11 signature.o
David Howellsa9681bf2012-09-21 23:24:55 +010012
13obj-$(CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE) += public_key.o
David Howellsc26fd692012-09-24 17:11:48 +010014
15#
16# X.509 Certificate handling
17#
18obj-$(CONFIG_X509_CERTIFICATE_PARSER) += x509_key_parser.o
19x509_key_parser-y := \
20 x509-asn1.o \
David Howellsb92e6572015-07-20 21:16:26 +010021 x509_akid-asn1.o \
David Howellsc26fd692012-09-24 17:11:48 +010022 x509_cert_parser.o \
23 x509_public_key.o
24
David Howellsb92e6572015-07-20 21:16:26 +010025$(obj)/x509_cert_parser.o: \
26 $(obj)/x509-asn1.h \
Tadeusz Strukdb6c43b2016-02-02 10:08:53 -080027 $(obj)/x509_akid-asn1.h
28
David Howellsc26fd692012-09-24 17:11:48 +010029$(obj)/x509-asn1.o: $(obj)/x509-asn1.c $(obj)/x509-asn1.h
David Howellsb92e6572015-07-20 21:16:26 +010030$(obj)/x509_akid-asn1.o: $(obj)/x509_akid-asn1.c $(obj)/x509_akid-asn1.h
David Howellsc26fd692012-09-24 17:11:48 +010031
32clean-files += x509-asn1.c x509-asn1.h
David Howellsb92e6572015-07-20 21:16:26 +010033clean-files += x509_akid-asn1.c x509_akid-asn1.h
David Howells2e3fadb2014-07-01 16:40:19 +010034
35#
36# PKCS#7 message handling
37#
38obj-$(CONFIG_PKCS7_MESSAGE_PARSER) += pkcs7_message.o
39pkcs7_message-y := \
40 pkcs7-asn1.o \
David Howells9f0d3312014-07-01 16:40:19 +010041 pkcs7_parser.o \
David Howells08815b62014-07-01 16:40:20 +010042 pkcs7_trust.o \
David Howells9f0d3312014-07-01 16:40:19 +010043 pkcs7_verify.o
David Howells2e3fadb2014-07-01 16:40:19 +010044
45$(obj)/pkcs7_parser.o: $(obj)/pkcs7-asn1.h
46$(obj)/pkcs7-asn1.o: $(obj)/pkcs7-asn1.c $(obj)/pkcs7-asn1.h
47
48clean-files += pkcs7-asn1.c pkcs7-asn1.h
David Howells22d01af2014-07-01 19:06:18 +010049
50#
51# PKCS#7 parser testing key
52#
53obj-$(CONFIG_PKCS7_TEST_KEY) += pkcs7_test_key.o
54pkcs7_test_key-y := \
55 pkcs7_key_type.o
David Howells26d1164b2014-07-01 16:02:51 +010056
57#
58# Signed PE binary-wrapped key handling
59#
60obj-$(CONFIG_SIGNED_PE_FILE_VERIFICATION) += verify_signed_pefile.o
61
62verify_signed_pefile-y := \
David Howells4c0b4b12014-07-01 16:02:52 +010063 verify_pefile.o \
64 mscode_parser.o \
65 mscode-asn1.o
66
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
69
70clean-files += mscode-asn1.c mscode-asn1.h