summaryrefslogtreecommitdiffstats
path: root/rules/wpa_supplicant.make
diff options
context:
space:
mode:
authorJan Luebbe <jlu@pengutronix.de>2012-02-16 18:32:44 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2012-03-08 13:42:53 +0100
commit7f600ad171e70ed0250369d21a31ddafed7accca (patch)
tree0f96aee395225fe8e29697fb572468613240556d /rules/wpa_supplicant.make
parent19cf712bba586e7d737d15b2427a9d5de1aca6f0 (diff)
downloadptxdist-77a1e082029ab50c46e1cc51ef5436d912e9e27e.tar.gz
ptxdist-77a1e082029ab50c46e1cc51ef5436d912e9e27e.tar.xz
wpa_supplicant: run 'make clean' in prepare stageptxdist-2012.03.0
This is needed because wpa_supplicant's build system does not recognize configuration changes. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/wpa_supplicant.make')
-rw-r--r--rules/wpa_supplicant.make4
1 files changed, 4 insertions, 0 deletions
diff --git a/rules/wpa_supplicant.make b/rules/wpa_supplicant.make
index 93bac9544..03a043ad9 100644
--- a/rules/wpa_supplicant.make
+++ b/rules/wpa_supplicant.make
@@ -54,6 +54,10 @@ WPA_SUPPLICANT_AUTOCONF := $(CROSS_AUTOCONF_USR)
$(STATEDIR)/wpa_supplicant.prepare:
@$(call targetinfo)
+# # run 'make clean' as wpa_supplicant's build system does not recognize config changes
+ @-cd $(WPA_SUPPLICANT_DIR)/$(WPA_SUPPLICANT_SUBDIR) && \
+ $(WPA_SUPPLICANT_ENV) $(WPA_SUPPLICANT_PATH) $(MAKE) clean
+
@echo "CC=$(CROSS_CC)" > $(WPA_SUPPLICANT_CONFIG) && \
echo "CFLAGS += -I$(PTXDIST_SYSROOT_TARGET)/include" >> $(WPA_SUPPLICANT_CONFIG) && \
echo "CFLAGS += -I$(PTXDIST_SYSROOT_TARGET)/usr/include" >> $(WPA_SUPPLICANT_CONFIG) && \