diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-05-24 11:13:29 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-05-25 22:36:08 +0100 |
| commit | ca78d0c15953bbeb0f561147eb057a9836d99230 (patch) | |
| tree | 33d9a4bb4517f1f0ff315e15c3121ae4f2120c6b /meta/recipes-core/systemd/systemd-conf_1.0.bb | |
| parent | 0c3bea895e0afc9898e6833d54f8627487874857 (diff) | |
| download | poky-ca78d0c15953bbeb0f561147eb057a9836d99230.tar.gz | |
systemd-conf: do not version in lockstep with systemd
This is not needed as systemd-conf only packages
standalone config files.
(From OE-Core rev: 02bebaaf927e2cf5326bcae1de10cd4a82fd9495)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/systemd/systemd-conf_1.0.bb')
| -rw-r--r-- | meta/recipes-core/systemd/systemd-conf_1.0.bb | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd-conf_1.0.bb b/meta/recipes-core/systemd/systemd-conf_1.0.bb new file mode 100644 index 0000000000..235923be85 --- /dev/null +++ b/meta/recipes-core/systemd/systemd-conf_1.0.bb | |||
| @@ -0,0 +1,43 @@ | |||
| 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 | PE = "1" | ||
| 9 | |||
| 10 | PACKAGECONFIG ??= "dhcp-ethernet" | ||
| 11 | PACKAGECONFIG[dhcp-ethernet] = "" | ||
| 12 | |||
| 13 | SRC_URI = "\ | ||
| 14 | file://journald.conf \ | ||
| 15 | file://logind.conf \ | ||
| 16 | file://system.conf \ | ||
| 17 | file://system.conf-qemuall \ | ||
| 18 | file://wired.network \ | ||
| 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 | ||
| 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 | ||
| 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/ \ | ||
| 42 | ${systemd_unitdir}/network/ \ | ||
| 43 | " | ||
