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 | |
| 8 | SRC_URI = "\ |
| 9 | file://journald.conf \ |
| 10 | file://logind.conf \ |
| 11 | file://system.conf \ |
| 12 | file://system.conf-qemuall \ |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 13 | file://wired.network \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 14 | " |
| 15 | |
| 16 | do_install() { |
| 17 | install -D -m0644 ${WORKDIR}/journald.conf ${D}${systemd_unitdir}/journald.conf.d/00-${PN}.conf |
| 18 | install -D -m0644 ${WORKDIR}/logind.conf ${D}${systemd_unitdir}/logind.conf.d/00-${PN}.conf |
| 19 | install -D -m0644 ${WORKDIR}/system.conf ${D}${systemd_unitdir}/system.conf.d/00-${PN}.conf |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 20 | install -D -m0644 ${WORKDIR}/wired.network ${D}${systemd_unitdir}/network/80-wired.network |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 21 | } |
| 22 | |
| 23 | # Based on change from YP bug 8141, OE commit 5196d7bacaef1076c361adaa2867be31759c1b52 |
| 24 | do_install_append_qemuall() { |
| 25 | install -D -m0644 ${WORKDIR}/system.conf-qemuall ${D}${systemd_unitdir}/system.conf.d/01-${PN}.conf |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 26 | |
| 27 | # Do not install wired.network for qemu bsps |
| 28 | rm -rf ${D}${systemd_unitdir}/network |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 29 | } |
| 30 | |
| 31 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 32 | |
| 33 | FILES_${PN} = "\ |
| 34 | ${systemd_unitdir}/journald.conf.d/ \ |
| 35 | ${systemd_unitdir}/logind.conf.d/ \ |
| 36 | ${systemd_unitdir}/system.conf.d/ \ |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 37 | ${systemd_unitdir}/network/ \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 38 | " |