component.mk 954 B

12345678910111213141516171819202122
  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. ifndef IDF_CI_BUILD
  9. # Print an error if the certificate/key files are missing
  10. $(COMPONENT_PATH)/certs/certificate.pem.crt $(COMPONENT_PATH)/certs/private.pem.key:
  11. @echo "Missing PEM file $@. This file identifies the ESP32 to AWS for the example, see README for details."
  12. exit 1
  13. else # IDF_CI_BUILD
  14. # this case is for the internal Continuous Integration build which
  15. # compiles all examples. Add some dummy certs so the example can
  16. # compile (even though it won't work)
  17. $(COMPONENT_PATH)/certs/certificate.pem.crt $(COMPONENT_PATH)/certs/private.pem.key:
  18. echo "Dummy certificate data for continuous integration" > $@
  19. endif
  20. endif