component.mk 589 B

1234567891011121314
  1. #
  2. # Main Makefile. This is basically the same as a component makefile.
  3. #
  4. ifdef CONFIG_EXAMPLE_EMBEDDED_CERTS
  5. # Certificate files. certificate.pem.crt & private.pem.key must be downloaded
  6. # from AWS, see README for details.
  7. COMPONENT_EMBED_TXTFILES := certs/aws-root-ca.pem certs/certificate.pem.crt certs/private.pem.key
  8. # Print an error if the certificate/key files are missing
  9. $(COMPONENT_PATH)/certs/certificate.pem.crt $(COMPONENT_PATH)/certs/private.pem.key:
  10. @echo "Missing PEM file $@. This file identifies the ESP32 to AWS for the example, see README for details."
  11. exit 1
  12. endif