Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

32
package/iwd/Config.in Normal file
View File

@@ -0,0 +1,32 @@
config BR2_PACKAGE_IWD
bool "iwd"
depends on BR2_USE_MMU # dbus, ell
depends on BR2_TOOLCHAIN_HAS_THREADS # dbus
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # ell
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12 # ell
depends on BR2_USE_WCHAR # ell
select BR2_PACKAGE_DBUS # runtime
select BR2_PACKAGE_ELL
help
iNet Wireless daemon (iwd)
Enable the readline package to enable the iwctl tool. If you
want to use iwd standalone, you probably also want
openresolv or systemd-resolved to handle DNS configuration.
https://iwd.wiki.kernel.org/
if BR2_PACKAGE_IWD
config BR2_PACKAGE_IWD_IWMON
bool "iwmon"
help
iwmon - Internet wireless monitor utility
endif
comment "iwd needs a toolchain w/ threads, wchar, headers >= 4.12"
depends on BR2_USE_MMU # dbus
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # ell
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR || \
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12

58
package/iwd/S40iwd Normal file
View File

@@ -0,0 +1,58 @@
#!/bin/sh
DAEMON="iwd"
PIDFILE="/var/run/$DAEMON.pid"
IWD_ARGS="--logger syslog"
# shellcheck source=/dev/null
[ -r "/etc/default/$DAEMON" ] && . "/etc/default/$DAEMON"
start() {
printf 'Starting %s: ' "$DAEMON"
mkdir -p /tmp/iwd/hotspot
# shellcheck disable=SC2086 # we need the word splitting
start-stop-daemon --start --background --make-pidfile \
--pidfile "$PIDFILE" --exec "/usr/libexec/$DAEMON" \
-- $IWD_ARGS
status=$?
if [ "$status" -eq 0 ]; then
echo "OK"
else
echo "FAIL"
fi
return "$status"
}
stop() {
printf 'Stopping %s: ' "$DAEMON"
start-stop-daemon --stop --pidfile "$PIDFILE" \
--exec "/usr/libexec/$DAEMON"
status=$?
if [ "$status" -eq 0 ]; then
echo "OK"
else
echo "FAIL"
return "$status"
fi
while start-stop-daemon --stop --test --quiet --pidfile "$PIDFILE" \
--exec "/usr/libexec/$DAEMON"; do
sleep 0.1
done
rm -f "$PIDFILE"
return "$status"
}
restart() {
stop
start
}
case "$1" in
start|stop|restart)
"$1"
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac

5
package/iwd/iwd.hash Normal file
View File

@@ -0,0 +1,5 @@
# From https://mirrors.edge.kernel.org/pub/linux/network/wireless/sha256sums.asc
sha256 d89a5e45c7180170e19be828f9e944a768c593758094fc57a358d0e7c4cb1a49 iwd-3.12.tar.xz
# License files
sha256 ec60b993835e2c6b79e6d9226345f4e614e686eb57dc13b6420c15a33a8996e5 COPYING

95
package/iwd/iwd.mk Normal file
View File

@@ -0,0 +1,95 @@
################################################################################
#
# iwd
#
################################################################################
IWD_VERSION = 3.12
IWD_SOURCE = iwd-$(IWD_VERSION).tar.xz
IWD_SITE = $(BR2_KERNEL_MIRROR)/linux/network/wireless
IWD_LICENSE = LGPL-2.1+
IWD_LICENSE_FILES = COPYING
IWD_CPE_ID_VENDOR = intel
IWD_CPE_ID_PRODUCT = inet_wireless_daemon
IWD_SELINUX_MODULES = networkmanager
IWD_CONF_OPTS = \
--disable-manual-pages \
--enable-external-ell \
--enable-dbus-policy
IWD_DEPENDENCIES = dbus ell
ifeq ($(BR2_PACKAGE_READLINE),y)
# iwd client depends on readline (GPL-3.0+)
IWD_LICENSE += , GPL-3.0+ (client)
IWD_CONF_OPTS += --enable-client
IWD_DEPENDENCIES += readline
else
IWD_CONF_OPTS += --disable-client
endif
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
IWD_CONF_OPTS += --enable-systemd-service
IWD_DEPENDENCIES += systemd
else
IWD_CONF_OPTS += --disable-systemd-service
endif
ifeq ($(BR2_PACKAGE_SYSTEMD_RESOLVED),y)
IWD_RESOLV_SERVICE = systemd
else
ifeq ($(BR2_PACKAGE_OPENRESOLV),y)
IWD_RESOLV_SERVICE = resolvconf
else
IWD_RESOLV_SERVICE = none
endif
endif
ifeq ($(BR2_PACKAGE_IWD_IWMON),y)
IWD_CONF_OPTS += --enable-monitor
define IWD_LINUX_CONFIG_FIXUP_MONITOR
$(call KCONFIG_ENABLE_OPT,CONFIG_NLMON)
endef
else
IWD_CONF_OPTS += --disable-monitor
endif
define IWD_INSTALL_CONFIG_FILE
$(INSTALL) -D -m 644 $(@D)/doc/main.conf $(TARGET_DIR)/etc/iwd/main.conf
$(SED) 's,#\?\(NameResolvingService\)=.*,\1=$(IWD_RESOLV_SERVICE),' $(TARGET_DIR)/etc/iwd/main.conf
endef
IWD_POST_INSTALL_TARGET_HOOKS += IWD_INSTALL_CONFIG_FILE
define IWD_INSTALL_INIT_SYSV
$(INSTALL) -m 0755 -D package/iwd/S40iwd \
$(TARGET_DIR)/etc/init.d/S40iwd
mkdir -p $(TARGET_DIR)/var/lib/iwd
ln -sf /tmp/iwd/hotspot $(TARGET_DIR)/var/lib/iwd/hotspot
endef
define IWD_LINUX_CONFIG_FIXUPS
$(call KCONFIG_ENABLE_OPT,CONFIG_ASYMMETRIC_KEY_TYPE)
$(call KCONFIG_ENABLE_OPT,CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE)
$(call KCONFIG_ENABLE_OPT,CONFIG_CRYPTO_AES)
$(call KCONFIG_ENABLE_OPT,CONFIG_CRYPTO_CBC)
$(call KCONFIG_ENABLE_OPT,CONFIG_CRYPTO_CMAC)
$(call KCONFIG_ENABLE_OPT,CONFIG_CRYPTO_DES)
$(call KCONFIG_ENABLE_OPT,CONFIG_CRYPTO_ECB)
$(call KCONFIG_ENABLE_OPT,CONFIG_CRYPTO_HMAC)
$(call KCONFIG_ENABLE_OPT,CONFIG_CRYPTO_MD4)
$(call KCONFIG_ENABLE_OPT,CONFIG_CRYPTO_MD5)
$(call KCONFIG_ENABLE_OPT,CONFIG_CRYPTO_SHA1)
$(call KCONFIG_ENABLE_OPT,CONFIG_CRYPTO_SHA256)
$(call KCONFIG_ENABLE_OPT,CONFIG_CRYPTO_SHA512)
$(call KCONFIG_ENABLE_OPT,CONFIG_CRYPTO_USER_API_HASH)
$(call KCONFIG_ENABLE_OPT,CONFIG_CRYPTO_USER_API_SKCIPHER)
$(call KCONFIG_ENABLE_OPT,CONFIG_KEYS)
$(call KCONFIG_ENABLE_OPT,CONFIG_KEY_DH_OPERATIONS)
$(call KCONFIG_ENABLE_OPT,CONFIG_PKCS7_MESSAGE_PARSER)
$(call KCONFIG_ENABLE_OPT,CONFIG_PKCS8_PRIVATE_KEY_PARSER)
$(call KCONFIG_ENABLE_OPT,CONFIG_X509_CERTIFICATE_PARSER)
$(IWD_LINUX_CONFIG_FIXUP_MONITOR)
endef
$(eval $(autotools-package))