fix(make): fix compiling warning

1. add "-MP" prevents make-level errors when switching IDF versions, as headers may be removed
2. add macro "IS_BOOTLOADER_BUILD" to disable link file generation when compiling bootloader
3. add "<:" to avoid makefile to search it undefined variable
This commit is contained in:
dongheng
2019-08-26 16:09:26 +08:00
parent 0193d06019
commit 97cd6a594b
3 changed files with 6 additions and 1 deletions

View File

@ -64,12 +64,14 @@ endif # CONFIG_ESP_PHY_INIT_DATA_IN_PARTITION
endif
ifndef IS_BOOTLOADER_BUILD
LINKER_SCRIPT_TEMPLATE := $(COMPONENT_PATH)/ld/esp8266.project.ld.in
LINKER_SCRIPT_OUTPUT_DIR := $(abspath $(BUILD_DIR_BASE)/esp8266)
# Target to generate linker script generator from fragments presented by each of
# the components
$(eval $(call ldgen_process_template,$(LINKER_SCRIPT_TEMPLATE),$(LINKER_SCRIPT_OUTPUT_DIR)/esp8266.project.ld))
endif
# global CFLAGS for ESP8266
CFLAGS += -DICACHE_FLASH