hostapd
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 hostapd package provides a default configuration for a minimal release.
tar -xf hostapd-rel_1_11_3_2024_Mar_28.tar.gz
unzip hostapd-rel_1_11_3_2024_Mar_28.zip
cd hostapd-rel_1_11_3_2024_Mar_28
cp hostapd/defconfig hostapd/.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 hostapd 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 hostapd/
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:
- hostapd_s1g
- hostapd_cli_s1g