diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2018-03-28 17:09:57 +0200 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2018-03-28 18:09:49 +0200 |
commit | 78612101254076847875278a3f24afa1966dfea0 (patch) | |
tree | 8e5bce17cffb1b5583ba3618f60ef76eb9298423 | |
parent | 33c9a30eb51ee193bb422691a2491a35338da628 (diff) |
image_type_tezi: write uEnv.txt as default U-Boot environmentColibri-iMX7_LXDE-Image_2.8b2.97-20180331Colibri-iMX6_LXDE-Image_2.8b2.97-20180331Colibri-iMX6ULL_LXDE-Image_2.8b2.97-20180331Colibri-VF_LXDE-Image_2.8b2.97-20180331Colibri-T30_LXDE-Image_2.8b2.97-20180331Colibri-T20_LXDE-Image_2.8b2.97-20180331Apalis-iMX6_LXDE-Image_2.8b2.97-20180331Apalis-TK1_LXDE-Image_2.8b2.97-20180331Apalis-TK1-Mainline_LXDE-Image_2.8b2.97-20180331Apalis-T30_LXDE-Image_2.8b2.97-20180331
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.bbclass | 3 |
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")): |