From 74be271f62acfcad2cf645690678c898664da255 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Mon, 19 Aug 2019 11:42:39 +1000 Subject: [PATCH] kconfig: Add -MP option so .d files include empty targets Prevents make-level errors when switching IDF versions, as headers may be removed. Similar to some mentioned here: https://github.com/espressif/esp-idf/issues/712 --- tools/kconfig/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kconfig/Makefile b/tools/kconfig/Makefile index b91cbc282..9fc367b45 100644 --- a/tools/kconfig/Makefile +++ b/tools/kconfig/Makefile @@ -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}"