crank: recipe for crank storyboard engine

This recipe downloads a tarball with the pre-built Crank engines for DEY
devices (http://log-sln-jenkins.digi.com/yocto/downloads/crank-sbengine-7.1.tar.gz):
  * ConnectCore 8M Mini
  * ConnectCore 8M Nano
  * ConnectCore 8X
  * ConnectCore 6UL
  * ConnectCore 6
  * ConnectCore MP1x

It installs the corresponding engine inside '/usr/share/crank/sbengine' and the
launcher script '/usr/bin/sb-launcher'.

https://onedigi.atlassian.net/browse/DEL-7969

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
This commit is contained in:
Tatiana Leon 2022-08-11 10:13:16 +02:00
parent 7a06747017
commit 37f67132bd
2 changed files with 96 additions and 0 deletions

View File

@ -0,0 +1,5 @@
#!/bin/sh
ENGINE="/usr/share/crank/sbengine"
exec env LD_LIBRARY_PATH="${ENGINE}/lib" SB_PLUGINS="${ENGINE}/plugins" ${ENGINE}/bin/sbengine "$@"

View File

@ -0,0 +1,91 @@
# Copyright (C) 2022, Digi International Inc.
SUMMARY = "Crank Storyboard Engine"
HOMEPAGE = "https://www.cranksoftware.com/"
LICENSE = "Proprietary"
LIC_FILES_CHKSUM = "file://EULA.pdf;md5=fcb6aca5219f44fea1c073405a378250"
SBENGINE_NAME:ccimx6ul = "linux-imx6yocto-armle-swrender-obj"
SBENGINE_NAME:ccimx6 = "linux-imx6yocto-armle-opengles_2.0-obj"
SBENGINE_NAME:ccimx8m = "linux-imx8yocto-armle-opengles_2.0-wayland-obj"
SBENGINE_NAME:ccimx8x = "linux-imx8yocto-armle-opengles_2.0-wayland-obj"
SBENGINE_NAME:ccmp15 = "linux-stmA5-armle-opengles_2.0-wayland-obj"
SRC_URI = " \
http:///not/exist/crank-sbengine-${PV}.tar.gz \
file://sb-launcher \
"
SRC_URI[md5sum] = "0e2206a02b12814006074634fdd785a8"
SRC_URI[sha256sum] = "d124692c16072237c31fcbf5615d94681ae62f1774bfff2c4af6d6952b4c7bee"
CRANK_ENGINE_TARBALL_PATH ?= ""
# The tarball is only available for downloading after registration, so provide
# a PREMIRROR to a local directory that can be configured in the project's
# local.conf file using CRANK_ENGINE_TARBALL_PATH variable.
python() {
crank_engine_tarball_path = d.getVar('CRANK_ENGINE_TARBALL_PATH', True)
if crank_engine_tarball_path:
premirrors = d.getVar('PREMIRRORS', True)
d.setVar('PREMIRRORS', "http:///not/exist/crank-sbengine-.* %s \\n %s" % (crank_engine_tarball_path, premirrors))
}
# Disable tasks not needed for the binary package
do_configure[noexec] = "1"
do_compile[noexec] = "1"
do_install () {
# Install launcher script
install -d -m 0755 ${D}${bindir}
install -m 0755 ${WORKDIR}/sb-launcher ${D}${bindir}/sb-launcher
# Copy the engine
install -d -m 0755 ${D}${datadir}/crank/sbengine
cp -drf ${S}/${SBENGINE_NAME}/* ${D}${datadir}/crank/sbengine
}
FILES:${PN} = " \
${bindir}/* \
${datadir}/crank/sbengine/* \
"
FILES:${PN}-staticdev += " ${datadir}/crank/sbengine/lib/libgreio.a"
#
# Disable failing QA checks:
#
# Libraries inside /usr/share (datadir)
# ELF binaries has relocations in .text
#
INSANE_SKIP:${PN} += "libdir textrel"
INSANE_SKIP:${PN}-dbg += "libdir"
RDEPENDS:${PN} = " \
alsa-lib \
glib-2.0 \
gstreamer1.0 \
libgstapp-1.0 \
libxml2 \
zlib \
"
RDEPENDS:${PN}:append:ccimx6ul = " \
mtdev \
tslib \
"
RDEPENDS:${PN}:append:ccimx8m = " \
libegl-imx \
libgles2-imx \
wayland \
"
RDEPENDS:${PN}:append:ccimx8x = " \
libegl-imx \
libgles2-imx \
wayland \
"
RDEPENDS:${PN}:append:ccimx6 = " \
libegl-imx \
libgles2-imx \
mtdev \
tslib \
"
PACKAGE_ARCH = "${MACHINE_ARCH}"