mirror of
https://git.yoctoproject.org/poky
synced 2026-04-29 18:32:20 +02:00
Add a configure file for systemd.networkd to configure wired network interfaces with dhcp. It works with common network interfaces such eth0 and eno1. And do not install it for qemu bsps. Refer to https://github.com/YoeDistro/meta-yoe/tree/master/recipes-core/systemd [YOCTO #13057] (From OE-Core rev: d87efd14ce0471135c0aa7fd7b5da2808acb9c76) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
39 lines
1.4 KiB
BlitzBasic
39 lines
1.4 KiB
BlitzBasic
SUMMARY = "Systemd system configuration"
|
|
DESCRIPTION = "Systemd may require slightly different configuration for \
|
|
different machines. For example, qemu machines require a longer \
|
|
DefaultTimeoutStartSec setting."
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
|
|
|
SRC_URI = "\
|
|
file://journald.conf \
|
|
file://logind.conf \
|
|
file://system.conf \
|
|
file://system.conf-qemuall \
|
|
file://wired.network \
|
|
"
|
|
|
|
do_install() {
|
|
install -D -m0644 ${WORKDIR}/journald.conf ${D}${systemd_unitdir}/journald.conf.d/00-${PN}.conf
|
|
install -D -m0644 ${WORKDIR}/logind.conf ${D}${systemd_unitdir}/logind.conf.d/00-${PN}.conf
|
|
install -D -m0644 ${WORKDIR}/system.conf ${D}${systemd_unitdir}/system.conf.d/00-${PN}.conf
|
|
install -D -m0644 ${WORKDIR}/wired.network ${D}${systemd_unitdir}/network/80-wired.network
|
|
}
|
|
|
|
# Based on change from YP bug 8141, OE commit 5196d7bacaef1076c361adaa2867be31759c1b52
|
|
do_install_append_qemuall() {
|
|
install -D -m0644 ${WORKDIR}/system.conf-qemuall ${D}${systemd_unitdir}/system.conf.d/01-${PN}.conf
|
|
|
|
# Do not install wired.network for qemu bsps
|
|
rm -rf ${D}${systemd_unitdir}/network
|
|
}
|
|
|
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
|
|
|
FILES_${PN} = "\
|
|
${systemd_unitdir}/journald.conf.d/ \
|
|
${systemd_unitdir}/logind.conf.d/ \
|
|
${systemd_unitdir}/system.conf.d/ \
|
|
${systemd_unitdir}/network/ \
|
|
"
|