README (5023B)
1 eiwd 2 ==== 3 4 A D-Bus-free fork of iwd originally patched by dylanaraps. The supported 5 build uses a plain Makefile and config.mk. No AutoHell, pkg-config, Python, 6 or readline is needed to build the daemon. This should make it easier to 7 compile on systems which lack these utilities (like mine). 8 9 This project differs from the previous eiwd in that it aims to (eventually) 10 recover the lost iwctl feature. At the same time, still being compatible 11 with upstream. 12 13 Requirements 14 ------------ 15 16 Linux, Clang/LLVM (or a compatible C compiler), make, ar, and Linux UAPI 17 headers are required. The libc baseline is musl with explicit_bzero and 18 reallocarray, or glibc 2.26 or newer. The existing iwd/ELL code uses Linux 19 APIs and compiler extensions; this build does not make it POSIX-only. 20 21 ELL is an existing project dependency, pinned by the ell-src submodule. 22 Initialize it once after cloning: 23 24 git submodule update --init ell-src 25 26 The build compiles ELL directly into a private static archive. It never 27 runs ELL's configure script or downloads dependencies. An unpacked copy 28 of ELL can also be supplied with ELL_DIR=/path/to/ell-source. 29 30 Build and install 31 ----------------- 32 33 make 34 make DESTDIR=/path/to/package install 35 36 The default target builds src/iwd. Edit config.mk for paths and tools, 37 or override variables on the command line: 38 39 make CC=clang CFLAGS='-O2 -g' 40 make PREFIX=/ DESTDIR=/path/to/package install 41 42 PREFIX=/ installs the daemon as /bin/iwd, matching MICE's layout. The 43 normal prefix is /usr/local. CONFIGDIR defaults to /etc/iwd and 44 STORAGEDIR to /var/lib/iwd. DESTDIR is only a staging prefix; it is never 45 compiled into runtime paths. No init service or configuration file is 46 installed automatically. Run iwd in the foreground from the init service. 47 48 CFLAGS, CPPFLAGS and LDFLAGS are inherited from the environment. CC, AR, 49 OPT, LDLIBS and all paths can be overridden on the command line. Run 50 make clean before changing compiler, flags, libc, or command-line runtime 51 paths; Makefile and config.mk edits already invalidate the objects. 52 53 For musllvm, add its bin directory to PATH and use the prefixed tools: 54 55 make clean 56 make CC=x86_64-linux-musl-clang AR=x86_64-linux-musl-ar \ 57 LDFLAGS=-static PREFIX=/ DESTDIR=/path/to/package install 58 59 The 2026-10-19 musllvm release was used to verify the static x86_64 build: 60 https://github.com/cowmonk/musllvm/releases/tag/musllvm-2026-10-19-ec3a09b6c0fc 61 62 Additional targets 63 ------------------ 64 65 make monitor build monitor/iwmon 66 make install-monitor install iwmon 67 make check build and run the upstream daemon unit tests 68 make man render manual pages (requires rst2man) 69 make install-man install the manual pages 70 make uninstall remove installed binaries and manuals 71 make clean remove build outputs and generated test fixtures 72 73 The unit tests additionally require OpenSSL's command-line tool to create 74 EAPoL certificate fixtures. Some tests require kernel crypto or keyring 75 features; they report skips where supported. Tests run from this source 76 directory. The Wi-Fi integration suite in autotests/ still uses D-Bus and 77 has not been ported. 78 79 EAP-SIM/AKA tests assume HMAC-SHA1 and HMAC-SHA256 are available through 80 AF_ALG; they fail rather than skip when those algorithms are missing. 81 The check runner validates TAP output as well as process exit status. 82 83 Current control support 84 ----------------------- 85 86 Read ctl/README. 87 88 Upstream updates 89 ---------------- 90 91 Makefile.am and configure.ac remain as upstream import metadata, outside 92 the supported build. Keeping their paths allows upstream source-list and 93 version changes to merge normally. Do NOT run autoreconf or configure; 94 they would overwrite the maintained Makefile and config.h. 95 96 After merging an upstream release, refresh the checked-in manifest: 97 98 sh scripts/import-upstream <upstream-release-tag-or-commit> 99 git diff -- mk/sources.mk 100 make clean 101 make 102 make check 103 104 The importer reads that Git revision's Makefile.am and configure.ac, 105 updates VERSION and the daemon, monitor, ELL, and unit-test source lists, 106 and stops on unsupported references or changed assignment forms. It does not merge 107 code, fetch anything, or change the ELL pin. Review new source files, 108 configuration macros, linker requirements, and internal API changes when 109 updating; the importer cannot resolve those changes automatically. 110 111 Update ELL separately to a reviewed commit, initialize the pinned source, 112 and rebuild. Neither a normal build nor a version bump tracks a moving 113 ELL branch automatically. Keep the original iwd release number in the 114 manifest so iwd --version identifies the upstream base. 115 116 The next client milestone is a separate local control interface and 117 client for device status, scanning, and connecting. Upstream's D-Bus 118 client sources remain available for reference. 119 120 Upstream iwd documentation is in doc/ and the manual-page sources. 121 License and authorship information is in COPYING and AUTHORS.