Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # Makefile for asymmetric cryptographic keys
  4. #
  5. obj-$(CONFIG_ASYMMETRIC_KEY_TYPE) += asymmetric_keys.o
  6. asymmetric_keys-y := \
  7. asymmetric_type.o \
  8. restrict.o \
  9. signature.o
  10. obj-$(CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE) += public_key.o
  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 \
  17. x509_akid.asn1.o \
  18. x509_cert_parser.o \
  19. x509_public_key.o
  20. $(obj)/x509_cert_parser.o: \
  21. $(obj)/x509.asn1.h \
  22. $(obj)/x509_akid.asn1.h
  23. $(obj)/x509.asn1.o: $(obj)/x509.asn1.c $(obj)/x509.asn1.h
  24. $(obj)/x509_akid.asn1.o: $(obj)/x509_akid.asn1.c $(obj)/x509_akid.asn1.h
  25. #
  26. # PKCS#7 message handling
  27. #
  28. obj-$(CONFIG_PKCS7_MESSAGE_PARSER) += pkcs7_message.o
  29. pkcs7_message-y := \
  30. pkcs7.asn1.o \
  31. pkcs7_parser.o \
  32. pkcs7_trust.o \
  33. pkcs7_verify.o
  34. $(obj)/pkcs7_parser.o: $(obj)/pkcs7.asn1.h
  35. $(obj)/pkcs7.asn1.o: $(obj)/pkcs7.asn1.c $(obj)/pkcs7.asn1.h
  36. #
  37. # PKCS#7 parser testing key
  38. #
  39. obj-$(CONFIG_PKCS7_TEST_KEY) += pkcs7_test_key.o
  40. pkcs7_test_key-y := \
  41. pkcs7_key_type.o
  42. #
  43. # Signed PE binary-wrapped key handling
  44. #
  45. obj-$(CONFIG_SIGNED_PE_FILE_VERIFICATION) += verify_signed_pefile.o
  46. verify_signed_pefile-y := \
  47. verify_pefile.o \
  48. mscode_parser.o \
  49. mscode.asn1.o
  50. $(obj)/mscode_parser.o: $(obj)/mscode.asn1.h $(obj)/mscode.asn1.h
  51. $(obj)/mscode.asn1.o: $(obj)/mscode.asn1.c $(obj)/mscode.asn1.h