Skip to contentSkip to conversation

easysplash: Add recipes for 1.0.0 release

RFC PATCH In review Otavio Salvador 3 participants 4 messages Mar 1, 2020

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 easysplash: Add recipes for 1.0.0 release

A simple program for animated splash screens using Software Rendering or OpenGL ES. It consists of the main splash screen program (easysplash) and a small control program (easysplashctl).

EasySplash takes as input zip archives containing a description and PNG-encoded image frames.

---
We decided to open source this so more people can rely on this for their Embedded Linux devices use. The APACHE-2.0 or MIT license can be used, as preferred as all source is dual licensed.

On this commit, we are adding the two animations we have been using for demos, so it can be used as testing. I believe it'd be good if a specific one was developed for OpenEmbedded / Yocto Project used, thus the use of a RFC patch.

 meta/classes/easysplash-animation.bbclass     | 20 ++++++
 .../easysplash-bootanimation-default_1.0.bb   | 12 ++++
 ...asysplash-bootanimation-ossystems_1.0.1.bb | 11 +++
 .../easysplash/easysplash/easysplash.default  |  2 +
 .../recipes-core/easysplash/easysplash_git.bb | 71 +++++++++++++++++++
 5 files changed, 116 insertions(+)
 create mode 100644 meta/classes/easysplash-animation.bbclass
 create mode 100644 meta/recipes-core/easysplash/easysplash-bootanimation-default_1.0.bb
 create mode 100644 meta/recipes-core/easysplash/easysplash-bootanimation-ossystems_1.0.1.bb
 create mode 100644 meta/recipes-core/easysplash/easysplash/easysplash.default
 create mode 100644 meta/recipes-core/easysplash/easysplash_git.bb
meta/classes/easysplash-animation.bbclass new file +20 -0
new file mode 100644
index 0000000000..76b84f179a
@@ -0,0 +1,20 @@
+# -*- python -*-
+# easysplash-animation.bbclass allows for easy packaging of EasySplash
+# animation packages.
+#
+# Copyright (C) 2015, O.S. Systems Softwares Ltda.  All Rights Reserved
+# Released under the MIT license (see packages/COPYING)
+
+inherit update-alternatives allarch
+
+ALTERNATIVE_${PN} += "bootanimation"
+ALTERNATIVE_TARGET[bootanimation] = "/lib/easysplash/${PN}.zip"
+ALTERNATIVE_LINK_NAME[bootanimation] = "/lib/easysplash/bootanimation.zip"
+ALTERNATIVE_PRIORITY[bootanimation] = "50"
+
+do_install_append() {
+    install -Dm 0644 ${S}/*.zip ${D}/lib/easysplash/${PN}.zip
+}
+
+FILES_${PN} += "/lib/easysplash/${PN}.zip"
+RDEPENDS_${PN} += "easysplash"
meta/recipes-core/easysplash/easysplash-bootanimation-default_1.0.bb new file +12 -0
new file mode 100644
index 0000000000..c94d2d18d4
@@ -0,0 +1,12 @@
+SUMMARY = "O.S. Systems default boot animation for easysplash"
+LICENSE = "CLOSED"
+
+SRC_URI = "http://download.ossystems.com.br/tarballs/${BPN}-${PV}.zip;unpack=0"
+SRC_URI[md5sum] = "882345727cdea329f4d43484c3b3835f"
+SRC_URI[sha256sum] = "5f77a53887d1fe2774aa319853ed5288950089a74507717ffb9071dc5e0e2d7e"
+
+S = "${WORKDIR}"
+
+inherit easysplash-animation
+
+ALTERNATIVE_PRIORITY[bootanimation] = "10"
meta/recipes-core/easysplash/easysplash-bootanimation-ossystems_1.0.1.bb new file +11 -0
new file mode 100644
index 0000000000..7091df2ca5
@@ -0,0 +1,11 @@
+SUMMARY = "O.S. Systems animation used for image demos"
+LICENSE = "CLOSED"
+
+SRC_URI = "http://download.ossystems.com.br/tarballs/${PN}-${PV}.zip;unpack=0"
+
+SRC_URI[md5sum] = "e721376508827f79382463a8dcde1cb8"
+SRC_URI[sha256sum] = "472f0e5cf1dc865a450d1b87d3e93dcbb7ae5e16021d5864a01a6d28ff24b0ca"
+
+S = "${WORKDIR}"
+
+inherit easysplash-animation
meta/recipes-core/easysplash/easysplash/easysplash.default new file +2 -0
new file mode 100644
index 0000000000..6fad9200e3
@@ -0,0 +1,2 @@
+# EASYSPLASH_GBM_DRM_DEVICE: Path to a DRI device node. Example: /dev/dri/card0.
+# EASYSPLASH_GBM_DRM_CONNECTOR: The DRM connector to use. Example HDMI input, LVDS pins, etc.
meta/recipes-core/easysplash/easysplash_git.bb new file +71 -0

71 lines not on this page · raw message

Signature · 1 line
2.25.1
#1 lore raw

meta/recipes-core/easysplash/easysplash-bootanimation-default_1.0.bb line 2

Quoted 5 lines · Otavio Salvador

+++ b/meta/recipes-core/easysplash/easysplash-bootanimation-default_1.0.bb

meta/recipes-core/easysplash/easysplash-bootanimation-default_1.0.bb new file +2 -0
@@ -0,0 +1,12 @@
+SUMMARY = "O.S. Systems default boot animation for easysplash"
+LICENSE = "CLOSED"

CLOSED?

Review

Quoted 3 lines
(quoted diff) +1 -1
+PACKAGECONFIG[mesa-gbm] = "-DDISPLAY_TYPE_GLES=TRUE
-DEGL_PLATFORM_GBM=TRUE,,virtual/libgles2 mesa libdrm udev"

This I think should also be enabled by default subject to opengl in DISTRO_FEATURES.

Alex

#2 lore raw

Oh, and: testing this somehow would be nice. Can you add it to the virgl selftest?

Alex

Quoted 22 lines · Alexander Kanavin

meta/recipes-core/easysplash/easysplash-bootanimation-default_1.0.bb line 2

Quoted 6 lines · Otavio Salvador

+++ b/meta/recipes-core/easysplash/
easysplash-bootanimation-default_1.0.bb

meta/recipes-core/easysplash/easysplash-bootanimation-default_1.0.bb new file +2 -0
@@ -0,0 +1,12 @@
+SUMMARY = "O.S. Systems default boot animation for easysplash"
+LICENSE = "CLOSED"

CLOSED?

Review

Quoted 3 lines
(quoted diff) +1 -1
+PACKAGECONFIG[mesa-gbm] = "-DDISPLAY_TYPE_GLES=TRUE
-DEGL_PLATFORM_GBM=TRUE,,virtual/libgles2 mesa libdrm udev"

This I think should also be enabled by default subject to opengl in DISTRO_FEATURES.

Alex

#3 lore raw

Hello Alex,

Quoted 1 line · Alexander Kanavin

Oh, and: testing this somehow would be nice. Can you add it to the virgl selftest?

I am open to contribute to add it and integrate if needed, however, the goal of this RFC is check if there is interest from this community and then we see what is need to be done.

Quoted 28 lines

Alex

Quoted 12 lines · Alexander Kanavin

meta/recipes-core/easysplash/easysplash-bootanimation-default_1.0.bb line 2

Quoted 5 lines · Otavio Salvador

+++ b/meta/recipes-core/easysplash/easysplash-bootanimation-default_1.0.bb

meta/recipes-core/easysplash/easysplash-bootanimation-default_1.0.bb new file +2 -0
@@ -0,0 +1,12 @@
+SUMMARY = "O.S. Systems default boot animation for easysplash"
+LICENSE = "CLOSED"

CLOSED?

Quoted 1 line
Quoted 6 lines
Quoted 1 line

+PACKAGECONFIG[mesa-gbm] = "-DDISPLAY_TYPE_GLES=TRUE -DEGL_PLATFORM_GBM=TRUE,,virtual/libgles2 mesa libdrm udev"

This I think should also be enabled by default subject to opengl in DISTRO_FEATURES.

Alex

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854          Mobile: +1 (347) 903-9750