diff mbox series

[v3,8/9] build: add .config file to dependencies

Message ID 1598866005-Icb541578dbe07c07f8e53407e92e0ce272c94e29@changeid
State Superseded
Headers show
Series build improvements | expand

Commit Message

Johannes Berg Aug. 31, 2020, 9:28 a.m. UTC
From: Johannes Berg <johannes.berg@intel.com>

If the .config file changes, basically everything needs to be
rebuilt since we don't try to detect which symbols changed or
such. Now that the .config file handling is in the common
build system, make everything depend on it if there's one.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 src/build.rules | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/src/build.rules b/src/build.rules
index d5ce75900411..92d26d326aa1 100644
--- a/src/build.rules
+++ b/src/build.rules
@@ -75,10 +75,10 @@  $(BUILDDIR):
 _make_dirs:
 	@mkdir -p $(_DIRS)
 
-$(BUILDDIR)/$(PROJ)/src/%.o: $(ROOTDIR)src/%.c | _make_dirs
+$(BUILDDIR)/$(PROJ)/src/%.o: $(ROOTDIR)src/%.c $(CONFIG_FILE) | _make_dirs
 	$(Q)$(CC) -c -o $@ $(CFLAGS) $<
 	@$(E) "  CC " $<
-$(BUILDDIR)/$(PROJ)/%.o: %.c | _make_dirs
+$(BUILDDIR)/$(PROJ)/%.o: %.c $(CONFIG_FILE) | _make_dirs
 	$(Q)$(CC) -c -o $@ $(CFLAGS) $<
 	@$(E) "  CC " $<