From d0e466fa5820e5e4c7932385f674c96f58af0138 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 27 Mar 2024 13:01:36 +0100 Subject: [PATCH] Add layer for F&S Embedded yocto layer --- conf/layer.conf | 2 + .../images/fus-image-slint-demos.bb | 64 +++++++++++++++++++ .../slint-demos/slint-demos.service | 8 +++ .../slint-demos/slint-demos_%.bbappend | 13 ++++ 4 files changed, 87 insertions(+) create mode 100644 dynamic-layers/meta-fus/recipes-config/images/fus-image-slint-demos.bb create mode 100644 dynamic-layers/meta-fus/recipes-example/slint-demos/slint-demos/slint-demos.service create mode 100644 dynamic-layers/meta-fus/recipes-example/slint-demos/slint-demos_%.bbappend diff --git a/conf/layer.conf b/conf/layer.conf index 8d78e4a..e90fd09 100644 --- a/conf/layer.conf +++ b/conf/layer.conf @@ -17,4 +17,6 @@ RUST_PANIC_STRATEGY = "abort" BBFILES_DYNAMIC += " \ st-openstlinux:${LAYERDIR}/dynamic-layers/meta-st-openstlinux/*/*/*.bb \ st-openstlinux:${LAYERDIR}/dynamic-layers/meta-st-openstlinux/*/*/*.bbappend \ + fus:${LAYERDIR}/dynamic-layers/meta-fus/*/*/*.bb \ + fus:${LAYERDIR}/dynamic-layers/meta-fus/*/*/*.bbappend \ " diff --git a/dynamic-layers/meta-fus/recipes-config/images/fus-image-slint-demos.bb b/dynamic-layers/meta-fus/recipes-config/images/fus-image-slint-demos.bb new file mode 100644 index 0000000..81954d7 --- /dev/null +++ b/dynamic-layers/meta-fus/recipes-config/images/fus-image-slint-demos.bb @@ -0,0 +1,64 @@ +DESCRIPTION = "F&S standard image with Slint Demos" +LICENSE = "MIT" + +inherit core-image + +### WARNING: This image is NOT suitable for production use and is intended +### to provide a way for users to reproduce the image used during +### the validation process of i.MX BSP releases. + +## Select Image Features +IMAGE_FEATURES += " \ + debug-tweaks \ + splash \ + hwcodecs \ + package-management \ +" + +CORE_IMAGE_EXTRA_INSTALL += " \ + packagegroup-fsl-gstreamer1.0 \ + packagegroup-fsl-gstreamer1.0-full \ + alsa-utils \ + alsa-tools \ + dosfstools \ + evtest \ + e2fsprogs-mke2fs \ + fbset \ + i2c-tools \ + spitools \ + iproute2 \ + memtester \ + ethtool \ + mtd-utils \ + mtd-utils-ubifs \ + lmbench \ + libgpiod \ + libgpiod-tools \ + fbida \ + firmwared \ + strace \ + ltrace \ + gdb \ + kbd \ + pciutils \ + libsndfile1 \ + libusb1 \ + libxml2 \ + bluez5 \ + can-utils \ + iw \ + openssh \ + wpa-supplicant \ + hostapd \ + liberation-fonts \ + linux-firmware-wl12xx \ + linux-firmware-wl18xx \ + linux-firmware-sd8787 \ + linux-firmware-sd8997 \ + linux-firmware-pcie8997 \ + linux-firmware-atmel-mxt \ + nxp-wlan-sdk \ + kernel-module-nxp89xx \ + v4l-utils \ + slint-demos \ +" diff --git a/dynamic-layers/meta-fus/recipes-example/slint-demos/slint-demos/slint-demos.service b/dynamic-layers/meta-fus/recipes-example/slint-demos/slint-demos/slint-demos.service new file mode 100644 index 0000000..e4b95f4 --- /dev/null +++ b/dynamic-layers/meta-fus/recipes-example/slint-demos/slint-demos/slint-demos.service @@ -0,0 +1,8 @@ +[Unit] +Description=Startup script to launch Slint demo(s) on startup + +[Service] +ExecStart=/usr/bin/energy-monitor + +[Install] +WantedBy=multi-user.target \ No newline at end of file diff --git a/dynamic-layers/meta-fus/recipes-example/slint-demos/slint-demos_%.bbappend b/dynamic-layers/meta-fus/recipes-example/slint-demos/slint-demos_%.bbappend new file mode 100644 index 0000000..f76476f --- /dev/null +++ b/dynamic-layers/meta-fus/recipes-example/slint-demos/slint-demos_%.bbappend @@ -0,0 +1,13 @@ +inherit systemd + +SYSTEMD_AUTO_ENABLE = "enable" +SYSTEMD_SERVICE:${PN} = "slint-demos.service" + +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" +SRC_URI:append = " file://slint-demos.service" +FILES:${PN} += "${systemd_unitdir}/system/slint-demos.service" + +do_install:append() { + install -d ${D}/${systemd_unitdir}/system + install -m 0644 ${WORKDIR}/slint-demos.service ${D}/${systemd_unitdir}/system +}