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

56
package/eudev/Config.in Normal file
View File

@@ -0,0 +1,56 @@
config BR2_PACKAGE_EUDEV
bool "eudev"
depends on BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV
depends on BR2_USE_MMU # uses fork()
depends on BR2_USE_WCHAR # needs C99 compiler
depends on !BR2_STATIC_LIBS # dlfcn.h
select BR2_PACKAGE_HAS_LIBUDEV
select BR2_PACKAGE_HAS_UDEV
select BR2_PACKAGE_UDEV_GENTOO_SCRIPTS if BR2_INIT_OPENRC
select BR2_PACKAGE_UTIL_LINUX
select BR2_PACKAGE_UTIL_LINUX_LIBS
select BR2_PACKAGE_UTIL_LINUX_LIBBLKID
help
eudev is a fork of systemd-udev with the goal of obtaining
better compatibility with existing software such as OpenRC and
Upstart, older kernels, various toolchains and anything else
required by users and various distributions.
https://github.com/eudev-project/eudev
if BR2_PACKAGE_EUDEV
config BR2_PACKAGE_PROVIDES_LIBUDEV
default "eudev"
config BR2_PACKAGE_PROVIDES_UDEV
default "eudev"
config BR2_PACKAGE_EUDEV_MODULE_LOADING
bool "enable kernel module loading"
default y
select BR2_PACKAGE_KMOD
help
Enable kernel module loading support
config BR2_PACKAGE_EUDEV_RULES_GEN
bool "enable rules generator"
help
Enable persistent rules generator
config BR2_PACKAGE_EUDEV_ENABLE_HWDB
bool "enable hwdb installation"
default y
select BR2_PACKAGE_HOST_EUDEV # for udevadm, during target-finalize
help
Enables hardware database installation to /etc/udev/hwdb.bin
endif
comment "eudev needs eudev /dev management"
depends on BR2_USE_MMU
depends on !BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV
comment "eudev needs a toolchain w/ wchar, dynamic library"
depends on BR2_USE_MMU
depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS

View File

@@ -0,0 +1,3 @@
# Select this if you need host eudev tools (e.g. udevadm)
config BR2_PACKAGE_HOST_EUDEV
bool

96
package/eudev/S10udevd Normal file
View File

@@ -0,0 +1,96 @@
#!/bin/sh
#
# udev This is a minimal non-LSB version of a UDEV startup script. It
# was derived by stripping down the udev-058 LSB version for use
# with buildroot on embedded hardware using Linux 2.6.34+ kernels.
#
# You may need to customize this for your system's resource limits
# (including startup time!) and administration. For example, if
# your early userspace has a custom initramfs or initrd you might
# need /dev much earlier; or without hotpluggable busses (like USB,
# PCMCIA, MMC/SD, and so on) your /dev might be static after boot.
#
# This script assumes your system boots right into the eventual root
# filesystem, and that init runs this udev script before any programs
# needing more device nodes than the bare-bones set -- /dev/console,
# /dev/zero, /dev/null -- that's needed to boot and run this script.
#
DAEMON="udevd"
PIDFILE="/var/run/$DAEMON.pid"
SETTLE_TIMEOUT=30
UDEVD_ARGS=""
# shellcheck source=/dev/null
[ -r "/etc/default/$DAEMON" ] && . "/etc/default/$DAEMON"
start() {
printf "Starting %s: " "$DAEMON"
[ -e /proc/sys/kernel/hotplug ] && printf '\000\000\000\000' > /proc/sys/kernel/hotplug
# shellcheck disable=SC2086 # we need the word splitting
start-stop-daemon --start --background --make-pidfile \
--pidfile "$PIDFILE" --exec "/sbin/$DAEMON" \
-- $UDEVD_ARGS
status=$?
if [ "$status" -eq 0 ]; then
echo "OK"
else
echo "FAIL"
fi
udevadm trigger --type=subsystems --action=add
udevadm trigger --type=devices --action=add
udevadm settle --timeout=$SETTLE_TIMEOUT || echo "udevadm settle failed"
return "$status"
}
stop() {
printf "Stopping %s: " "$DAEMON"
udevadm control --exit
status=$?
if [ "$status" -eq 0 ]; then
echo "OK"
else
echo "FAIL"
return "$status"
fi
while start-stop-daemon --stop --test --quiet --pidfile "$PIDFILE" \
--exec "/sbin/$DAEMON"; do
sleep 0.1
done
rm -f "$PIDFILE"
return "$status"
}
restart() {
stop
start
}
reload() {
printf "Reloading %s config: " "$DAEMON"
udevadm control --reload
status=$?
if [ "$status" -eq 0 ]; then
echo "OK"
else
echo "FAIL"
fi
return "$status"
}
case "$1" in
start)
start;;
stop)
stop;;
restart)
restart;;
reload)
reload;;
*)
echo "Usage: $0 {start|stop|restart|reload}"
exit 1
esac
exit $?

3
package/eudev/eudev.hash Normal file
View File

@@ -0,0 +1,3 @@
# Locally calculated
sha256 8da4319102f24abbf7fff5ce9c416af848df163b29590e666d334cc1927f006f eudev-3.2.14.tar.gz
sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYING

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

@@ -0,0 +1,95 @@
################################################################################
#
# eudev
#
################################################################################
EUDEV_VERSION = 3.2.14
EUDEV_SITE = https://github.com/eudev-project/eudev/releases/download/v$(EUDEV_VERSION)
EUDEV_LICENSE = GPL-2.0+ (programs), LGPL-2.1+ (libraries)
EUDEV_LICENSE_FILES = COPYING
EUDEV_INSTALL_STAGING = YES
EUDEV_CONF_OPTS = \
--disable-manpages \
--libexecdir=/lib \
--enable-kmod \
--enable-blkid
# eudev requires only the util-linux libraries at build time
EUDEV_DEPENDENCIES = host-gperf host-pkgconf util-linux-libs
EUDEV_PROVIDES = libudev udev
ifeq ($(BR2_ROOTFS_MERGED_USR),y)
ifeq ($(BR2_ROOTFS_MERGED_BIN),y)
EUDEV_CONF_OPTS += --sbindir=/usr/bin
else
EUDEV_CONF_OPTS += --sbindir=/usr/sbin
endif
else
EUDEV_CONF_OPTS += --sbindir=/sbin --with-rootlibdir=/lib --enable-split-usr
endif
ifeq ($(BR2_PACKAGE_EUDEV_MODULE_LOADING),y)
EUDEV_CONF_OPTS += --enable-kmod
EUDEV_DEPENDENCIES += kmod
else
EUDEV_CONF_OPTS += --disable-kmod
endif
ifeq ($(BR2_PACKAGE_EUDEV_RULES_GEN),y)
EUDEV_CONF_OPTS += --enable-rule-generator
else
EUDEV_CONF_OPTS += --disable-rule-generator
endif
ifeq ($(BR2_PACKAGE_EUDEV_ENABLE_HWDB),y)
EUDEV_CONF_OPTS += --enable-hwdb
else
EUDEV_CONF_OPTS += --disable-hwdb
endif
ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
EUDEV_CONF_OPTS += --enable-selinux
EUDEV_DEPENDENCIES += libselinux
else
EUDEV_CONF_OPTS += --disable-selinux
endif
define EUDEV_INSTALL_INIT_SYSV
$(INSTALL) -D -m 0755 package/eudev/S10udevd $(TARGET_DIR)/etc/init.d/S10udevd
endef
# Avoid installing S10udevd with openrc, as the service is started by a unit
# from the udev-gentoo-scripts package.
define EUDEV_INSTALL_INIT_OPENRC
@:
endef
HOST_EUDEV_DEPENDENCIES = host-gperf host-pkgconf
HOST_EUDEV_CONF_OPTS = \
--prefix=/usr \
--sbindir=/sbin \
--libexecdir=/lib \
--with-rootlibdir=/lib \
--sysconfdir=/etc \
--disable-blkid \
--disable-kmod \
--disable-manpages \
--disable-rule-generator \
--disable-selinux \
--enable-hwdb
define HOST_EUDEV_INSTALL_CMDS
$(INSTALL) -D -m 0755 $(@D)/src/udev/udevadm \
$(HOST_DIR)/bin/udevadm
endef
define HOST_EUDEV_BUILD_HWDB
$(HOST_DIR)/bin/udevadm hwdb --update --usr --root $(TARGET_DIR)
endef
HOST_EUDEV_TARGET_FINALIZE_HOOKS += HOST_EUDEV_BUILD_HWDB
$(eval $(autotools-package))
$(eval $(host-autotools-package))