summaryrefslogtreecommitdiffstats
path: root/meta-agl-ic-container/recipes-demo/momikey/momikey_0.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-agl-ic-container/recipes-demo/momikey/momikey_0.1.bb')
-rw-r--r--meta-agl-ic-container/recipes-demo/momikey/momikey_0.1.bb39
1 files changed, 39 insertions, 0 deletions
diff --git a/meta-agl-ic-container/recipes-demo/momikey/momikey_0.1.bb b/meta-agl-ic-container/recipes-demo/momikey/momikey_0.1.bb
new file mode 100644
index 00000000..845ef46d
--- /dev/null
+++ b/meta-agl-ic-container/recipes-demo/momikey/momikey_0.1.bb
@@ -0,0 +1,39 @@
+SUMMARY = "CH57x keyboard based UI for container demo"
+DESCRIPTION = "Container exchange user interface using CH57x keyboard. \
+ This UI based on mock container manager for AGL CES2023 demo."
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+
+SRC_URI += " \
+ file://momikey.sh \
+ file://momikey.service \
+ file://momikey.rules \
+"
+
+inherit systemd
+
+SYSTEMD_PACKAGES = "${PN}"
+SYSTEMD_SERVICE:${PN} = "momikey.service"
+SYSTEMD_AUTO_ENABLE:${PN} = "disable"
+
+do_install:append () {
+ install -d ${D}/usr/bin
+ install -m 0755 ${WORKDIR}/momikey.sh ${D}/usr/bin/momikey.sh
+
+ install -d ${D}${systemd_system_unitdir}
+ install -m 0644 ${WORKDIR}/momikey.service ${D}${systemd_system_unitdir}
+
+ install -d ${D}${sysconfdir}/udev/rules.d
+ install -m 644 ${WORKDIR}/momikey.rules ${D}${sysconfdir}/udev/rules.d/
+}
+
+FILES:${PN} += " \
+ /usr/bin/momikey.sh \
+ ${systemd_system_unitdir} \
+ ${sysconfdir}/udev/rules.d/ \
+"
+
+RDEPENDS:${PN} := " \
+ bash \
+ evtest \
+"