aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/wpa/wpa_passphrase
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2021-05-20 21:28:17 +0000
committerCy Schubert <cy@FreeBSD.org>2021-06-01 02:39:16 +0000
commit25ecdc7d52770caf1c9b44b5ec11f468f6b636f3 (patch)
treead1e2ed8600b92f9fea291a39fb79487715b7cb6 /usr.sbin/wpa/wpa_passphrase
parentf4aa64528e4557cd18cdb376b0f88f4a34d69912 (diff)
downloadsrc-25ecdc7d52770caf1c9b44b5ec11f468f6b636f3.tar.gz
src-25ecdc7d52770caf1c9b44b5ec11f468f6b636f3.zip
wpa: Restructure wpa build
The current WPA build assumes a flat namespace. However the latest sources from w1.fi now have a duplicate config.c, in two separate subdirectories. The flat namespace will overwrite config.o with the output from the most recently modified config.c, of which there are two of them. This commit resolves this problem by building each component in wpa's src subdirectory tree into its own .a archive, just as the w1.fi upstream build as used by the port does. The advantages of this approach are: 1. Duplicate source file names, i.e. config.c in the wpa_supplicant direcory and another config.c in src/utils in the next wpa will result in both compiles writing to the same .o file. 2. This restructure simplifies maintanence. A develper needs only to add new files as identified by git status in the vendor branch to the appropriate Makefile within the usr.sbin/wpa tree. This also reduces time required to prepare a new import and should reduce error. 3. The new wpa build structure more closely represents the build as performed by the upstream tarball. This is in preparation for the next wpa update from w1.fi. Reviewed by: philip Tested by: philip MFC after: 2 months Differential Revision: https://reviews.freebsd.org/D30372
Diffstat (limited to 'usr.sbin/wpa/wpa_passphrase')
-rw-r--r--usr.sbin/wpa/wpa_passphrase/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/wpa/wpa_passphrase/Makefile b/usr.sbin/wpa/wpa_passphrase/Makefile
index 9a929c07b6fc..0dcb3e69da98 100644
--- a/usr.sbin/wpa/wpa_passphrase/Makefile
+++ b/usr.sbin/wpa/wpa_passphrase/Makefile
@@ -6,13 +6,14 @@
PACKAGE= wpa
PROG= wpa_passphrase
-SRCS= common.c md5-internal.c md5.c os_unix.c sha1-internal.c sha1-pbkdf2.c \
- sha1.c wpa_passphrase.c
+SRCS= wpa_passphrase.c
CFLAGS+= -DCONFIG_CRYPTO_INTERNAL -DINTERNAL_SHA1 -DINTERNAL_MD5
-LIBADD+= util
+LIBADD+= util wpacrypto wpautils
MAN= wpa_passphrase.8
+.include "../Makefile.crypto"
+
.include <bsd.prog.mk>