summaryrefslogtreecommitdiffstats
path: root/meta-agl-profile-telematics/recipes-core
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-03-27 06:28:53 +0200
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-03-27 06:28:38 +0000
commitdd21af780072b16bd27814a5cd347431b3baffdc (patch)
treee6305c9679d9da79c35db71fc810b7b254cba3db /meta-agl-profile-telematics/recipes-core
parent74fede105991bf1e70a0dc80b0b744f09f21b216 (diff)
meta-agl-profile-telematics: recipes-core: systemd: change canbus systemd match regex
Match on can* versus only can0 for any canbus interfaces that are detected and set to 500K (which is a common standard automotive baud rate). Change-Id: I8fe00c3043a7fa1faf92506a6cc26bd692ef3aa0 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'meta-agl-profile-telematics/recipes-core')
-rw-r--r--meta-agl-profile-telematics/recipes-core/systemd/files/canbus-can.network (renamed from meta-agl-profile-telematics/recipes-core/systemd/files/canbus-can0.network)2
-rw-r--r--meta-agl-profile-telematics/recipes-core/systemd/systemd_%.bbappend8
-rw-r--r--meta-agl-profile-telematics/recipes-core/systemd/systemd_234.bbappend6
3 files changed, 9 insertions, 7 deletions
diff --git a/meta-agl-profile-telematics/recipes-core/systemd/files/canbus-can0.network b/meta-agl-profile-telematics/recipes-core/systemd/files/canbus-can.network
index 8e548ce59..9768c4bf9 100644
--- a/meta-agl-profile-telematics/recipes-core/systemd/files/canbus-can0.network
+++ b/meta-agl-profile-telematics/recipes-core/systemd/files/canbus-can.network
@@ -1,5 +1,5 @@
[Match]
-Name=can0
+Name=can*
[CAN]
BitRate=500K
diff --git a/meta-agl-profile-telematics/recipes-core/systemd/systemd_%.bbappend b/meta-agl-profile-telematics/recipes-core/systemd/systemd_%.bbappend
new file mode 100644
index 000000000..5e02b2b24
--- /dev/null
+++ b/meta-agl-profile-telematics/recipes-core/systemd/systemd_%.bbappend
@@ -0,0 +1,8 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+
+SRC_URI_append = "file://canbus-can.network"
+
+do_install_append() {
+ mkdir -p ${D}${base_libdir}/systemd/network
+ install -m 0644 ${WORKDIR}/canbus-can.network ${D}${base_libdir}/systemd/network/60-canbus-can.network
+}
diff --git a/meta-agl-profile-telematics/recipes-core/systemd/systemd_234.bbappend b/meta-agl-profile-telematics/recipes-core/systemd/systemd_234.bbappend
index a145cc98b..7c49231b2 100644
--- a/meta-agl-profile-telematics/recipes-core/systemd/systemd_234.bbappend
+++ b/meta-agl-profile-telematics/recipes-core/systemd/systemd_234.bbappend
@@ -4,10 +4,4 @@ SRC_URI_append = " \
file://0001-networkd-link-link_configure-factor-out-link_configu.patch \
file://0002-networkd-link-link_up_can-move-function-upwards.patch \
file://0003-networkd-link-add-support-to-configure-CAN-interface.patch \
- file://canbus-can0.network \
"
-
-do_install_append() {
- mkdir -p ${D}${base_libdir}/systemd/network
- install -m 0644 ${WORKDIR}/canbus-can0.network ${D}${base_libdir}/systemd/network/60-canbus-can0.network
-}