diff options
author | Jacopo Dall'Aglio <jacopo.dallaglio@kynetics.com> | 2020-06-26 14:29:02 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-06-26 09:00:05 -0700 |
commit | 5c39cf1d9e70820c7e42b0f36873d723912229e4 (patch) | |
tree | 7eb217135e9f23b7935b74cdb17e71d99516477e /meta-networking | |
parent | c44140e7e35261a871997645c87944f43ae1f798 (diff) | |
download | meta-openembedded-5c39cf1d9e70820c7e42b0f36873d723912229e4.tar.gz |
netplan: upgrade 0.98 -> 0.99
Main new features of netplan release 0.99:
- YAML parser is now in a separate library named libnetplan
- Systemd unit file for launching WPA Supplicant with netplan
configuration is now generated at runtime
See here for a full comparison:
https://github.com/CanonicalLtd/netplan/compare/0.98...0.99
Signed-off-by: Jacopo Dall'Aglio <jacopo.dallaglio@kynetics.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking')
-rw-r--r-- | meta-networking/recipes-connectivity/netplan/netplan_0.99.bb (renamed from meta-networking/recipes-connectivity/netplan/netplan_0.98.bb) | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/meta-networking/recipes-connectivity/netplan/netplan_0.98.bb b/meta-networking/recipes-connectivity/netplan/netplan_0.99.bb index 9f123c70f..67ccddf6a 100644 --- a/meta-networking/recipes-connectivity/netplan/netplan_0.98.bb +++ b/meta-networking/recipes-connectivity/netplan/netplan_0.99.bb | |||
@@ -11,8 +11,8 @@ LICENSE = "GPLv3" | |||
11 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | 11 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" |
12 | 12 | ||
13 | S = "${WORKDIR}/git" | 13 | S = "${WORKDIR}/git" |
14 | SRCREV = "5d22e9d22c4a3724d27b80b0cd9b898ae8f59d2b" | 14 | SRCREV = "1ccf7e0e3a7a91edbbe3f9f0669c8bbab8248cd1" |
15 | PV = "0.98+git${SRCPV}" | 15 | PV = "0.99+git${SRCPV}" |
16 | 16 | ||
17 | SRC_URI = " \ | 17 | SRC_URI = " \ |
18 | git://github.com/CanonicalLtd/netplan.git \ | 18 | git://github.com/CanonicalLtd/netplan.git \ |
@@ -20,17 +20,17 @@ SRC_URI = " \ | |||
20 | 20 | ||
21 | DEPENDS = "glib-2.0 libyaml ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" | 21 | DEPENDS = "glib-2.0 libyaml ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" |
22 | 22 | ||
23 | RDEPENDS_${PN} = "python3 python3-core python3-pyyaml python3-netifaces python3-nose python3-coverage python3-pycodestyle python3-pyflakes util-linux-libuuid" | 23 | RDEPENDS_${PN} = "python3 python3-core python3-pyyaml python3-netifaces python3-nose python3-coverage python3-pycodestyle python3-pyflakes util-linux-libuuid libnetplan" |
24 | 24 | ||
25 | inherit pkgconfig systemd | 25 | inherit pkgconfig systemd |
26 | 26 | ||
27 | TARGET_CC_ARCH += "${LDFLAGS}" | 27 | TARGET_CC_ARCH += "${LDFLAGS}" |
28 | 28 | ||
29 | EXTRA_OEMAKE = "generate" | 29 | EXTRA_OEMAKE = "generate netplan/_features.py" |
30 | EXTRA_OEMAKE =+ "${@bb.utils.contains('DISTRO_FEATURES','systemd','netplan-dbus dbus/io.netplan.Netplan.service','',d)}" | 30 | EXTRA_OEMAKE =+ "${@bb.utils.contains('DISTRO_FEATURES','systemd','netplan-dbus dbus/io.netplan.Netplan.service','',d)}" |
31 | 31 | ||
32 | do_install() { | 32 | do_install() { |
33 | install -d ${D}${sbindir} ${D}${base_libdir}/netplan ${D}${datadir}/netplan/netplan/cli/commands ${D}${sysconfdir}/netplan | 33 | install -d ${D}${sbindir} ${D}${libdir} ${D}${base_libdir}/netplan ${D}${datadir}/netplan/netplan/cli/commands ${D}${sysconfdir}/netplan |
34 | install -m 755 ${S}/generate ${D}${base_libdir}/netplan/ | 34 | install -m 755 ${S}/generate ${D}${base_libdir}/netplan/ |
35 | install -m 644 ${S}/netplan/*.py ${D}${datadir}/netplan/netplan | 35 | install -m 644 ${S}/netplan/*.py ${D}${datadir}/netplan/netplan |
36 | install -m 644 ${S}/netplan/cli/*.py ${D}${datadir}/netplan/netplan/cli | 36 | install -m 644 ${S}/netplan/cli/*.py ${D}${datadir}/netplan/netplan/cli |
@@ -39,7 +39,6 @@ do_install() { | |||
39 | ln -srf ${D}${datadir}/netplan/netplan.script ${D}${sbindir}/netplan | 39 | ln -srf ${D}${datadir}/netplan/netplan.script ${D}${sbindir}/netplan |
40 | 40 | ||
41 | install -d ${D}/${systemd_unitdir}/system ${D}${systemd_unitdir}/system-generators | 41 | install -d ${D}/${systemd_unitdir}/system ${D}${systemd_unitdir}/system-generators |
42 | install -m 644 ${S}/src/netplan-wpa@.service ${D}${systemd_unitdir}/system/ | ||
43 | ln -srf ${D}/${base_libdir}/netplan/generate ${D}${systemd_unitdir}/system-generators | 42 | ln -srf ${D}/${base_libdir}/netplan/generate ${D}${systemd_unitdir}/system-generators |
44 | 43 | ||
45 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | 44 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then |
@@ -48,12 +47,13 @@ do_install() { | |||
48 | install -m 644 ${S}/dbus/io.netplan.Netplan.conf ${D}${datadir}/dbus-1/system.d | 47 | install -m 644 ${S}/dbus/io.netplan.Netplan.conf ${D}${datadir}/dbus-1/system.d |
49 | install -m 644 ${S}/dbus/io.netplan.Netplan.service ${D}${datadir}/dbus-1/system-services | 48 | install -m 644 ${S}/dbus/io.netplan.Netplan.service ${D}${datadir}/dbus-1/system-services |
50 | fi | 49 | fi |
51 | } | ||
52 | 50 | ||
53 | SYSTEMD_SERVICE_${PN} = "netplan-wpa@.service" | 51 | install -m 755 ${S}/libnetplan.so.0.0 ${D}${libdir} |
54 | SYSTEMD_AUTO_ENABLE = "disable" | 52 | ln -rfs ${D}${libdir}/libnetplan.so.0.0 ${D}${libdir}/libnetplan.so |
53 | } | ||
55 | 54 | ||
56 | PACKAGES += "${PN}-dbus" | 55 | PACKAGES += "${PN}-dbus libnetplan" |
57 | 56 | ||
57 | FILES_libnetplan = "${libdir}/libnetplan.so.0.0" | ||
58 | FILES_${PN} = "${sbindir} ${base_libdir}/netplan/generate ${datadir}/netplan ${sysconfdir}/netplan ${systemd_unitdir}" | 58 | FILES_${PN} = "${sbindir} ${base_libdir}/netplan/generate ${datadir}/netplan ${sysconfdir}/netplan ${systemd_unitdir}" |
59 | FILES_${PN}-dbus = "${base_libdir}/netplan/netplan-dbus ${datadir}/dbus-1" | 59 | FILES_${PN}-dbus = "${base_libdir}/netplan/netplan-dbus ${datadir}/dbus-1" |