]> granicus.if.org Git - esp-idf/commitdiff
kconfig: Add -MP option so .d files include empty targets
authorAngus Gratton <angus@espressif.com>
Mon, 19 Aug 2019 01:42:39 +0000 (11:42 +1000)
committerAngus Gratton <gus@projectgus.com>
Wed, 21 Aug 2019 08:37:42 +0000 (18:37 +1000)
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

index 106ffb6b40e55eba790847eb3acb2707c5117b3a..232aabd4019b8d8b455c9db5bbb1e4a2fe9f9f19 100644 (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
 
 %.o: $(SRCDIR)/%.c
        $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@