]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
build: Add .config file to dependencies
authorJohannes Berg <johannes.berg@intel.com>
Fri, 18 Sep 2020 09:49:54 +0000 (11:49 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 10 Oct 2020 09:52:58 +0000 (12:52 +0300)
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
wpa_supplicant/Makefile

index 4b04eca58cf6e53106db6e8bb258fcb82de3d95d..bdcae65519cfbfa2f4eb080e563d77fa489367fe 100644 (file)
@@ -76,10 +76,10 @@ _DIRS := $(BUILDDIR)/$(PROJ)
 _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 " $<
 
index 9f81addd8228b286190967b2701981054c3de5e3..c858f43b590967bfb38219edddfe88b6780dda66 100644 (file)
@@ -1866,8 +1866,6 @@ wpa_priv: $(BCHECK) $(OBJS_priv)
        $(Q)$(LDO) $(LDFLAGS) -o wpa_priv $(OBJS_priv) $(LIBS)
        @$(E) "  LD " $@
 
-$(OBJS_c) $(OBJS_t) $(OBJS_t2) $(OBJS) $(BCHECK) $(EXTRA_progs): .config
-
 _OBJS_VAR := OBJS
 include ../src/objs.mk
 wpa_supplicant: $(BCHECK) $(OBJS) $(EXTRA_progs)