summaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen3-adas/recipes-core
diff options
context:
space:
mode:
Diffstat (limited to 'meta-rcar-gen3-adas/recipes-core')
-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"