David Howells | 964f3b3 | 2012-09-13 15:17:21 +0100 | [diff] [blame] | 1 | # |
| 2 | # Makefile for asymmetric cryptographic keys |
| 3 | # |
| 4 | |
| 5 | obj-$(CONFIG_ASYMMETRIC_KEY_TYPE) += asymmetric_keys.o |
| 6 | |
David Howells | 4ae71c1 | 2012-09-21 23:25:04 +0100 | [diff] [blame] | 7 | asymmetric_keys-y := asymmetric_type.o signature.o |
David Howells | a9681bf | 2012-09-21 23:24:55 +0100 | [diff] [blame] | 8 | |
| 9 | obj-$(CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE) += public_key.o |
David Howells | c26fd69 | 2012-09-24 17:11:48 +0100 | [diff] [blame] | 10 | |
| 11 | # |
| 12 | # X.509 Certificate handling |
| 13 | # |
| 14 | obj-$(CONFIG_X509_CERTIFICATE_PARSER) += x509_key_parser.o |
| 15 | x509_key_parser-y := \ |
| 16 | x509-asn1.o \ |
David Howells | b92e657 | 2015-07-20 21:16:26 +0100 | [diff] [blame] | 17 | x509_akid-asn1.o \ |
David Howells | c26fd69 | 2012-09-24 17:11:48 +0100 | [diff] [blame] | 18 | x509_cert_parser.o \ |
| 19 | x509_public_key.o |
| 20 | |
David Howells | b92e657 | 2015-07-20 21:16:26 +0100 | [diff] [blame] | 21 | $(obj)/x509_cert_parser.o: \ |
| 22 | $(obj)/x509-asn1.h \ |
Tadeusz Struk | db6c43b | 2016-02-02 10:08:53 -0800 | [diff] [blame] | 23 | $(obj)/x509_akid-asn1.h |
| 24 | |
David Howells | c26fd69 | 2012-09-24 17:11:48 +0100 | [diff] [blame] | 25 | $(obj)/x509-asn1.o: $(obj)/x509-asn1.c $(obj)/x509-asn1.h |
David Howells | b92e657 | 2015-07-20 21:16:26 +0100 | [diff] [blame] | 26 | $(obj)/x509_akid-asn1.o: $(obj)/x509_akid-asn1.c $(obj)/x509_akid-asn1.h |
David Howells | c26fd69 | 2012-09-24 17:11:48 +0100 | [diff] [blame] | 27 | |
| 28 | clean-files += x509-asn1.c x509-asn1.h |
David Howells | b92e657 | 2015-07-20 21:16:26 +0100 | [diff] [blame] | 29 | clean-files += x509_akid-asn1.c x509_akid-asn1.h |
David Howells | 2e3fadb | 2014-07-01 16:40:19 +0100 | [diff] [blame] | 30 | |
| 31 | # |
| 32 | # PKCS#7 message handling |
| 33 | # |
| 34 | obj-$(CONFIG_PKCS7_MESSAGE_PARSER) += pkcs7_message.o |
| 35 | pkcs7_message-y := \ |
| 36 | pkcs7-asn1.o \ |
David Howells | 9f0d331 | 2014-07-01 16:40:19 +0100 | [diff] [blame] | 37 | pkcs7_parser.o \ |
David Howells | 08815b6 | 2014-07-01 16:40:20 +0100 | [diff] [blame] | 38 | pkcs7_trust.o \ |
David Howells | 9f0d331 | 2014-07-01 16:40:19 +0100 | [diff] [blame] | 39 | pkcs7_verify.o |
David Howells | 2e3fadb | 2014-07-01 16:40:19 +0100 | [diff] [blame] | 40 | |
| 41 | $(obj)/pkcs7_parser.o: $(obj)/pkcs7-asn1.h |
| 42 | $(obj)/pkcs7-asn1.o: $(obj)/pkcs7-asn1.c $(obj)/pkcs7-asn1.h |
| 43 | |
| 44 | clean-files += pkcs7-asn1.c pkcs7-asn1.h |
David Howells | 22d01af | 2014-07-01 19:06:18 +0100 | [diff] [blame] | 45 | |
| 46 | # |
| 47 | # PKCS#7 parser testing key |
| 48 | # |
| 49 | obj-$(CONFIG_PKCS7_TEST_KEY) += pkcs7_test_key.o |
| 50 | pkcs7_test_key-y := \ |
| 51 | pkcs7_key_type.o |
David Howells | 26d1164b | 2014-07-01 16:02:51 +0100 | [diff] [blame] | 52 | |
| 53 | # |
| 54 | # Signed PE binary-wrapped key handling |
| 55 | # |
| 56 | obj-$(CONFIG_SIGNED_PE_FILE_VERIFICATION) += verify_signed_pefile.o |
| 57 | |
| 58 | verify_signed_pefile-y := \ |
David Howells | 4c0b4b1 | 2014-07-01 16:02:52 +0100 | [diff] [blame] | 59 | verify_pefile.o \ |
| 60 | mscode_parser.o \ |
| 61 | mscode-asn1.o |
| 62 | |
| 63 | $(obj)/mscode_parser.o: $(obj)/mscode-asn1.h $(obj)/mscode-asn1.h |
| 64 | $(obj)/mscode-asn1.o: $(obj)/mscode-asn1.c $(obj)/mscode-asn1.h |
| 65 | |
| 66 | clean-files += mscode-asn1.c mscode-asn1.h |