1# Enable psram cache bug workaround in compiler if selected 2 3ifdef CONFIG_SPIRAM_CACHE_WORKAROUND 4SPIRAM_CACHE_WORKAROUND_FLAGS = -mfix-esp32-psram-cache-issue 5 6ifdef CONFIG_SPIRAM_CACHE_WORKAROUND_STRATEGY_DUPLDST 7SPIRAM_CACHE_WORKAROUND_FLAGS += -mfix-esp32-psram-cache-strategy=dupldst 8endif 9ifdef CONFIG_SPIRAM_CACHE_WORKAROUND_STRATEGY_MEMW 10SPIRAM_CACHE_WORKAROUND_FLAGS += -mfix-esp32-psram-cache-strategy=memw 11endif 12ifdef CONFIG_SPIRAM_CACHE_WORKAROUND_STRATEGY_NOPS 13SPIRAM_CACHE_WORKAROUND_FLAGS += -mfix-esp32-psram-cache-strategy=nops 14endif 15 16CFLAGS+=$(SPIRAM_CACHE_WORKAROUND_FLAGS) 17CXXFLAGS+=$(SPIRAM_CACHE_WORKAROUND_FLAGS) 18LDFLAGS+=$(SPIRAM_CACHE_WORKAROUND_FLAGS) 19endif 20