1 # Copyright 2016-2017 Espressif Systems (Shanghai) PTE LTD
3 # Main bootloader Makefile.
5 # This is basically the same as a component makefile, but in the case of the bootloader
6 # we pull in bootloader-specific linker arguments.
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
12 # http://www.apache.org/licenses/LICENSE-2.0
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS,
16 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 # See the License for the specific language governing permissions and
18 # limitations under the License.
22 $(IDF_PATH
)/components
/esp32
/ld/esp32.rom.
ld \
23 $(IDF_PATH
)/components
/esp32
/ld/esp32.rom.spiram_incompatible_fns.
ld \
24 $(IDF_PATH
)/components
/esp32
/ld/esp32.peripherals.
ld \
25 esp32.bootloader.rom.
ld
27 ifndef CONFIG_SPI_FLASH_ROM_DRIVER_PATCH
28 LINKER_SCRIPTS
+= $(IDF_PATH
)/components
/esp32
/ld/esp32.rom.spiflash.
ld
31 COMPONENT_ADD_LDFLAGS
+= -L
$(COMPONENT_PATH
) $(addprefix -T
,$(LINKER_SCRIPTS
))
33 COMPONENT_ADD_LINKER_DEPS
:= $(LINKER_SCRIPTS
)