Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
David Howells | 964f3b3 | 2012-09-13 15:17:21 +0100 | [diff] [blame] | 2 | # |
| 3 | # Makefile for asymmetric cryptographic keys |
| 4 | # |
| 5 | |
| 6 | obj-$(CONFIG_ASYMMETRIC_KEY_TYPE) += asymmetric_keys.o |
| 7 | |
David Howells | cfb664f | 2016-04-06 16:14:26 +0100 | [diff] [blame] | 8 | asymmetric_keys-y := \ |
| 9 | asymmetric_type.o \ |
| 10 | restrict.o \ |
| 11 | signature.o |
David Howells | a9681bf | 2012-09-21 23:24:55 +0100 | [diff] [blame] | 12 | |
| 13 | obj-$(CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE) += public_key.o |
Denis Kenzior | 903be6b | 2018-10-09 17:48:02 +0100 | [diff] [blame] | 14 | obj-$(CONFIG_ASYMMETRIC_TPM_KEY_SUBTYPE) += asym_tpm.o |
David Howells | c26fd69 | 2012-09-24 17:11:48 +0100 | [diff] [blame] | 15 | |
| 16 | # |
| 17 | # X.509 Certificate handling |
| 18 | # |
| 19 | obj-$(CONFIG_X509_CERTIFICATE_PARSER) += x509_key_parser.o |
| 20 | x509_key_parser-y := \ |
Masahiro Yamada | 4fa8bc9 | 2018-03-23 22:04:37 +0900 | [diff] [blame] | 21 | x509.asn1.o \ |
| 22 | x509_akid.asn1.o \ |
David Howells | c26fd69 | 2012-09-24 17:11:48 +0100 | [diff] [blame] | 23 | x509_cert_parser.o \ |
| 24 | x509_public_key.o |
| 25 | |
David Howells | b92e657 | 2015-07-20 21:16:26 +0100 | [diff] [blame] | 26 | $(obj)/x509_cert_parser.o: \ |
Masahiro Yamada | 4fa8bc9 | 2018-03-23 22:04:37 +0900 | [diff] [blame] | 27 | $(obj)/x509.asn1.h \ |
| 28 | $(obj)/x509_akid.asn1.h |
Tadeusz Struk | db6c43b | 2016-02-02 10:08:53 -0800 | [diff] [blame] | 29 | |
Masahiro Yamada | 4fa8bc9 | 2018-03-23 22:04:37 +0900 | [diff] [blame] | 30 | $(obj)/x509.asn1.o: $(obj)/x509.asn1.c $(obj)/x509.asn1.h |
| 31 | $(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] | 32 | |
David Howells | 2e3fadb | 2014-07-01 16:40:19 +0100 | [diff] [blame] | 33 | # |
David Howells | 3c58b23 | 2018-10-09 17:47:46 +0100 | [diff] [blame] | 34 | # PKCS#8 private key handling |
| 35 | # |
| 36 | obj-$(CONFIG_PKCS8_PRIVATE_KEY_PARSER) += pkcs8_key_parser.o |
| 37 | pkcs8_key_parser-y := \ |
| 38 | pkcs8.asn1.o \ |
| 39 | pkcs8_parser.o |
| 40 | |
| 41 | $(obj)/pkcs8_parser.o: $(obj)/pkcs8.asn1.h |
| 42 | $(obj)/pkcs8-asn1.o: $(obj)/pkcs8.asn1.c $(obj)/pkcs8.asn1.h |
| 43 | |
| 44 | clean-files += pkcs8.asn1.c pkcs8.asn1.h |
| 45 | |
| 46 | # |
David Howells | 2e3fadb | 2014-07-01 16:40:19 +0100 | [diff] [blame] | 47 | # PKCS#7 message handling |
| 48 | # |
| 49 | obj-$(CONFIG_PKCS7_MESSAGE_PARSER) += pkcs7_message.o |
| 50 | pkcs7_message-y := \ |
Masahiro Yamada | 4fa8bc9 | 2018-03-23 22:04:37 +0900 | [diff] [blame] | 51 | pkcs7.asn1.o \ |
David Howells | 9f0d331 | 2014-07-01 16:40:19 +0100 | [diff] [blame] | 52 | pkcs7_parser.o \ |
David Howells | 08815b6 | 2014-07-01 16:40:20 +0100 | [diff] [blame] | 53 | pkcs7_trust.o \ |
David Howells | 9f0d331 | 2014-07-01 16:40:19 +0100 | [diff] [blame] | 54 | pkcs7_verify.o |
David Howells | 2e3fadb | 2014-07-01 16:40:19 +0100 | [diff] [blame] | 55 | |
Masahiro Yamada | 4fa8bc9 | 2018-03-23 22:04:37 +0900 | [diff] [blame] | 56 | $(obj)/pkcs7_parser.o: $(obj)/pkcs7.asn1.h |
| 57 | $(obj)/pkcs7.asn1.o: $(obj)/pkcs7.asn1.c $(obj)/pkcs7.asn1.h |
David Howells | 2e3fadb | 2014-07-01 16:40:19 +0100 | [diff] [blame] | 58 | |
David Howells | 22d01af | 2014-07-01 19:06:18 +0100 | [diff] [blame] | 59 | # |
| 60 | # PKCS#7 parser testing key |
| 61 | # |
| 62 | obj-$(CONFIG_PKCS7_TEST_KEY) += pkcs7_test_key.o |
| 63 | pkcs7_test_key-y := \ |
| 64 | pkcs7_key_type.o |
David Howells | 26d1164b | 2014-07-01 16:02:51 +0100 | [diff] [blame] | 65 | |
| 66 | # |
| 67 | # Signed PE binary-wrapped key handling |
| 68 | # |
| 69 | obj-$(CONFIG_SIGNED_PE_FILE_VERIFICATION) += verify_signed_pefile.o |
| 70 | |
| 71 | verify_signed_pefile-y := \ |
David Howells | 4c0b4b1 | 2014-07-01 16:02:52 +0100 | [diff] [blame] | 72 | verify_pefile.o \ |
| 73 | mscode_parser.o \ |
Masahiro Yamada | 4fa8bc9 | 2018-03-23 22:04:37 +0900 | [diff] [blame] | 74 | mscode.asn1.o |
David Howells | 4c0b4b1 | 2014-07-01 16:02:52 +0100 | [diff] [blame] | 75 | |
Masahiro Yamada | 4fa8bc9 | 2018-03-23 22:04:37 +0900 | [diff] [blame] | 76 | $(obj)/mscode_parser.o: $(obj)/mscode.asn1.h $(obj)/mscode.asn1.h |
| 77 | $(obj)/mscode.asn1.o: $(obj)/mscode.asn1.c $(obj)/mscode.asn1.h |
Denis Kenzior | d5e7274 | 2018-10-09 17:48:17 +0100 | [diff] [blame] | 78 | |
| 79 | # |
| 80 | # TPM private key parsing |
| 81 | # |
| 82 | obj-$(CONFIG_TPM_KEY_PARSER) += tpm_key_parser.o |
| 83 | tpm_key_parser-y := \ |
| 84 | tpm.asn1.o \ |
| 85 | tpm_parser.o |
| 86 | |
| 87 | $(obj)/tpm_parser.o: $(obj)/tpm.asn1.h |
| 88 | $(obj)/tpm.asn1.o: $(obj)/tpm.asn1.c $(obj)/tpm.asn1.h |