Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #
  2. # Makefile for asymmetric cryptographic keys
  3. #
  4. obj-$(CONFIG_ASYMMETRIC_KEY_TYPE) += asymmetric_keys.o
  5. asymmetric_keys-y := \
  6. asymmetric_type.o \
  7. restrict.o \
  8. signature.o
  9. obj-$(CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE) += public_key.o
  10. #
  11. # X.509 Certificate handling
  12. #
  13. obj-$(CONFIG_X509_CERTIFICATE_PARSER) += x509_key_parser.o
  14. x509_key_parser-y := \
  15. x509-asn1.o \
  16. x509_akid-asn1.o \
  17. x509_cert_parser.o \
  18. x509_public_key.o
  19. $(obj)/x509_cert_parser.o: \
  20. $(obj)/x509-asn1.h \
  21. $(obj)/x509_akid-asn1.h
  22. $(obj)/x509-asn1.o: $(obj)/x509-asn1.c $(obj)/x509-asn1.h
  23. $(obj)/x509_akid-asn1.o: $(obj)/x509_akid-asn1.c $(obj)/x509_akid-asn1.h
  24. clean-files += x509-asn1.c x509-asn1.h
  25. clean-files += x509_akid-asn1.c x509_akid-asn1.h
  26. #
  27. # PKCS#7 message handling
  28. #
  29. obj-$(CONFIG_PKCS7_MESSAGE_PARSER) += pkcs7_message.o
  30. pkcs7_message-y := \
  31. pkcs7-asn1.o \
  32. pkcs7_parser.o \
  33. pkcs7_trust.o \
  34. pkcs7_verify.o
  35. $(obj)/pkcs7_parser.o: $(obj)/pkcs7-asn1.h
  36. $(obj)/pkcs7-asn1.o: $(obj)/pkcs7-asn1.c $(obj)/pkcs7-asn1.h
  37. clean-files += pkcs7-asn1.c pkcs7-asn1.h
  38. #
  39. # PKCS#7 parser testing key
  40. #
  41. obj-$(CONFIG_PKCS7_TEST_KEY) += pkcs7_test_key.o
  42. pkcs7_test_key-y := \
  43. pkcs7_key_type.o
  44. #
  45. # Signed PE binary-wrapped key handling
  46. #
  47. obj-$(CONFIG_SIGNED_PE_FILE_VERIFICATION) += verify_signed_pefile.o
  48. verify_signed_pefile-y := \
  49. verify_pefile.o \
  50. mscode_parser.o \
  51. mscode-asn1.o
  52. $(obj)/mscode_parser.o: $(obj)/mscode-asn1.h $(obj)/mscode-asn1.h
  53. $(obj)/mscode-asn1.o: $(obj)/mscode-asn1.c $(obj)/mscode-asn1.h
  54. clean-files += mscode-asn1.c mscode-asn1.h