build: Add .config file to dependencies
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>
This commit is contained in:
parent
722138cd25
commit
6acda53222
2 changed files with 2 additions and 4 deletions
|
@ -76,10 +76,10 @@ _DIRS := $(BUILDDIR)/$(PROJ)
|
||||||
_make_dirs:
|
_make_dirs:
|
||||||
@mkdir -p $(_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) $<
|
$(Q)$(CC) -c -o $@ $(CFLAGS) $<
|
||||||
@$(E) " CC " $<
|
@$(E) " CC " $<
|
||||||
$(BUILDDIR)/$(PROJ)/%.o: %.c | _make_dirs
|
$(BUILDDIR)/$(PROJ)/%.o: %.c $(CONFIG_FILE) | _make_dirs
|
||||||
$(Q)$(CC) -c -o $@ $(CFLAGS) $<
|
$(Q)$(CC) -c -o $@ $(CFLAGS) $<
|
||||||
@$(E) " CC " $<
|
@$(E) " CC " $<
|
||||||
|
|
||||||
|
|
|
@ -1866,8 +1866,6 @@ wpa_priv: $(BCHECK) $(OBJS_priv)
|
||||||
$(Q)$(LDO) $(LDFLAGS) -o wpa_priv $(OBJS_priv) $(LIBS)
|
$(Q)$(LDO) $(LDFLAGS) -o wpa_priv $(OBJS_priv) $(LIBS)
|
||||||
@$(E) " LD " $@
|
@$(E) " LD " $@
|
||||||
|
|
||||||
$(OBJS_c) $(OBJS_t) $(OBJS_t2) $(OBJS) $(BCHECK) $(EXTRA_progs): .config
|
|
||||||
|
|
||||||
_OBJS_VAR := OBJS
|
_OBJS_VAR := OBJS
|
||||||
include ../src/objs.mk
|
include ../src/objs.mk
|
||||||
wpa_supplicant: $(BCHECK) $(OBJS) $(EXTRA_progs)
|
wpa_supplicant: $(BCHECK) $(OBJS) $(EXTRA_progs)
|
||||||
|
|
Loading…
Reference in a new issue