From c1b06bf0a2596bbfbddb4ecf9b0eb275d5e0cc45 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Mon, 9 Jan 2017 03:08:24 +0800 Subject: [PATCH] bootloader: export ets_update_cpu_frequency --- components/bootloader/src/main/component.mk | 5 ++++- components/bootloader/src/main/esp32.bootloader.rom.ld | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 components/bootloader/src/main/esp32.bootloader.rom.ld diff --git a/components/bootloader/src/main/component.mk b/components/bootloader/src/main/component.mk index 9bcc5352a0..73cd9287df 100644 --- a/components/bootloader/src/main/component.mk +++ b/components/bootloader/src/main/component.mk @@ -5,7 +5,10 @@ # we pull in bootloader-specific linker arguments. # -LINKER_SCRIPTS := esp32.bootloader.ld $(IDF_PATH)/components/esp32/ld/esp32.rom.ld +LINKER_SCRIPTS := \ + esp32.bootloader.ld \ + $(IDF_PATH)/components/esp32/ld/esp32.rom.ld \ + esp32.bootloader.rom.ld COMPONENT_ADD_LDFLAGS := -L $(COMPONENT_PATH) -lmain $(addprefix -T ,$(LINKER_SCRIPTS)) diff --git a/components/bootloader/src/main/esp32.bootloader.rom.ld b/components/bootloader/src/main/esp32.bootloader.rom.ld new file mode 100644 index 0000000000..70f83bdf54 --- /dev/null +++ b/components/bootloader/src/main/esp32.bootloader.rom.ld @@ -0,0 +1 @@ +PROVIDE ( ets_update_cpu_frequency = 0x40008550 ); /* Updates g_ticks_per_us on the current CPU only; not on the other core */