Repository navigation
forked from ioraff/eiwd
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
eiwd
====
A D-Bus-free fork of iwd originally patched by dylanaraps. The supported
build uses a plain Makefile and config.mk. No AutoHell, pkg-config, Python,
or readline is needed to build the daemon. This should make it easier to
compile on systems which lack these utilities (like mine).
This project differs from the previous eiwd in that it aims to (eventually)
recover the lost iwctl feature. At the same time, still being compatible
with upstream.
Requirements
------------
Linux, Clang/LLVM (or a compatible C compiler), make, ar, and Linux UAPI
headers are required. The libc baseline is musl with explicit_bzero and
reallocarray, or glibc 2.26 or newer. The existing iwd/ELL code uses Linux
APIs and compiler extensions; this build does not make it POSIX-only.
ELL is an existing project dependency, pinned by the ell-src submodule.
Initialize it once after cloning:
git submodule update --init ell-src
The build compiles ELL directly into a private static archive. It never
runs ELL's configure script or downloads dependencies. An unpacked copy
of ELL can also be supplied with ELL_DIR=/path/to/ell-source.
Build and install
-----------------
make
make DESTDIR=/path/to/package install
The default target builds src/iwd. Edit config.mk for paths and tools,
or override variables on the command line:
make CC=clang CFLAGS='-O2 -g'
make PREFIX=/ DESTDIR=/path/to/package install
PREFIX=/ installs the daemon as /bin/iwd, matching MICE's layout. The
normal prefix is /usr/local. CONFIGDIR defaults to /etc/iwd and
STORAGEDIR to /var/lib/iwd. DESTDIR is only a staging prefix; it is never
compiled into runtime paths. No init service or configuration file is
installed automatically. Run iwd in the foreground from the init service.
CFLAGS, CPPFLAGS and LDFLAGS are inherited from the environment. CC, AR,
OPT, LDLIBS and all paths can be overridden on the command line. Run
make clean before changing compiler, flags, libc, or command-line runtime
paths; Makefile and config.mk edits already invalidate the objects.
For musllvm, add its bin directory to PATH and use the prefixed tools:
make clean
make CC=x86_64-linux-musl-clang AR=x86_64-linux-musl-ar \
LDFLAGS=-static PREFIX=/ DESTDIR=/path/to/package install
The 2026-10-19 musllvm release was used to verify the static x86_64 build:
https://github.com/cowmonk/musllvm/releases/tag/musllvm-2026-10-19-ec3a09b6c0fc
Additional targets
------------------
make monitor build monitor/iwmon
make install-monitor install iwmon
make check build and run the upstream daemon unit tests
make man render manual pages (requires rst2man)
make install-man install the manual pages
make uninstall remove installed binaries and manuals
make clean remove build outputs and generated test fixtures
The unit tests additionally require OpenSSL's command-line tool to create
EAPoL certificate fixtures. Some tests require kernel crypto or keyring
features; they report skips where supported. Tests run from this source
directory. The Wi-Fi integration suite in autotests/ still uses D-Bus and
has not been ported.
EAP-SIM/AKA tests assume HMAC-SHA1 and HMAC-SHA256 are available through
AF_ALG; they fail rather than skip when those algorithms are missing.
The check runner validates TAP output as well as process exit status.
Current control support
-----------------------
Read ctl/README.
Upstream updates
----------------
Makefile.am and configure.ac remain as upstream import metadata, outside
the supported build. Keeping their paths allows upstream source-list and
version changes to merge normally. Do NOT run autoreconf or configure;
they would overwrite the maintained Makefile and config.h.
After merging an upstream release, refresh the checked-in manifest:
sh scripts/import-upstream <upstream-release-tag-or-commit>
git diff -- mk/sources.mk
make clean
make
make check
The importer reads that Git revision's Makefile.am and configure.ac,
updates VERSION and the daemon, monitor, ELL, and unit-test source lists,
and stops on unsupported references or changed assignment forms. It does not merge
code, fetch anything, or change the ELL pin. Review new source files,
configuration macros, linker requirements, and internal API changes when
updating; the importer cannot resolve those changes automatically.
Update ELL separately to a reviewed commit, initialize the pinned source,
and rebuild. Neither a normal build nor a version bump tracks a moving
ELL branch automatically. Keep the original iwd release number in the
manifest so iwd --version identifies the upstream base.
The next client milestone is a separate local control interface and
client for device status, scanning, and connecting. Upstream's D-Bus
client sources remain available for reference.
Upstream iwd documentation is in doc/ and the manual-page sources.
License and authorship information is in COPYING and AUTHORS.