[PATCH v4 09/10] build: remove hostapd vs. wpa_s build checks

Johannes Berg johannes at sipsolutions.net
Wed Sep 9 03:41:17 EDT 2020


From: Johannes Berg <johannes.berg at intel.com>

These are no longer needed now. Note that this was never
actually sufficient since src/drivers/ isn't the only
thing shared, and thus a cross-build didn't work.

Signed-off-by: Johannes Berg <johannes.berg at intel.com>
---
 hostapd/Makefile        | 10 +---------
 wpa_supplicant/Makefile | 14 +++-----------
 2 files changed, 4 insertions(+), 20 deletions(-)

diff --git a/hostapd/Makefile b/hostapd/Makefile
index 4c59ca77a243..9f9dfda17245 100644
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -1264,17 +1264,9 @@ $(DESTDIR)$(BINDIR)/%: %
 
 install: $(addprefix $(DESTDIR)$(BINDIR)/,$(ALL))
 
-../src/drivers/build.hostapd:
-	@if [ -f ../src/drivers/build.wpa_supplicant ]; then \
-		$(MAKE) -C ../src/drivers clean; \
-	fi
-	@touch ../src/drivers/build.hostapd
-
-BCHECK=../src/drivers/build.hostapd
-
 $(call BUILDOBJS,OBJS)
 
-hostapd: $(BCHECK) $(OBJS)
+hostapd: $(OBJS)
 	$(Q)$(CC) $(LDFLAGS) -o hostapd $(OBJS) $(LIBS)
 	@$(E) "  LD " $@
 
diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
index 1e99ccfd94f7..9697e461914b 100644
--- a/wpa_supplicant/Makefile
+++ b/wpa_supplicant/Makefile
@@ -1852,23 +1852,15 @@ endif
 
 dynamic_eap_methods: $(EAPDYN)
 
-../src/drivers/build.wpa_supplicant:
-	@if [ -f ../src/drivers/build.hostapd ]; then \
-		$(MAKE) -C ../src/drivers clean; \
-	fi
-	@touch ../src/drivers/build.wpa_supplicant
-
-BCHECK=../src/drivers/build.wpa_supplicant
-
 $(call BUILDOBJS,OBJS_priv)
-wpa_priv: $(BCHECK) $(OBJS_priv)
+wpa_priv: $(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_c) $(OBJS_t) $(OBJS_t2) $(OBJS) $(EXTRA_progs): .config
 
 $(call BUILDOBJS,OBJS)
-wpa_supplicant: $(BCHECK) $(OBJS) $(EXTRA_progs)
+wpa_supplicant: $(OBJS) $(EXTRA_progs)
 	$(Q)$(LDO) $(LDFLAGS) -o wpa_supplicant $(OBJS) $(LIBS) $(EXTRALIBS)
 	@$(E) "  LD " $@
 
-- 
2.26.2




More information about the Hostap mailing list