component.mk 782 B

12345678910111213141516171819202122232425
  1. #
  2. # ULP support additions to component makefile.
  3. #
  4. # 1. ULP_APP_NAME must be unique (if multiple components use ULP)
  5. # Default value, override if necessary:
  6. ULP_APP_NAME ?= ulp_$(COMPONENT_NAME)
  7. #
  8. # 2. Specify all assembly source files here.
  9. # Files should be placed into a separate directory (in this case, ulp/),
  10. # which should not be added to COMPONENT_SRCDIRS.
  11. ULP_S_SOURCES = $(addprefix $(COMPONENT_PATH)/ulp/, \
  12. pulse_cnt.S wake_up.S\
  13. )
  14. #
  15. # 3. List all the component object files which include automatically
  16. # generated ULP export file, $(ULP_APP_NAME).h:
  17. ULP_EXP_DEP_OBJECTS := ulp_example_main.o
  18. #
  19. # 4. Include build rules for ULP program
  20. include $(IDF_PATH)/components/ulp/component_ulp_common.mk
  21. #
  22. # End of ULP support additions to component makefile.
  23. #