Patchwork [meta-oe,2/4] keymaps: import systemd support from meta-shr layer

login
register
mail settings
Submitter Martin Jansa
Date March 28, 2012, 11:25 a.m.
Message ID <04e98d4774347eb56ef6ddc0078adbcc5192e254.1332933826.git.Martin.Jansa@gmail.com>
Download mbox | patch
Permalink /patch/24733/
State Accepted
Commit 17ffdaa698c50610dd941d882ee12e77af4c9161
Headers show

Comments

Martin Jansa - March 28, 2012, 11:25 a.m.
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 .../recipes-bsp/keymaps/keymaps/keymaps.service    |    9 +++++++++
 meta-oe/recipes-bsp/keymaps/keymaps_1.0.bbappend   |    8 ++++++++
 2 files changed, 17 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-bsp/keymaps/keymaps/keymaps.service
 create mode 100644 meta-oe/recipes-bsp/keymaps/keymaps_1.0.bbappend

Patch

diff --git a/meta-oe/recipes-bsp/keymaps/keymaps/keymaps.service b/meta-oe/recipes-bsp/keymaps/keymaps/keymaps.service
new file mode 100644
index 0000000..414ad0c
--- /dev/null
+++ b/meta-oe/recipes-bsp/keymaps/keymaps/keymaps.service
@@ -0,0 +1,9 @@ 
+[Unit]
+Description=Loads custom keymap if available
+ConditionPathExists=/etc/keymap-2.6.map
+
+[Service]
+ExecStart=/usr/bin/loadkeys /etc/keymap-2.6.map
+
+[Install]
+WantedBy=multi-user.target
diff --git a/meta-oe/recipes-bsp/keymaps/keymaps_1.0.bbappend b/meta-oe/recipes-bsp/keymaps/keymaps_1.0.bbappend
new file mode 100644
index 0000000..b144e9f
--- /dev/null
+++ b/meta-oe/recipes-bsp/keymaps/keymaps_1.0.bbappend
@@ -0,0 +1,8 @@ 
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+PRINC := "${@int(PRINC) + 4}"
+
+SRC_URI += " file://keymaps.service"
+
+inherit systemd
+SYSTEMD_PACKAGES = "${PN}-systemd"
+SYSTEMD_SERVICE = "${PN}.service"