AKASHI Takahiro | cbb1007 | 2019-11-13 09:44:58 +0900 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
| 2 | # |
| 3 | # Makefile for asymmetric cryptographic keys |
| 4 | # |
| 5 | |
Philippe Reynes | ef06469 | 2022-03-28 22:56:57 +0200 | [diff] [blame] | 6 | obj-$(CONFIG_$(SPL_)ASYMMETRIC_KEY_TYPE) += asymmetric_keys.o |
AKASHI Takahiro | cbb1007 | 2019-11-13 09:44:58 +0900 | [diff] [blame] | 7 | |
| 8 | asymmetric_keys-y := asymmetric_type.o |
| 9 | |
Philippe Reynes | ef06469 | 2022-03-28 22:56:57 +0200 | [diff] [blame] | 10 | obj-$(CONFIG_$(SPL_)ASYMMETRIC_PUBLIC_KEY_SUBTYPE) += public_key.o |
AKASHI Takahiro | 4214284 | 2019-11-13 09:44:59 +0900 | [diff] [blame] | 11 | |
| 12 | # |
| 13 | # RSA public key parser |
| 14 | # |
Philippe Reynes | ef06469 | 2022-03-28 22:56:57 +0200 | [diff] [blame] | 15 | obj-$(CONFIG_$(SPL_)RSA_PUBLIC_KEY_PARSER) += rsa_public_key.o |
AKASHI Takahiro | 4214284 | 2019-11-13 09:44:59 +0900 | [diff] [blame] | 16 | rsa_public_key-y := \ |
| 17 | rsapubkey.asn1.o \ |
| 18 | rsa_helper.o |
| 19 | |
| 20 | $(obj)/rsapubkey.asn1.o: $(obj)/rsapubkey.asn1.c $(obj)/rsapubkey.asn1.h |
Philippe Reynes | ef06469 | 2022-03-28 22:56:57 +0200 | [diff] [blame] | 21 | ifdef CONFIG_SPL_BUILD |
| 22 | CFLAGS_rsapubkey.asn1.o += -I$(obj) |
| 23 | endif |
| 24 | |
AKASHI Takahiro | 4214284 | 2019-11-13 09:44:59 +0900 | [diff] [blame] | 25 | $(obj)/rsa_helper.o: $(obj)/rsapubkey.asn1.h |
Philippe Reynes | ef06469 | 2022-03-28 22:56:57 +0200 | [diff] [blame] | 26 | ifdef CONFIG_SPL_BUILD |
| 27 | CFLAGS_rsa_helper.o += -I$(obj) |
| 28 | endif |
AKASHI Takahiro | 591535c | 2019-11-13 09:45:00 +0900 | [diff] [blame] | 29 | |
| 30 | # |
| 31 | # X.509 Certificate handling |
| 32 | # |
Philippe Reynes | ef06469 | 2022-03-28 22:56:57 +0200 | [diff] [blame] | 33 | obj-$(CONFIG_$(SPL_)X509_CERTIFICATE_PARSER) += x509_key_parser.o |
AKASHI Takahiro | 591535c | 2019-11-13 09:45:00 +0900 | [diff] [blame] | 34 | x509_key_parser-y := \ |
| 35 | x509.asn1.o \ |
| 36 | x509_akid.asn1.o \ |
| 37 | x509_cert_parser.o \ |
| 38 | x509_public_key.o |
| 39 | |
| 40 | $(obj)/x509_cert_parser.o: \ |
| 41 | $(obj)/x509.asn1.h \ |
| 42 | $(obj)/x509_akid.asn1.h |
| 43 | |
| 44 | $(obj)/x509.asn1.o: $(obj)/x509.asn1.c $(obj)/x509.asn1.h |
| 45 | $(obj)/x509_akid.asn1.o: $(obj)/x509_akid.asn1.c $(obj)/x509_akid.asn1.h |
AKASHI Takahiro | 5ace6ff | 2019-11-13 09:45:01 +0900 | [diff] [blame] | 46 | |
| 47 | # |
| 48 | # PKCS#7 message handling |
| 49 | # |
Philippe Reynes | ef06469 | 2022-03-28 22:56:57 +0200 | [diff] [blame] | 50 | obj-$(CONFIG_$(SPL_)PKCS7_MESSAGE_PARSER) += pkcs7_message.o |
AKASHI Takahiro | 5ace6ff | 2019-11-13 09:45:01 +0900 | [diff] [blame] | 51 | pkcs7_message-y := \ |
| 52 | pkcs7.asn1.o \ |
| 53 | pkcs7_parser.o |
Philippe Reynes | ef06469 | 2022-03-28 22:56:57 +0200 | [diff] [blame] | 54 | obj-$(CONFIG_$(SPL_)PKCS7_VERIFY) += pkcs7_verify.o |
AKASHI Takahiro | 5ace6ff | 2019-11-13 09:45:01 +0900 | [diff] [blame] | 55 | |
| 56 | $(obj)/pkcs7_parser.o: $(obj)/pkcs7.asn1.h |
| 57 | $(obj)/pkcs7.asn1.o: $(obj)/pkcs7.asn1.c $(obj)/pkcs7.asn1.h |
AKASHI Takahiro | fea4c84 | 2022-07-05 14:48:11 +0900 | [diff] [blame] | 58 | |
| 59 | # |
| 60 | # Signed PE binary-wrapped key handling |
| 61 | # |
| 62 | obj-$(CONFIG_$(SPL_)MSCODE_PARSER) += mscode.o |
| 63 | |
| 64 | mscode-y := \ |
| 65 | mscode_parser.o \ |
| 66 | mscode.asn1.o |
| 67 | |
| 68 | $(obj)/mscode_parser.o: $(obj)/mscode.asn1.h $(obj)/mscode.asn1.h |
| 69 | $(obj)/mscode.asn1.o: $(obj)/mscode.asn1.c $(obj)/mscode.asn1.h |