From 8f92f634c3757613ac9bd997ecba45d9bf8005dc Mon Sep 17 00:00:00 2001 From: Tatiana Leon Date: Tue, 15 Nov 2022 16:40:30 +0100 Subject: [PATCH] meta-digi-dey: crank: crank-demos: add variables to set the tarballs SHA256 As we are going to document how to build Crank images using our own recipes, we need a way for customers to provide the sha256 of the engine and demos tarballs: * Storyboard Engines are not available as a compressed file, it is a directory available after the installation of the whole Storyboard software, next to Storyboard Designer, samples, and other resources. The installer is only available after filling a form and receiving an email with the link and a license key valid for 1 month. To use our 'crank-sbengine_7.2.bb' recipe, users must create the tarball from this directory and provide its path in the 'CRANK_ENGINE_TARBALL_PATH' and its sha256 in 'CRANK_ENGINE_TARBALL_SHA256'. * Regarding Storyboard applications, the included demo in the prebuilt image is not publicly available, but customers can use the same recipe to install their own applications. To use our 'crank-demos_7.2.bb' recipe, users must create a tarball with the exported application from Storyboard Designer and provide its path in the 'CRANK_DEMOS_TARBALL_PATH' and its sha256 in 'CRANK_DEMOS_TARBALL_SHA256'. There are also other configurable parameters such as 'CRANK_DEMO_PATH' or 'CRANK_DEMO_OPTIONS'. The process of adding support to Crank Storyboard applications will be fully documented as new topics. Signed-off-by: Tatiana Leon --- meta-digi-dey/recipes-crank/crank-demos/crank-demos_7.2.bb | 7 ++++--- .../recipes-crank/crank-sbengine/crank-sbengine_7.2.bb | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/meta-digi-dey/recipes-crank/crank-demos/crank-demos_7.2.bb b/meta-digi-dey/recipes-crank/crank-demos/crank-demos_7.2.bb index 24a8f7014..bdab17017 100644 --- a/meta-digi-dey/recipes-crank/crank-demos/crank-demos_7.2.bb +++ b/meta-digi-dey/recipes-crank/crank-demos/crank-demos_7.2.bb @@ -2,8 +2,7 @@ SUMMARY = "Crank Demo" HOMEPAGE = "https://www.cranksoftware.com/" -LICENSE = "Proprietary" -LIC_FILES_CHKSUM = "file://EULA.pdf;md5=fcb6aca5219f44fea1c073405a378250" +LICENSE = "CLOSED" DEPENDS = "crank-sbengine" @@ -12,7 +11,6 @@ SRC_URI = " \ file://crank-demo.service \ file://crank-demo-init \ " -SRC_URI[md5sum] = "0fd30c14973806a130a0103fc1be6126" SRC_URI[sha256sum] = "90a7fc258cdaa5f9afcf57224da8bbc5a330b957db88335f555369123a1432ab" WESTON_SERVICE ?= "weston@root.service" @@ -38,6 +36,9 @@ python() { if crank_demos_tarball_path: premirrors = d.getVar('PREMIRRORS', True) d.setVar('PREMIRRORS', "http:///not/exist/crank-demos-.* %s \\n %s" % (crank_demos_tarball_path, premirrors)) + crank_demos_tarball_sha256 = d.getVar('CRANK_DEMOS_TARBALL_SHA256', True) + if crank_demos_tarball_sha256: + d.setVarFlag("SRC_URI", "sha256sum", crank_demos_tarball_sha256) } inherit systemd update-rc.d diff --git a/meta-digi-dey/recipes-crank/crank-sbengine/crank-sbengine_7.2.bb b/meta-digi-dey/recipes-crank/crank-sbengine/crank-sbengine_7.2.bb index 36bcf1f91..c5ce2271c 100644 --- a/meta-digi-dey/recipes-crank/crank-sbengine/crank-sbengine_7.2.bb +++ b/meta-digi-dey/recipes-crank/crank-sbengine/crank-sbengine_7.2.bb @@ -2,8 +2,7 @@ SUMMARY = "Crank Storyboard Engine" HOMEPAGE = "https://www.cranksoftware.com/" -LICENSE = "Proprietary" -LIC_FILES_CHKSUM = "file://EULA.pdf;md5=fcb6aca5219f44fea1c073405a378250" +LICENSE = "CLOSED" SBENGINE_NAME:ccimx6ul = "linux-imx6yocto-armle-swrender-obj" SBENGINE_NAME:ccimx6 = "linux-imx6yocto-armle-opengles_2.0-obj" @@ -15,7 +14,6 @@ SRC_URI = " \ http:///not/exist/crank-sbengine-${PV}.tar.gz \ file://sb-launcher \ " -SRC_URI[md5sum] = "6faacbb61d4bd9e565ef71c91f20c6ec" SRC_URI[sha256sum] = "79c9162c401dd6282321361d51f15ccef1608da7cde9030c2b72b9573e826056" CRANK_ENGINE_TARBALL_PATH ?= "" @@ -28,6 +26,9 @@ python() { 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)) + crank_engine_tarball_sha256 = d.getVar('CRANK_ENGINE_TARBALL_SHA256', True) + if crank_engine_tarball_sha256: + d.setVarFlag("SRC_URI", "sha256sum", crank_engine_tarball_sha256) } # Disable tasks not needed for the binary package