From d7680ebe631f5e97a461a9e4f54ff781dec11f75 Mon Sep 17 00:00:00 2001 From: Denys Drozdov Date: Mon, 1 Mar 2021 15:24:41 +0200 Subject: 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 (cherry picked from commit 9ececa26080b7abdc96dc1b4b910e735b6eafcfd) --- classes/image_type_tezi.bbclass | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'classes') 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}" -- cgit v1.2.3