summaryrefslogtreecommitdiff
path: root/classes/image_type_tezi.bbclass
diff options
context:
space:
mode:
authorDenys Drozdov <denys.drozdov@toradex.com>2021-03-01 15:24:41 +0200
committerPhilippe Schenker <philippe.schenker@toradex.com>2021-03-02 13:28:12 +0000
commit9ececa26080b7abdc96dc1b4b910e735b6eafcfd (patch)
tree216eccfdb2b36a17992beea4d960d0f008c26e36 /classes/image_type_tezi.bbclass
parent64737e025826e3dfa85caba4fd9d81638cd227be (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>
Diffstat (limited to 'classes/image_type_tezi.bbclass')
-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 dac3d80..9706dc7 100644
--- a/classes/image_type_tezi.bbclass
+++ b/classes/image_type_tezi.bbclass
@@ -284,6 +284,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:
@@ -360,13 +362,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}"