component.mk 646 B

12345678910111213141516171819202122
  1. #
  2. # Component Makefile
  3. #
  4. ifdef CONFIG_IDF_TARGET_ESP32
  5. COMPONENT_SRCDIRS := src
  6. COMPONENT_PRIV_INCLUDEDIRS := private_include
  7. ifdef CONFIG_ESP_TIMER_IMPL_FRC2
  8. # FRC2(legacy) timer is suppoted in esp32
  9. COMPONENT_OBJEXCLUDE := src/esp_timer_impl_lac.o
  10. endif
  11. ifdef CONFIG_ESP_TIMER_IMPL_TG0_LAC
  12. # TG0_LAC timer is suppoted in esp32
  13. COMPONENT_OBJEXCLUDE := src/esp_timer_impl_frc_legacy.o
  14. endif
  15. COMPONENT_OBJEXCLUDE += src/esp_timer_impl_systimer.o
  16. else
  17. $(error esp_timer is only supported by the Make build system for esp32 chip. For other chips, use the Cmake build system)
  18. endif