Merge "Provides default dev-mapping.conf file in images"
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 8 Feb 2018 14:18:41 +0000 (14:18 +0000)
committerGerrit Code Review <gerrit@automotivelinux.org>
Thu, 8 Feb 2018 14:18:41 +0000 (14:18 +0000)
meta-app-framework/recipes-apps/low-level-can-service/low-level-can-service_git.bb
meta-app-framework/recipes-config/dev-mapping/dev-mapping/dev-mapping.conf.default [new file with mode: 0644]
meta-app-framework/recipes-config/dev-mapping/dev-mapping_0.1.bb [new file with mode: 0644]

index 8ba4401..78d96e9 100644 (file)
@@ -12,5 +12,7 @@ SRCREV = "d8d990528ea9746b21788f97be3fdbcc392c5d96"
 PV = "5.0+git${SRCPV}"
 S  = "${WORKDIR}/git"
 
+RDEPENDS_${PN} = "dev-mapping"
+
 inherit cmake aglwgt pkgconfig
 
diff --git a/meta-app-framework/recipes-config/dev-mapping/dev-mapping/dev-mapping.conf.default b/meta-app-framework/recipes-config/dev-mapping/dev-mapping/dev-mapping.conf.default
new file mode 100644 (file)
index 0000000..7bd8bf2
--- /dev/null
@@ -0,0 +1,6 @@
+; Default CAN device mapping
+; Format has to follow ini rules key="value", notice " around value.
+
+[CANbus-mapping]
+hs="can0"
+ls="can0"
diff --git a/meta-app-framework/recipes-config/dev-mapping/dev-mapping_0.1.bb b/meta-app-framework/recipes-config/dev-mapping/dev-mapping_0.1.bb
new file mode 100644 (file)
index 0000000..befb544
--- /dev/null
@@ -0,0 +1,18 @@
+inherit allarch
+
+SUMMARY = "AGL Device mapping configuration file"
+DESCRIPTION = "This provide default dev-mapping.conf file \
+ that defines mapping between kernel device and logical name \
+ used in low-can binding by example."
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+SRC_URI += "file://dev-mapping.conf.default"
+
+do_install() {
+    install -d ${D}${sysconfdir}
+    install -m 0644 ${WORKDIR}/dev-mapping.conf.default ${D}${sysconfdir}/dev-mapping.conf
+}