From: Ivan Grokhotkov Date: Sun, 29 Jul 2018 05:27:06 +0000 (+0300) Subject: soc/rtc_clk: reduce data size by disabling CSWTCH generation X-Git-Tag: v3.2-beta1~295^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e59571eece0cf232d08ca22fd3b74530f94e6038;p=esp-idf soc/rtc_clk: reduce data size by disabling CSWTCH generation Saves about 200 bytes of DRAM at the expense of 4 bytes in IRAM. --- diff --git a/components/soc/component.mk b/components/soc/component.mk index 1c0f3d4218..6dfb407f1f 100644 --- a/components/soc/component.mk +++ b/components/soc/component.mk @@ -4,3 +4,5 @@ SOC_NAME := esp32 COMPONENT_SRCDIRS := $(SOC_NAME) src/ COMPONENT_ADD_INCLUDEDIRS := $(SOC_NAME)/include include + +-include $(COMPONENT_PATH)/$(SOC_NAME)/component.mk diff --git a/components/soc/esp32/component.mk b/components/soc/esp32/component.mk new file mode 100644 index 0000000000..83a2ef722e --- /dev/null +++ b/components/soc/esp32/component.mk @@ -0,0 +1 @@ +esp32/rtc_clk.o: CFLAGS += -fno-jump-tables -fno-tree-switch-conversion