diff mbox series

Install wpa_passphrase when not disabled

Message ID 20220421143841.20817-1-alexk@zuma.ai
State Accepted
Headers show
Series Install wpa_passphrase when not disabled | expand

Commit Message

Alex Kiernan April 21, 2022, 2:38 p.m. UTC
As part of fixing CONFIG_NO_WPA_PASSPHRASE, whilst wpa_passphrase gets
built, its not installed during `make install`.

Fixes: cb41c214b78d ("build: Re-enable options for libwpa_client.so and wpa_passphrase")
Signed-off-by: Alex Kiernan <alexk@zuma.ai>
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
---
 wpa_supplicant/Makefile | 3 +++
 1 file changed, 3 insertions(+)

Comments

Jouni Malinen April 23, 2022, 9:41 p.m. UTC | #1
On Thu, Apr 21, 2022 at 03:38:42PM +0100, Alex Kiernan wrote:
> As part of fixing CONFIG_NO_WPA_PASSPHRASE, whilst wpa_passphrase gets
> built, its not installed during `make install`.

Thanks, applied.
diff mbox series

Patch

diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
index 0bab313f2355..12787c0c7d0f 100644
--- a/wpa_supplicant/Makefile
+++ b/wpa_supplicant/Makefile
@@ -73,6 +73,9 @@  $(DESTDIR)$(BINDIR)/%: %
 
 install: $(addprefix $(DESTDIR)$(BINDIR)/,$(BINALL))
 	$(MAKE) -C ../src install
+ifndef CONFIG_NO_WPA_PASSPHRASE
+	install -D wpa_passphrase $(DESTDIR)/$(BINDIR)/wpa_passphrase
+endif
 ifdef CONFIG_BUILD_WPA_CLIENT_SO
 	install -m 0644 -D libwpa_client.so $(DESTDIR)/$(LIBDIR)/libwpa_client.so
 	install -m 0644 -D ../src/common/wpa_ctrl.h $(DESTDIR)/$(INCDIR)/wpa_ctrl.h