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

@@ -8,8 +8,10 @@ COMPONENT_ADD_INCLUDEDIRS := \
include/lwip/posix \
apps/ping
ifdef CONFIG_PPP_SUPPORT
ifeq ("$(CONFIG_PPP_SUPPORT)","y")
LWIP_PPP_DIRS := netif/ppp/polarssl netif/ppp
else
LWIP_PPP_DIRS :=
endif
COMPONENT_SRCDIRS := \