aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-bsp
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2012-03-26 18:24:32 +0200
committerKoen Kooi <koen@dominion.thruhere.net>2012-03-29 16:14:37 +0200
commit17ffdaa698c50610dd941d882ee12e77af4c9161 (patch)
tree4656588ea48a6da2a7c665b66341e4ff17d2ab76 /meta-oe/recipes-bsp
parent803c8d2b08881460b07c9798036c8b5101d6e3c9 (diff)
downloadmeta-openembedded-17ffdaa698c50610dd941d882ee12e77af4c9161.tar.gz
meta-openembedded-17ffdaa698c50610dd941d882ee12e77af4c9161.tar.bz2
meta-openembedded-17ffdaa698c50610dd941d882ee12e77af4c9161.zip
keymaps: import systemd support from meta-shr layer
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-bsp')
-rw-r--r--meta-oe/recipes-bsp/keymaps/keymaps/keymaps.service9
-rw-r--r--meta-oe/recipes-bsp/keymaps/keymaps_1.0.bbappend8
2 files changed, 17 insertions, 0 deletions
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 000000000..414ad0cf0
--- /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 000000000..b144e9f16
--- /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"