@@ -172,6 +172,7 @@ task complete {
172172 uboot_setenv(uboot-env, "a.nerves_fw_author", ${NERVES_FW_AUTHOR})
173173 uboot_setenv(uboot-env, "a.nerves_fw_vcs_identifier", ${NERVES_FW_VCS_IDENTIFIER})
174174 uboot_setenv(uboot-env, "a.nerves_fw_misc", ${NERVES_FW_MISC})
175+ uboot_setenv(uboot-env, "a.nerves_fw_uuid", "\${FWUP_META_UUID}")
175176
176177 # Support setting device serial numbers when creating MicroSD cards.
177178 # Note that the '$' is escaped so that environment variable replacement
@@ -223,6 +224,7 @@ task upgrade.a {
223224 uboot_unsetenv(uboot-env, "a.nerves_fw_version")
224225 uboot_unsetenv(uboot-env, "a.nerves_fw_platform")
225226 uboot_unsetenv(uboot-env, "a.nerves_fw_architecture")
227+ uboot_unsetenv(uboot-env, "a.nerves_fw_uuid")
226228
227229 # Reset the previous contents of the A boot partition
228230 fat_mkfs(${BOOT_A_PART_OFFSET}, ${BOOT_A_PART_COUNT})
@@ -251,6 +253,7 @@ task upgrade.a {
251253 uboot_setenv(uboot-env, "a.nerves_fw_author", ${NERVES_FW_AUTHOR})
252254 uboot_setenv(uboot-env, "a.nerves_fw_vcs_identifier", ${NERVES_FW_VCS_IDENTIFIER})
253255 uboot_setenv(uboot-env, "a.nerves_fw_misc", ${NERVES_FW_MISC})
256+ uboot_setenv(uboot-env, "a.nerves_fw_uuid", "\${FWUP_META_UUID}")
254257
255258 # Switch over to boot the new firmware
256259 uboot_setenv(uboot-env, "nerves_fw_active", "a")
@@ -277,6 +280,7 @@ task upgrade.b {
277280 uboot_unsetenv(uboot-env, "b.nerves_fw_version")
278281 uboot_unsetenv(uboot-env, "b.nerves_fw_platform")
279282 uboot_unsetenv(uboot-env, "b.nerves_fw_architecture")
283+ uboot_unsetenv(uboot-env, "b.nerves_fw_uuid")
280284
281285 # Reset the previous contents of the B boot partition
282286 fat_mkfs(${BOOT_B_PART_OFFSET}, ${BOOT_B_PART_COUNT})
@@ -301,6 +305,7 @@ task upgrade.b {
301305 uboot_setenv(uboot-env, "b.nerves_fw_author", ${NERVES_FW_AUTHOR})
302306 uboot_setenv(uboot-env, "b.nerves_fw_vcs_identifier", ${NERVES_FW_VCS_IDENTIFIER})
303307 uboot_setenv(uboot-env, "b.nerves_fw_misc", ${NERVES_FW_MISC})
308+ uboot_setenv(uboot-env, "b.nerves_fw_uuid", "\${FWUP_META_UUID}")
304309
305310 # Switch over to boot the new firmware
306311 uboot_setenv(uboot-env, "nerves_fw_active", "b")
0 commit comments