From: Angus Gratton Date: Mon, 19 Aug 2019 01:42:39 +0000 (+1000) Subject: kconfig: Add -MP option so .d files include empty targets X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a3adc6c20230d1b75aea6d62d698003d4c83688b;p=esp-idf 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 --- diff --git a/tools/kconfig/Makefile b/tools/kconfig/Makefile index 106ffb6b40..232aabd401 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 %.o: $(SRCDIR)/%.c $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@