From 435f953652fc6972d5f840622c7e9bf316ca4552 Mon Sep 17 00:00:00 2001 From: Ming Liu Date: Fri, 16 Apr 2021 14:28:24 +0200 Subject: 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 (cherry picked from commit 9e9859a9d3cb5a6daa2a8a7e0c98d5830021b644) and (cherry picked from commit b960cee9fba7f3f9a6603cd5464fcfa45df3bceb) --- classes/image_type_tezi.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'classes') 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') -- cgit v1.2.3