summaryrefslogtreecommitdiff
path: root/util/getversion.sh
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@google.com>2019-03-18 17:35:23 -0700
committerchrome-bot <chrome-bot@chromium.org>2019-03-20 19:51:16 -0700
commit06933b4cb6dbb2a36b2d4d6139325575a558836d (patch)
treed50c6b637af9db786d5fd14f7eaf9af0ea4d2572 /util/getversion.sh
parentca3f517b0b27e2be1e3d21cecd9958e2e5263512 (diff)
downloadchrome-ec-06933b4cb6dbb2a36b2d4d6139325575a558836d.tar.gz
cr50: add support for building CR50_SQA images
Devices in the lab need to be switched from prepvt to pvt flags. This change adds a build flag for CR50_SQA. Images built with CR50_SQA have more capabilities than normal cr50 images, but less than CR50_DEV images. SQA images can access the rollback command, updates including downgrading to images with lower version numbers and mismatched board id will not be rejected, and the 'bid force_pvt' console command can be used to set the bid flags to 0. bid force_pvt does not erase flashinfo. After the board id has been set, we can still change 1 bits to 0, so we don't need to eraseflashinfo to change the board id flags to 0. This makes the command a bit safer, because the board id RLZ can't be changed just the flags. Changing the flags to 0 works for the test team, because it prevents cr50 from updating to prepvt. This change also marks rollback as a safe command. CR50_SQA images aren't automatically open, so if rollback isn't safe, they will have to go through the open process to change to pvt. Rollback is only included in DEV and SQA images, so it's ok if it's marked safe. It's understood these images aren't supposed to be used on regular devices. They're just for special development and test environments. NEW PROCESS FOR SQA: - update to sqa image - run 'bid force_pvt' - flash pvt image - run rollback BRANCH=cr50 BUG=b:126618143 TEST=run sqa process Change-Id: Ia713274830c9e19cdb3ccafa87849c160d667683 Signed-off-by: Mary Ruthven <mruthven@google.com> Reviewed-on: https://chromium-review.googlesource.com/1529834 Commit-Ready: Mary Ruthven <mruthven@chromium.org> Tested-by: Mary Ruthven <mruthven@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'util/getversion.sh')
-rwxr-xr-xutil/getversion.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/getversion.sh b/util/getversion.sh
index 3fc74b7c39..552f2d9bf0 100755
--- a/util/getversion.sh
+++ b/util/getversion.sh
@@ -89,7 +89,7 @@ main() {
local ver
IFS="${dc}"
- ver="${CR50_DEV:+DBG/}${BOARD}_"
+ ver="${CR50_SQA:+SQA/}${CR50_DEV:+DBG/}${BOARD}_"
tool_ver=""
global_dirty= # set if any of the component repos is 'dirty'.
dir_list=( . ) # list of component directories, always includes the EC tree