summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2018-03-28 17:09:57 +0200
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2018-03-28 18:09:49 +0200
commit78612101254076847875278a3f24afa1966dfea0 (patch)
tree8e5bce17cffb1b5583ba3618f60ef76eb9298423
parent33c9a30eb51ee193bb422691a2491a35338da628 (diff)
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 <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
-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 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")):