summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorLuka Pivk <luka.pivk@toradex.com>2020-03-02 17:17:41 +0100
committerStefan Agner <stefan.agner@toradex.com>2020-03-19 16:00:17 +0000
commit32e6c85e8795dce3a654325fdbfb2946de891033 (patch)
tree2db84ac5a107b716e4fafa74578109c229821810 /classes
parent523aea31bb7a705860f488f3431dc20745c31c48 (diff)
image: make sure u-boot enviroment is erased
Make sure u-boot enviroment is erased when installing new Toradex Easy Installer image Related-to: TEI-130 Signed-off-by: Luka Pivk <luka.pivk@toradex.com> (cherry picked from commit 25711572bcb5a40057b53323b8b34a28f74d9b0f)
Diffstat (limited to 'classes')
-rw-r--r--classes/image_type_tezi.bbclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/classes/image_type_tezi.bbclass b/classes/image_type_tezi.bbclass
index c91ea7d..95fe03c 100644
--- a/classes/image_type_tezi.bbclass
+++ b/classes/image_type_tezi.bbclass
@@ -164,6 +164,7 @@ def rootfs_tezi_emmc(d, distro=False):
}),
OrderedDict({
"name": "mmcblk0boot0",
+ "erase": True,
"content": {
"filesystem_type": "raw",
"rawfiles": bootpart_rawfiles
@@ -194,6 +195,11 @@ def rootfs_tezi_rawnand(d, distro=False):
}
}
})
+ env = OrderedDict({
+ "name": "u-boot-env",
+ "erase": True,
+ "content": {}
+ })
rootfs = {
"name": "rootfs",
@@ -256,7 +262,7 @@ def rootfs_tezi_rawnand(d, distro=False):
"ubivolumes": ubivolumes
})
- return [uboot1, uboot2, ubi]
+ return [uboot1, uboot2, env, ubi]
def rootfs_tezi_json(d, flash_type, flash_data, json_file, uenv_file):
import json