summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorDenys Drozdov <denys.drozdov@toradex.com>2021-03-01 15:24:41 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2021-03-23 17:34:45 +0100
commitd7680ebe631f5e97a461a9e4f54ff781dec11f75 (patch)
treec7df573eb1dfbf63c13f4342f26baaecef6f2739 /classes
parent09c352841812b3fbfd07fffdb2265dd02e3b3b54 (diff)
image_type_tezi.bbclass add license file to tezi image
Ensure there is a popup that shows the EULA license to be accepted once installing a tdxref image Related-to: ELB-3485 Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com> (cherry picked from commit 9ececa26080b7abdc96dc1b4b910e735b6eafcfd)
Diffstat (limited to 'classes')
-rw-r--r--classes/image_type_tezi.bbclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/classes/image_type_tezi.bbclass b/classes/image_type_tezi.bbclass
index 454bdd2..5af9ca3 100644
--- a/classes/image_type_tezi.bbclass
+++ b/classes/image_type_tezi.bbclass
@@ -285,6 +285,8 @@ def rootfs_tezi_json(d, flash_type, flash_data, json_file, uenv_file):
data["marketing"] = "marketing.tar"
if os.path.exists(os.path.join(deploydir, "toradexlinux.png")):
data["icon"] = "toradexlinux.png"
+ if os.path.exists(os.path.join(deploydir, "LA_OPT_NXP_SW.html")):
+ data["license"] = "LA_OPT_NXP_SW.html"
product_ids = d.getVar('TORADEX_PRODUCT_IDS')
if product_ids is None:
@@ -394,13 +396,16 @@ IMAGE_CMD_teziimg () {
# Copy image json file to ${WORKDIR}/image-json
cp ${IMGDEPLOYDIR}/image*.json ${WORKDIR}/image-json/image.json
+ # Keep License up to date
+ curl -k -O https://www.nxp.com/docs/en/disclaimer/LA_OPT_NXP_SW.html
+
# The first transform strips all folders from the files to tar, the
# second transform "moves" them in a subfolder ${TEZI_IMAGE_NAME}-Tezi_${TEZI_VERSION}.
${IMAGE_CMD_TAR} \
--transform='s/.*\///' \
--transform 's,^,${TEZI_IMAGE_NAME}-Tezi_${TEZI_VERSION}/,' \
-chf ${IMGDEPLOYDIR}/${TEZI_IMAGE_NAME}-Tezi_${TEZI_VERSION}.tar \
- toradexlinux.png marketing.tar prepare.sh wrapup.sh \
+ toradexlinux.png marketing.tar prepare.sh wrapup.sh LA_OPT_NXP_SW.html \
${WORKDIR}/image-json/image.json ${TEZI_ARTIFACTS}
}
do_image_teziimg[dirs] += "${WORKDIR}/image-json ${DEPLOY_DIR_IMAGE}"