From 78612101254076847875278a3f24afa1966dfea0 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Wed, 28 Mar 2018 17:09:57 +0200 Subject: image_type_tezi: write uEnv.txt as default U-Boot environment Use the "u_boot_env" property to write uEnv.txt to flash by default. With that the Toradex Easy Installer will make sure that the default environment of the shipped U-Boot is written on flash. Especially since with 2.8b2 we transition to using zImage, this change will make sure that a correct U-Boot environment is written on flash to boot the zImage. Signed-off-by: Stefan Agner Acked-by: Marcel Ziswiler --- classes/image_type_tezi.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/image_type_tezi.bbclass b/classes/image_type_tezi.bbclass index ebcc380..9c85bd5 100644 --- a/classes/image_type_tezi.bbclass +++ b/classes/image_type_tezi.bbclass @@ -162,13 +162,14 @@ python rootfs_tezi_json() { deploydir = d.getVar('DEPLOY_DIR_IMAGE', True) release_date = datetime.strptime(d.getVar('DATE', True), '%Y%m%d').date().isoformat() - data = OrderedDict({ "config_format": 1, "autoinstall": False }) + data = OrderedDict({ "config_format": 2, "autoinstall": False }) # Use image recipes SUMMARY/DESCRIPTION/PV... data["name"] = d.getVar('SUMMARY', True) data["description"] = d.getVar('DESCRIPTION', True) data["version"] = d.getVar('PV', True) data["release_date"] = release_date + data["u_boot_env"] = d.getVar('UBOOT_ENV_TEZI', True) if os.path.exists(os.path.join(deploydir, "prepare.sh")): data["prepare_script"] = "prepare.sh" if os.path.exists(os.path.join(deploydir, "wrapup.sh")): -- cgit v1.2.3