summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrigory Kletsko <grigory.kletsko@cogentembedded.com>2017-06-04 01:02:15 +0300
committerGrigory Kletsko <grigory.kletsko@cogentembedded.com>2017-06-04 01:02:15 +0300
commit8f1e73d39a9c87560a9e1d8c248a10e824ba280d (patch)
tree6f5db26e939abc4e2e0c13dbb25eb3cead7d5e4a
parent3c4889bc08194d620a12420ccfacd0704357541d (diff)
[core] Add systemd networkd, add default eth0 configuration and dummy0
-rw-r--r--meta-rcar-gen3-adas/recipes-core/systemd/systemd/dummy0.network6
-rw-r--r--meta-rcar-gen3-adas/recipes-core/systemd/systemd/eth0.network6
-rw-r--r--meta-rcar-gen3-adas/recipes-core/systemd/systemd_229.bbappend22
3 files changed, 34 insertions, 0 deletions
diff --git a/meta-rcar-gen3-adas/recipes-core/systemd/systemd/dummy0.network b/meta-rcar-gen3-adas/recipes-core/systemd/systemd/dummy0.network
new file mode 100644
index 0000000..26fd32b
--- /dev/null
+++ b/meta-rcar-gen3-adas/recipes-core/systemd/systemd/dummy0.network
@@ -0,0 +1,6 @@
+[Match]
+Name=dummy0
+
+[Network]
+DHCP=no
+
diff --git a/meta-rcar-gen3-adas/recipes-core/systemd/systemd/eth0.network b/meta-rcar-gen3-adas/recipes-core/systemd/systemd/eth0.network
new file mode 100644
index 0000000..af08632
--- /dev/null
+++ b/meta-rcar-gen3-adas/recipes-core/systemd/systemd/eth0.network
@@ -0,0 +1,6 @@
+[Match]
+Name=eth0
+
+[Network]
+DHCP=ipv4
+
diff --git a/meta-rcar-gen3-adas/recipes-core/systemd/systemd_229.bbappend b/meta-rcar-gen3-adas/recipes-core/systemd/systemd_229.bbappend
new file mode 100644
index 0000000..37cb270
--- /dev/null
+++ b/meta-rcar-gen3-adas/recipes-core/systemd/systemd_229.bbappend
@@ -0,0 +1,22 @@
+FILESEXTRAPATHS_append := '${THISDIR}/${PN}:'
+
+PACKAGECONFIG += " networkd resolved "
+
+SRC_URI_append = "file://eth0.network"
+
+SRC_URI_append= '${@ " \
+ file://dummy0.network \
+" if 'surroundview' in '${DISTRO_FEATURES}' else ""}'
+
+FILES_${PN} += "${sysconfdir}/systemd/network/*"
+
+USERADD_PARAM_${PN} += "; --system systemd-network "
+
+do_install_append() {
+
+ install -d ${D}${sysconfdir}/systemd/network/
+
+ install -m 0644 ${WORKDIR}/*.network ${D}${sysconfdir}/systemd/network/
+}
+
+PR="r2"