freebsd-dev/usr.sbin/wpa
Cy Schubert 25ecdc7d52 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
2021-05-31 19:39:16 -07:00
..
hostapd wpa: Restructure wpa build 2021-05-31 19:39:16 -07:00
hostapd_cli wpa: Restructure wpa build 2021-05-31 19:39:16 -07:00
src wpa: Restructure wpa build 2021-05-31 19:39:16 -07:00
wpa_cli wpa: Restructure wpa build 2021-05-31 19:39:16 -07:00
wpa_passphrase wpa: Restructure wpa build 2021-05-31 19:39:16 -07:00
wpa_priv wpa: Restructure wpa build 2021-05-31 19:39:16 -07:00
wpa_supplicant wpa: Restructure wpa build 2021-05-31 19:39:16 -07:00
Makefile wpa: Restructure wpa build 2021-05-31 19:39:16 -07:00
Makefile.crypto wpa: Restructure wpa build 2021-05-31 19:39:16 -07:00
Makefile.depend.options Add Makefile.depend.options 2019-12-11 17:37:37 +00:00
Makefile.inc wpa: Restructure wpa build 2021-05-31 19:39:16 -07:00