From 9b021c0e3a2ef0cdd21a8ca03d9586c3c8f003c7 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Thu, 25 Jan 2018 09:44:56 +0000 Subject: Provides default dev-mapping.conf file in images Bug-AGL: SPEC-1121 Change-Id: Id31e34af1276682dbe39457a145889f0d0c7e7c3 Signed-off-by: Romain Forlot --- .../dev-mapping/dev-mapping/dev-mapping.conf.default | 6 ++++++ .../recipes-config/dev-mapping/dev-mapping_0.1.bb | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 meta-app-framework/recipes-config/dev-mapping/dev-mapping/dev-mapping.conf.default create mode 100644 meta-app-framework/recipes-config/dev-mapping/dev-mapping_0.1.bb (limited to 'meta-app-framework/recipes-config') 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 index 000000000..7bd8bf2eb --- /dev/null +++ b/meta-app-framework/recipes-config/dev-mapping/dev-mapping/dev-mapping.conf.default @@ -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 index 000000000..befb5443f --- /dev/null +++ b/meta-app-framework/recipes-config/dev-mapping/dev-mapping_0.1.bb @@ -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 +} -- cgit 1.2.3-korg