Add --warn-undefined-variables to MAKEFLAGS

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
This commit is contained in:
Deomid Ryabkov
2016-12-03 22:11:22 +00:00
committed by Angus Gratton
parent 11a87ca811
commit 9903ea1c11
21 changed files with 89 additions and 49 deletions

View File

@@ -846,7 +846,7 @@ config ESP32_WIFI_NVS_ENABLED
endmenu # Wi-Fi
menu Phy
menu PHY
config ESP32_PHY_CALIBRATION_AND_DATA_STORAGE
bool "Do phy calibration and store calibration data in NVS"

View File

@@ -3,8 +3,9 @@
#
COMPONENT_SRCDIRS := . hwcrypto
ifndef CONFIG_NO_BLOBS
LIBS := core rtc net80211 pp wpa smartconfig coexist wps wpa2 phy
LIBS ?=
ifneq ("$(CONFIG_NO_BLOBS)","y")
LIBS += core rtc net80211 pp wpa smartconfig coexist wps wpa2 phy
endif
#Linker scripts used to link the final application.
@@ -22,7 +23,7 @@ ifeq ("$(CONFIG_NEWLIB_NANO_FORMAT)","y")
LINKER_SCRIPTS += esp32.rom.nanofmt.ld
endif
ifndef CONFIG_SPI_FLASH_ROM_DRIVER_PATCH
ifneq ("$(CONFIG_SPI_FLASH_ROM_DRIVER_PATCH)","y")
LINKER_SCRIPTS += esp32.rom.spiflash.ld
endif