Skip to contentSkip to conversation

emptty: add version 0.15.0

PATCH In review [email protected] 2 participants 2 messages Mar 5

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 emptty: add version 0.15.0

From: Antonios Christidis <[email protected]>

Add emptty, a "Dead simple CLI Display Manager on TTY". This is a relatively lightweight display manager that supports x11 as well as wayland through both a CLI and an automatic login mechanism.

This can effectively replace the custom init scripts for both x11 (xserver-nodm-init) and wayland (weston-init) with a single tool with more verbose logging capabilities.

This is split into two recipes. The emptty package provides the binary and various agnostic configs while the emptty-conf package provides the default configuration for the application itself. This RPROVIDES virtual-emptty-conf, allowing other recipes to provide their own configurations to override the default behavior.

---
v2:
- Removed patch, emptty-add-version-0.15.0.patch

 .../classes/tisdk-bundle.bbclass              | 14 ++-
 meta-arago-distro/conf/distro/arago.conf      |  2 +
 .../recipes-graphics/emptty/emptty-conf.bb    | 14 +++
 .../recipes-graphics/emptty/emptty.inc        | 27 ++++++
 .../recipes-graphics/emptty/emptty/pamconf    | 11 +++
 .../recipes-graphics/emptty/emptty_0.15.0.bb  | 57 +++++++++++++
 .../wayland/weston-init-arago.bb              | 72 ++++++++++++++++
 .../weston-init-arago/beaglebone/weston.ini   | 85 +++++++++++++++++++
 .../wayland/weston-init-arago/emptty.conf     | 77 +++++++++++++++++
 .../weston-launch-calibrator.sh               | 13 +++
 .../wayland/weston-init-arago/weston.ini      | 21 +++++
 11 files changed, 392 insertions(+), 1 deletion(-)
 create mode 100644 meta-arago-distro/recipes-graphics/emptty/emptty-conf.bb
 create mode 100644 meta-arago-distro/recipes-graphics/emptty/emptty.inc
 create mode 100644 meta-arago-distro/recipes-graphics/emptty/emptty/pamconf
 create mode 100644 meta-arago-distro/recipes-graphics/emptty/emptty_0.15.0.bb
 create mode 100644 meta-arago-distro/recipes-graphics/wayland/weston-init-arago.bb
 create mode 100644 meta-arago-distro/recipes-graphics/wayland/weston-init-arago/beaglebone/weston.ini
 create mode 100644 meta-arago-distro/recipes-graphics/wayland/weston-init-arago/emptty.conf
 create mode 100644 meta-arago-distro/recipes-graphics/wayland/weston-init-arago/weston-launch-calibrator.sh
 create mode 100644 meta-arago-distro/recipes-graphics/wayland/weston-init-arago/weston.ini
meta-arago-distro/classes/tisdk-bundle.bbclass +13 -1
index cc5d1481..24146529 100644
@@ -106,7 +106,7 @@ cleanup_host_packages() {
 }
 
 ROOTFS_PREPROCESS_COMMAND += "tisdk_image_setup; "
-ROOTFS_POSTPROCESS_COMMAND += "tisdk_image_build; "
+ROOTFS_POSTPROCESS_COMMAND += "tisdk_image_build; add_emptty_inittab; "
 IMAGE_PREPROCESS_COMMAND:append = "tisdk_image_cleanup; "
 
 # Create the SDK image.  We will re-use the rootfs_ipk_do_rootfs functionality
@@ -304,6 +304,18 @@ tisdk_image_build () {
     cp ${WORKDIR}/opkg.conf ${IMAGE_ROOTFS}/etc/
 }
 
+
+add_emptty_inittab() {
+    [ -f ${IMAGE_ROOTFS}${sysconfdir}/inittab ] || return 0
+
+    if ${@bb.utils.contains_any("IMAGE_FEATURES", [ "x11-base", "weston" ], "true", "false", d)}
+    then
+	echo "7:5:respawn:${bindir}/emptty -t 7 -d" >> ${IMAGE_ROOTFS}${sysconfdir}/inittab
+    fi
+}
+
+
+
 TISDK_IMAGE_CLEANUP_DIRS ?= "var etc lib boot dev home media mnt proc run sbin sys tmp usr"
 TISDK_IMAGE_CLEANUP_FILES ?= "bin/bash bin/bash.bash bin/sh"
 
meta-arago-distro/conf/distro/arago.conf +2 -0
index fb5c703f..43d4db53 100644
@@ -68,6 +68,8 @@ PACKAGECONFIG:pn-glmark2 = "drm-gles2 wayland-gles2"
 
 # Set this to empty string to prevent xwayland config from being added
 PACKAGECONFIG:pn-weston-init = ""
+PREFERRED_RPROVIDER_virtual-emptty-conf = "weston-init-arago"
+PREFERRED_RPROVIDER_weston-init = "weston-init-arago"
 
 # Enable testing for opencl and vulkan with piglit
 PACKAGECONFIG:append:pn-piglit = " \
meta-arago-distro/recipes-graphics/emptty/emptty-conf.bb new file +14 -0
new file mode 100644
index 00000000..0b98e2e1
@@ -0,0 +1,14 @@
+require emptty.inc
+
+SUMMARY += " (Default config)"
+
+do_configure[noexec] = "1"
+do_compile[noexec] = "1"
+
+do_install () {
+    oe_runmake -C ${S}/src/${GO_IMPORT} DESTDIR=${D} install-config
+}
+
+FILES:${PN} = "${sysconfdir}/emptty/conf"
+CONFFILES:${PN} = "${sysconfdir}/emptty/conf"
+RPROVIDES:${PN} += "virtual-emptty-conf"
meta-arago-distro/recipes-graphics/emptty/emptty.inc new file +27 -0
new file mode 100644
index 00000000..d99c4d8c
@@ -0,0 +1,27 @@
+SUMMARY = "Dead simple CLI Display Manager on TTY"
+DESCRIPTION = "Emptty is a simple display manager with a command line greeter \
+It supports both X11 and Wayland sessions, exporting required variables and \
+creating user paths as necessary."
+
+HOMEPAGE = "https://github.com/tvrzna/emptty"
+BUGTRACKER = "https://github.com/tvrzna/emptty/issues"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=d1e4d12c7d1d17367ba5668706a405ba"
+
+S = "${UNPACKDIR}"
+
+FILESEXTRAPATHS:append = ":${THISDIR}/emptty"
+
+GO_IMPORT = "github.com/tvrzna/emptty"
+GO_IMPORT_pam = "github.com/msteinert/pam"
+SRC_URI = "\
+    git://${GO_IMPORT}.git;protocol=https;branch=master;destsuffix=src/${GO_IMPORT} \
+    git://${GO_IMPORT_pam}.git;protocol=https;branch=master;name=pam;destsuffix=src/${GO_IMPORT_pam} \
+    file://pamconf \
+    "
+SRCREV = "bb203ad0a224731a7a2ff50deeb342ab79c4af09"
+SRCREV_pam = "50ded1b0e7864b9bf75005eb945a8ec826bcf69d"
+
+SRCREV_FORMAT .= "_pam"
+
+PR = "r1"
meta-arago-distro/recipes-graphics/emptty/emptty/pamconf new file +11 -0
new file mode 100644
index 00000000..5c82d46b
@@ -0,0 +1,11 @@
+#%PAM-1.0
+auth            sufficient      pam_succeed_if.so user ingroup nopasswdlogin
+auth            include         common-auth
+-auth           optional        pam_gnome_keyring.so
+-auth           optional        pam_kwallet5.so
+account         include         common-account
+session         include         common-session
+-session        optional        pam_gnome_keyring.so auto_start
+-session        optional        pam_kwallet5.so auto_start force_run
+password        include         common-password
+
meta-arago-distro/recipes-graphics/emptty/emptty_0.15.0.bb new file +57 -0

57 lines not on this page · raw message

meta-arago-distro/recipes-graphics/wayland/weston-init-arago.bb new file +72 -0

72 lines not on this page · raw message

meta-arago-distro/recipes-graphics/wayland/weston-init-arago/beaglebone/weston.ini new file +85 -0

85 lines not on this page · raw message

meta-arago-distro/recipes-graphics/wayland/weston-init-arago/emptty.conf new file +77 -0

77 lines not on this page · raw message

meta-arago-distro/recipes-graphics/wayland/weston-init-arago/weston-launch-calibrator.sh new file +13 -0
new file mode 100644
index 00000000..45863ecd
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+if [ -e /dev/input/touchscreen0 ]; then
+	echo "Touch screen detected..."
+	if [ -n "$LIBINPUT_CALIBRATION_MATRIX" ]; then
+		echo "Calibration matrix already present, skipping calibration..."
+	else
+		echo "Calibrating touchscreen..."
+		exec weston-calibrator
+	fi
+else
+	echo "Touch screen not detected, skipping calibration..."
+fi
meta-arago-distro/recipes-graphics/wayland/weston-init-arago/weston.ini new file +21 -0
new file mode 100644
index 00000000..1bc7a010
@@ -0,0 +1,21 @@
+[core]
+idle-time=0
+require-input=false
+require-outputs=none
+
+[shell]
+locking=false
+animation=zoom
+panel-position=top
+startup-animation=fade
+
+[libinput]
+touchscreen_calibrator=true
+
+[autolaunch]
+# launch the calibrator on startup if a touchscreen is detected
+path=/usr/bin/weston-launch-calibrator
+
+[screensaver]
+# Uncomment path to disable screensaver
+#path=@libexecdir@/weston-screensaver
Signature · 1 line
2.34.1
#1 lore raw

meta-arago / na / 20260305210232.268113-1-a-christidis

PRC Results: FAIL

=========================================================
check-yocto-patches: PASS
=========================================================
Patches
----------------------------------------
All patches passed

=========================================================
apply-yocto-patch: PASS
=========================================================
master
=====================
Summary:
- Patch Series: [meta-arago][master][PATCH v2] emptty: add version 0.15.0
- Submitter: From: <[email protected]>
From: Antonios Christidis <[email protected]>
- Date: Date: Thu, 5 Mar 2026 15:02:32 -0600
- Num Patches: 1
- Mailing List (public inbox) Commit SHA: f49e738c7e3ec0c5e9512deefb41f99f05f4756d

Applied to:
- Repository: lcpd-prc-meta-arago
- Base Branch: master-wip
- Commit Author: Pratham Deshmukh <[email protected]>
- Commit Subject: onnxruntime: upgrade 1.20.1 -> 1.23.2
- Commit SHA: 01e5f5f001cf661a241cb79186c2152b25ce34d2

Patches
----------------------------------------
All patches applied

=========================================================
check-yocto-repo: FAIL
=========================================================
master
=====================
FAIL

    WARN: Are you missing a PV = "...". (PV-1)
        meta-arago-distro/recipes-graphics/emptty/emptty-conf.bb
    
    WARN: You might need a " " as the first character for the :append. (APPEND-2)
        meta-arago-distro/recipes-graphics/emptty/emptty_0.15.0.bb:10
            GO_TAGS:append = "${@bb.utils.contains('PACKAGECONFIG', 'pam', '', ',nopam', d)}"
    
    WARN: You might need a " " as the first character for the :append. (APPEND-2)
        meta-arago-distro/recipes-graphics/emptty/emptty_0.15.0.bb:11
            GO_TAGS:append = "${@bb.utils.contains('PACKAGECONFIG', 'x11', '', ',noxlib', d)}"
    
    WARN: The use of :append with other overrides needs to be manually checked. (APPEND-1)
        meta-arago-distro/recipes-graphics/wayland/weston-init-arago.bb:68
            RPROVIDES:${PN}:append = " virtual-emptty-conf weston-init"
    
    WARN: Are you missing a PV = "...". (PV-1)
        meta-arago-distro/recipes-graphics/wayland/weston-init-arago.bb
    
    For details on the above errors/warnings visit: https://lists.yoctoproject.org/g/meta-ti/wiki/40887