Merge branch 'bugfix/fix_compile_warning' into 'master'

make: fix compiling warning

See merge request sdk/ESP8266_RTOS_SDK!1069
This commit is contained in:
Dong Heng
2019-08-29 10:10:17 +08:00
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

View File

@ -5,5 +5,8 @@
COMPONENT_ADD_INCLUDEDIRS := include
COMPONENT_SRCDIRS := src
# just to remove make compiling warning
src/stack_check.o: <:=
# disable stack protection in files which are involved in initialization of that feature
src/stack_check.o: CFLAGS := $(filter-out -fstack-protector%, $(CFLAGS))

View File

@ -165,7 +165,7 @@ check-lxdialog := $(SRCDIR)/lxdialog/check-lxdialog.sh
# Use recursively expanded variables so we do not call gcc unless
# we really need to do so. (Do not call gcc as part of make mrproper)
CFLAGS += $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags) \
-DLOCALE -MMD
-DLOCALE -MMD -MP
CFLAGS += -I "." -I "${SRCDIR}"