diff options
author | Ming Liu <ming.liu@toradex.com> | 2021-04-16 14:28:24 +0200 |
---|---|---|
committer | Ming Liu <ming.liu@toradex.com> | 2021-04-16 14:28:24 +0200 |
commit | 9e9859a9d3cb5a6daa2a8a7e0c98d5830021b644 (patch) | |
tree | 841c2c3b67929a46aa80f81026b0cf630b2da992 | |
parent | 5234d3b8bc7f1fb6269a350213e93a0f8f66d6aa (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>
-rw-r--r-- | classes/image_type_tezi.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/image_type_tezi.bbclass b/classes/image_type_tezi.bbclass index 32a39eb..bc744a5 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_USE_BOOTFILES')) }) # Use image recipes SUMMARY/DESCRIPTION... data["name"] = d.getVar('SUMMARY') |