mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-28 21:29:50 +01:00
Fix warnings where undefined vars are used. Make Kconfig emit "FOO=" for unset bool options To ensure make variables are always defined, even if empty. When writing auto.conf, include symbols disabled by dependency to make sure all make variables are always defined. Fixes espressif/esp-idf#137 Cherry-picked from https://github.com/espressif/esp-idf/pull/138
22 lines
678 B
Makefile
22 lines
678 B
Makefile
#
|
|
# Main bootloader Makefile.
|
|
#
|
|
# This is basically the same as a component makefile, but in the case of the bootloader
|
|
# we pull in bootloader-specific linker arguments.
|
|
#
|
|
|
|
LINKER_SCRIPTS := \
|
|
esp32.bootloader.ld \
|
|
$(IDF_PATH)/components/esp32/ld/esp32.rom.ld \
|
|
$(IDF_PATH)/components/esp32/ld/esp32.rom.spiram_incompatible_fns.ld \
|
|
$(IDF_PATH)/components/esp32/ld/esp32.peripherals.ld \
|
|
esp32.bootloader.rom.ld
|
|
|
|
ifneq ("$(CONFIG_SPI_FLASH_ROM_DRIVER_PATCH)","y")
|
|
LINKER_SCRIPTS += $(IDF_PATH)/components/esp32/ld/esp32.rom.spiflash.ld
|
|
endif
|
|
|
|
COMPONENT_ADD_LDFLAGS += -L $(COMPONENT_PATH) $(addprefix -T ,$(LINKER_SCRIPTS))
|
|
|
|
COMPONENT_ADD_LINKER_DEPS := $(LINKER_SCRIPTS)
|