Makefile 1.7 KB

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