2016-08-17 15:08:22 +00:00
|
|
|
#
|
2016-11-10 02:20:55 +00:00
|
|
|
# Main bootloader Makefile.
|
2016-08-17 15:08:22 +00:00
|
|
|
#
|
2016-11-10 02:20:55 +00:00
|
|
|
# This is basically the same as a component makefile, but in the case of the bootloader
|
|
|
|
# we pull in bootloader-specific linker arguments.
|
2016-08-17 15:08:22 +00:00
|
|
|
#
|
|
|
|
|
2017-01-08 19:08:24 +00:00
|
|
|
LINKER_SCRIPTS := \
|
|
|
|
esp32.bootloader.ld \
|
|
|
|
$(IDF_PATH)/components/esp32/ld/esp32.rom.ld \
|
2017-01-30 03:29:50 +00:00
|
|
|
$(IDF_PATH)/components/esp32/ld/esp32.peripherals.ld \
|
2017-01-08 19:08:24 +00:00
|
|
|
esp32.bootloader.rom.ld
|
2016-08-17 15:08:22 +00:00
|
|
|
|
2016-12-12 04:54:30 +00:00
|
|
|
COMPONENT_ADD_LDFLAGS := -L $(COMPONENT_PATH) -lmain $(addprefix -T ,$(LINKER_SCRIPTS))
|
|
|
|
|
|
|
|
COMPONENT_ADD_LINKER_DEPS := $(LINKER_SCRIPTS)
|
2017-01-04 04:36:40 +00:00
|
|
|
|
|
|
|
# following lines are a workaround to link librtc into the
|
|
|
|
# bootloader, until clock setting code is in a source-based esp-idf
|
|
|
|
# component. See also rtc_printf() in bootloader_start.c
|
2017-02-06 06:12:16 +00:00
|
|
|
#
|
|
|
|
# See also matching COMPONENT_SUBMODULES line in Makefile.projbuild
|
2017-02-16 11:05:07 +00:00
|
|
|
COMPONENT_ADD_LDFLAGS += -L $(IDF_PATH)/components/esp32/lib/ -lrtc_clk -lrtc
|
2017-01-04 04:36:40 +00:00
|
|
|
COMPONENT_EXTRA_INCLUDES += $(IDF_PATH)/components/esp32/
|