diff options
author | Jack Mitchell <ml@embed.me.uk> | 2020-12-03 10:35:01 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-12-06 23:17:28 +0000 |
commit | f66a0a0d9389ea92c73743be079944cfa813d263 (patch) | |
tree | 5c154a95fb861e38cc1c229bfd577ce9e81c9826 /meta | |
parent | 94f827ef0d752f0b6c8cd5a236f39219460e4e58 (diff) | |
download | poky-f66a0a0d9389ea92c73743be079944cfa813d263.tar.gz |
systemd-conf: add PACKAGECONFIG to enable/disable auto ethernet DHCP
Allow distros which include other network managers to disable the
auto DHCP setup of interfaces in systemd-networkd.
(From OE-Core rev: ea5e65b578498df7976bbc560bdcd39c2ebcc1d9)
Signed-off-by: Jack Mitchell <ml@embed.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/systemd/systemd-conf_246.1.bb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/recipes-core/systemd/systemd-conf_246.1.bb b/meta/recipes-core/systemd/systemd-conf_246.1.bb index d9ec023bfd..944b56ff82 100644 --- a/meta/recipes-core/systemd/systemd-conf_246.1.bb +++ b/meta/recipes-core/systemd/systemd-conf_246.1.bb | |||
@@ -5,6 +5,9 @@ DefaultTimeoutStartSec setting." | |||
5 | LICENSE = "MIT" | 5 | LICENSE = "MIT" |
6 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | 6 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" |
7 | 7 | ||
8 | PACKAGECONFIG ??= "dhcp-ethernet" | ||
9 | PACKAGECONFIG[dhcp-ethernet] = "" | ||
10 | |||
8 | SRC_URI = "\ | 11 | SRC_URI = "\ |
9 | file://journald.conf \ | 12 | file://journald.conf \ |
10 | file://logind.conf \ | 13 | file://logind.conf \ |
@@ -17,7 +20,10 @@ do_install() { | |||
17 | install -D -m0644 ${WORKDIR}/journald.conf ${D}${systemd_unitdir}/journald.conf.d/00-${PN}.conf | 20 | 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 | 21 | 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 | 22 | install -D -m0644 ${WORKDIR}/system.conf ${D}${systemd_unitdir}/system.conf.d/00-${PN}.conf |
20 | install -D -m0644 ${WORKDIR}/wired.network ${D}${systemd_unitdir}/network/80-wired.network | 23 | |
24 | if ${@bb.utils.contains('PACKAGECONFIG', 'dhcp-ethernet', 'true', 'false', d)}; then | ||
25 | install -D -m0644 ${WORKDIR}/wired.network ${D}${systemd_unitdir}/network/80-wired.network | ||
26 | fi | ||
21 | } | 27 | } |
22 | 28 | ||
23 | # Based on change from YP bug 8141, OE commit 5196d7bacaef1076c361adaa2867be31759c1b52 | 29 | # Based on change from YP bug 8141, OE commit 5196d7bacaef1076c361adaa2867be31759c1b52 |