Makefile.projbuild 756 B

1234567891011121314151617
  1. # Enable psram cache bug workaround in compiler if selected
  2. ifdef CONFIG_SPIRAM_CACHE_WORKAROUND
  3. CFLAGS+=-mfix-esp32-psram-cache-issue
  4. CXXFLAGS+=-mfix-esp32-psram-cache-issue
  5. LDFLAGS+=-mfix-esp32-psram-cache-issue
  6. endif
  7. # Enable dynamic esp_timer overflow value if building unit tests
  8. ifneq ("$(filter esp32,$(TEST_COMPONENTS_LIST))","")
  9. CPPFLAGS += -DESP_TIMER_DYNAMIC_OVERFLOW_VAL
  10. endif
  11. ESP32_LINKER_SCRIPT_TEMPLATE := $(COMPONENT_PATH)/ld/esp32.project.ld.in
  12. ESP32_LINKER_SCRIPT_OUTPUT_DIR := $(realpath $(BUILD_DIR_BASE)/esp32)
  13. # Target to generate linker script generator from fragments presented by each of
  14. # the components
  15. $(eval $(call ldgen_process_template, $(ESP32_LINKER_SCRIPT_TEMPLATE), $(ESP32_LINKER_SCRIPT_OUTPUT_DIR)/esp32.project.ld))