summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorMing Liu <ming.liu@toradex.com>2021-04-16 14:28:24 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2021-05-24 18:24:48 +0200
commit435f953652fc6972d5f840622c7e9bf316ca4552 (patch)
tree06acfba8f2590ce5ceb8e6b4ea1d4c0ccd0b2622 /classes
parent11a0938ce42bd8d3bd7b7642b694039ecdd58337 (diff)
image_type_tezi.bbclass: introduce TEZI_AUTO_INSTALL
This makes it possible to build a image tarball with 'autoinstall' enabled. Related-to: TEI-773 Signed-off-by: Ming Liu <ming.liu@toradex.com> (cherry picked from commit 9e9859a9d3cb5a6daa2a8a7e0c98d5830021b644) and (cherry picked from commit b960cee9fba7f3f9a6603cd5464fcfa45df3bceb)
Diffstat (limited to 'classes')
-rw-r--r--classes/image_type_tezi.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/image_type_tezi.bbclass b/classes/image_type_tezi.bbclass
index 32a39eb..93911a8 100644
--- a/classes/image_type_tezi.bbclass
+++ b/classes/image_type_tezi.bbclass
@@ -27,6 +27,7 @@ TEZI_ROOT_LABEL ??= "RFS"
TEZI_ROOT_NAME ??= "rootfs"
TEZI_ROOT_SUFFIX ??= "tar.xz"
TEZI_USE_BOOTFILES ??= "true"
+TEZI_AUTO_INSTALL ??= "false"
TEZI_BOOT_SUFFIX ??= "${@'bootfs.tar.xz' if oe.types.boolean('${TEZI_USE_BOOTFILES}') else ''}"
TEZI_CONFIG_FORMAT ??= "2"
# Require newer Tezi for mx8 Socs with the u-boot environment bugfix
@@ -274,7 +275,7 @@ def rootfs_tezi_json(d, flash_type, flash_data, json_file, uenv_file):
from datetime import datetime
deploydir = d.getVar('DEPLOY_DIR_IMAGE')
- data = OrderedDict({ "config_format": d.getVar('TEZI_CONFIG_FORMAT'), "autoinstall": False })
+ data = OrderedDict({ "config_format": d.getVar('TEZI_CONFIG_FORMAT'), "autoinstall": oe.types.boolean(d.getVar('TEZI_AUTO_INSTALL')) })
# Use image recipes SUMMARY/DESCRIPTION...
data["name"] = d.getVar('SUMMARY')