wpa_supplicant
Software Development Kits > Guide to Linux Porting
Dependencies
Please ensure the following dependencies are compiled, and if required, installed into the staging directory of your build environment.
- libnl
- openssl
Configuration
The Morse Micro wpa_supplicant package provides a default configuration for a minimal release.
tar -xf wpa_supplicant-rel_1_11_3_2024_Mar_28.tar.gz
unzip wpa_supplicant-rel_1_11_3_2024_Mar_28.zip
cd wpa_supplicant-rel_1_11_3_2024_Mar_28
cp wpa_supplicant/defconfig wpa_supplicant/.config
Depending on the application, additional configuration options may need to be enabled. The options available are extensive, and out of scope for this document. Consult the .config file for more information on the available configuration options.
Compilation
Compiling wpa_supplicant requires the above mentioned dependencies be made accessible to the build. In this example, libnl and openssl were "installed" into the staging directory with make install.
The below command also assumes your CC flag is set appropriately for your target. If additional CFLAGS, LDFLAGS, or other environment variables are required for your platform, add them as required.
CFLAGS="-I $STAGING_DIR/include/" \
LDFLAGS="-L $STAGING_DIR/lib/" \
DESTDIR="$STAGING_DIR" \
BINDIR=/usr/sbin \
LIBS="-lnl-3 -lm -lpthread -lcrypto -lssl" \
make MORSE_VERSION=rel_1_11_3_2024_Mar_28 -C wpa_supplicant/
Installation
Installation with a staging directory appropriately set is as simple as invoking the make install target, following the above make flags in the compilation.
If performing a manual installation on an existing device, install the following binaries into /usr/sbin.
- wpa_supplicant_s1g
- wpa_cli_s1g
- wpa_passphrase_s1g