Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 1 | SUMMARY = "Systemd system configuration" |
| 2 | DESCRIPTION = "Systemd may require slightly different configuration for \ |
| 3 | different machines. For example, qemu machines require a longer \ |
| 4 | DefaultTimeoutStartSec setting." |
| 5 | LICENSE = "MIT" |
| 6 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" |
| 7 | |
William A. Kennington III | ac69b48 | 2021-06-02 12:28:27 -0700 | [diff] [blame^] | 8 | PE = "1" |
| 9 | |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 10 | PACKAGECONFIG ??= "dhcp-ethernet" |
| 11 | PACKAGECONFIG[dhcp-ethernet] = "" |
| 12 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 13 | SRC_URI = "\ |
| 14 | file://journald.conf \ |
| 15 | file://logind.conf \ |
| 16 | file://system.conf \ |
| 17 | file://system.conf-qemuall \ |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 18 | file://wired.network \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 19 | " |
| 20 | |
| 21 | do_install() { |
| 22 | install -D -m0644 ${WORKDIR}/journald.conf ${D}${systemd_unitdir}/journald.conf.d/00-${PN}.conf |
| 23 | install -D -m0644 ${WORKDIR}/logind.conf ${D}${systemd_unitdir}/logind.conf.d/00-${PN}.conf |
| 24 | install -D -m0644 ${WORKDIR}/system.conf ${D}${systemd_unitdir}/system.conf.d/00-${PN}.conf |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 25 | |
| 26 | if ${@bb.utils.contains('PACKAGECONFIG', 'dhcp-ethernet', 'true', 'false', d)}; then |
| 27 | install -D -m0644 ${WORKDIR}/wired.network ${D}${systemd_unitdir}/network/80-wired.network |
| 28 | fi |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 29 | } |
| 30 | |
| 31 | # Based on change from YP bug 8141, OE commit 5196d7bacaef1076c361adaa2867be31759c1b52 |
| 32 | do_install_append_qemuall() { |
| 33 | install -D -m0644 ${WORKDIR}/system.conf-qemuall ${D}${systemd_unitdir}/system.conf.d/01-${PN}.conf |
| 34 | } |
| 35 | |
| 36 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 37 | |
| 38 | FILES_${PN} = "\ |
| 39 | ${systemd_unitdir}/journald.conf.d/ \ |
| 40 | ${systemd_unitdir}/logind.conf.d/ \ |
| 41 | ${systemd_unitdir}/system.conf.d/ \ |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 42 | ${systemd_unitdir}/network/ \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 43 | " |