meta-digi-dey: add dey-image-chromium for ConnectCore 95
The new image runs the local ConnectCore demo application using chromium on the ccimx95. https://onedigi.atlassian.net/browse/DEL-9838 Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
parent
2441ddb589
commit
59377e5748
|
|
@ -24,6 +24,7 @@ BBLAYERS ?= " \
|
||||||
##DIGIBASE##/meta-flutter \
|
##DIGIBASE##/meta-flutter \
|
||||||
##DIGIBASE##/meta-flutter/meta-flutter-apps \
|
##DIGIBASE##/meta-flutter/meta-flutter-apps \
|
||||||
##DIGIBASE##/meta-clang \
|
##DIGIBASE##/meta-clang \
|
||||||
|
##DIGIBASE##/meta-browser/meta-chromium \
|
||||||
##DIGIBASE##/meta-digi/meta-digi-arm \
|
##DIGIBASE##/meta-digi/meta-digi-arm \
|
||||||
##DIGIBASE##/meta-digi/meta-digi-dey \
|
##DIGIBASE##/meta-digi/meta-digi-dey \
|
||||||
"
|
"
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,11 @@ Digi Embedded Yocto provides the following image recipes:
|
||||||
By default the image is XWayland-based so it provides a full Weston
|
By default the image is XWayland-based so it provides a full Weston
|
||||||
desktop environment.
|
desktop environment.
|
||||||
|
|
||||||
|
* dey-image-chromium: graphical Chromium image
|
||||||
|
|
||||||
|
By default the image is XWayland-based so it provides a full Weston
|
||||||
|
desktop environment.
|
||||||
|
|
||||||
* dey-image-lvgl: graphical LVGL image
|
* dey-image-lvgl: graphical LVGL image
|
||||||
|
|
||||||
A DRM-based image including an LVGL demo application.
|
A DRM-based image including an LVGL demo application.
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,7 @@ INITRAMFS_IMAGE = '${@bb.utils.contains("KERNEL_IMAGETYPE", "fitImage", "${RECOV
|
||||||
# DEY image features (alphabetical order)
|
# DEY image features (alphabetical order)
|
||||||
FEATURE_PACKAGES_dey-audio = "packagegroup-dey-audio"
|
FEATURE_PACKAGES_dey-audio = "packagegroup-dey-audio"
|
||||||
FEATURE_PACKAGES_dey-bluetooth = "packagegroup-dey-bluetooth"
|
FEATURE_PACKAGES_dey-bluetooth = "packagegroup-dey-bluetooth"
|
||||||
|
FEATURE_PACKAGES_dey-chromium = "packagegroup-dey-chromium"
|
||||||
FEATURE_PACKAGES_dey-debug = "packagegroup-dey-debug"
|
FEATURE_PACKAGES_dey-debug = "packagegroup-dey-debug"
|
||||||
FEATURE_PACKAGES_dey-examples = "packagegroup-dey-examples"
|
FEATURE_PACKAGES_dey-examples = "packagegroup-dey-examples"
|
||||||
FEATURE_PACKAGES_dey-flutter = "packagegroup-dey-flutter"
|
FEATURE_PACKAGES_dey-flutter = "packagegroup-dey-flutter"
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
# Copyright (C) 2025, Digi International Inc.
|
||||||
|
|
||||||
|
FILESEXTRAPATHS:prepend := "${THISDIR}/connectcore-demo-example:"
|
||||||
|
|
||||||
|
SRC_URI += "file://connectcore-demo-example-chromium.service"
|
||||||
|
|
||||||
|
do_install:append() {
|
||||||
|
# Install the chromium systemd unit
|
||||||
|
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
|
||||||
|
install -d ${D}${systemd_system_unitdir}
|
||||||
|
install -m 0644 ${WORKDIR}/connectcore-demo-example-chromium.service ${D}${systemd_system_unitdir}/
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
PACKAGES =+ "${PN}-chromium"
|
||||||
|
FILES:${PN}-chromium += "${systemd_system_unitdir}/connectcore-demo-example-chromium.service"
|
||||||
|
RDEPENDS:${PN}-chromium = "${PN}-multimedia chromium-ozone-wayland"
|
||||||
|
|
||||||
|
SYSTEMD_PACKAGES += "${PN}-chromium"
|
||||||
|
SYSTEMD_SERVICE:${PN}-chromium = "connectcore-demo-example-chromium.service"
|
||||||
|
|
@ -0,0 +1,26 @@
|
||||||
|
[Unit]
|
||||||
|
Description=ConnectCore demo example running on Chromium
|
||||||
|
After=weston.service graphical.target
|
||||||
|
Requires=weston.service
|
||||||
|
ConditionPathExists=/run/wayland-0
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket
|
||||||
|
Environment=WAYLAND_DISPLAY=wayland-0
|
||||||
|
Environment=XDG_RUNTIME_DIR=/run
|
||||||
|
ExecStart=/usr/bin/chromium \
|
||||||
|
--allow-file-access-from-files \
|
||||||
|
--enable-features=UseOzonePlatform \
|
||||||
|
--in-process-gpu \
|
||||||
|
--incognito \
|
||||||
|
--kiosk \
|
||||||
|
--no-sandbox \
|
||||||
|
--ozone-platform=wayland \
|
||||||
|
file:///srv/www/index.html
|
||||||
|
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=30s
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=graphical.target
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
# Copyright (C) 2025, Digi International Inc.
|
||||||
|
|
||||||
|
SUMMARY = "Chromium packagegroup for DEY"
|
||||||
|
DESCRIPTION = "Packages required to run the Digi Getting Started demo application on Chromium Wayland browser"
|
||||||
|
|
||||||
|
inherit packagegroup
|
||||||
|
|
||||||
|
RDEPENDS:${PN} += "\
|
||||||
|
chromium-ozone-wayland \
|
||||||
|
connectcore-demo-example-chromium \
|
||||||
|
"
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
# Copyright (C) 2025, Digi International Inc.
|
||||||
|
|
||||||
|
require recipes-core/images/dey-image-graphical.inc
|
||||||
|
|
||||||
|
DESCRIPTION = "DEY image with chromium browser"
|
||||||
|
|
||||||
|
GRAPHICAL_CORE = "chromium"
|
||||||
|
|
||||||
|
COMPATIBLE_MACHINE = "(ccimx95)"
|
||||||
Loading…
Reference in New Issue