2017-07-20 08:26:35 +00:00
|
|
|
# Enable psram cache bug workaround in compiler if selected
|
|
|
|
ifdef CONFIG_SPIRAM_CACHE_WORKAROUND
|
|
|
|
CFLAGS+=-mfix-esp32-psram-cache-issue
|
|
|
|
CXXFLAGS+=-mfix-esp32-psram-cache-issue
|
2019-07-28 05:48:21 +00:00
|
|
|
LDFLAGS+=-mfix-esp32-psram-cache-issue
|
2017-07-20 08:26:35 +00:00
|
|
|
endif
|
|
|
|
|
2019-06-12 03:52:23 +00:00
|
|
|
# Enable dynamic esp_timer overflow value if building unit tests
|
2018-11-19 16:49:38 +00:00
|
|
|
ifneq ("$(filter esp32,$(TEST_COMPONENTS_LIST))","")
|
2018-05-23 14:39:49 +00:00
|
|
|
CPPFLAGS += -DESP_TIMER_DYNAMIC_OVERFLOW_VAL
|
|
|
|
endif
|
2019-03-13 22:59:31 +00:00
|
|
|
ESP32_LINKER_SCRIPT_TEMPLATE := $(COMPONENT_PATH)/ld/esp32.project.ld.in
|
2018-04-18 02:57:45 +00:00
|
|
|
ESP32_LINKER_SCRIPT_OUTPUT_DIR := $(abspath $(BUILD_DIR_BASE)/esp32)
|
|
|
|
|
|
|
|
# Target to generate linker script generator from fragments presented by each of
|
|
|
|
# the components
|
2019-03-13 22:59:31 +00:00
|
|
|
$(eval $(call ldgen_process_template, $(ESP32_LINKER_SCRIPT_TEMPLATE), $(ESP32_LINKER_SCRIPT_OUTPUT_DIR)/esp32.project.ld))
|