From e59571eece0cf232d08ca22fd3b74530f94e6038 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Sun, 29 Jul 2018 08:27:06 +0300 Subject: [PATCH] soc/rtc_clk: reduce data size by disabling CSWTCH generation Saves about 200 bytes of DRAM at the expense of 4 bytes in IRAM. --- components/soc/component.mk | 2 ++ components/soc/esp32/component.mk | 1 + 2 files changed, 3 insertions(+) create mode 100644 components/soc/esp32/component.mk 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