mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
Append "shift" to version string in shifted image
For EC update test, we produce binary-wise shifted image. To make it easier to tell if update has succeeded, let's append "shift" to the verison in this image. BUG=chrome-os-partner:10264 TEST=Build shifted image and check the version string. Change-Id: I16187611cf61fc97a74bc3707a77ad9ad5274f37 Reviewed-on: https://gerrit.chromium.org/gerrit/27577 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Hung-Te Lin <hungte@chromium.org> Commit-Ready: Vic Yang <victoryang@chromium.org> Tested-by: Vic Yang <victoryang@chromium.org>
This commit is contained in:
@@ -28,6 +28,10 @@ if ghash=`git rev-parse --short --verify HEAD 2>/dev/null`; then
|
||||
else
|
||||
ver="no_version"
|
||||
fi
|
||||
echo "#ifdef SHIFT_CODE_FOR_TEST"
|
||||
echo "#define VERSION \"${ver}_shift\""
|
||||
echo "#else"
|
||||
echo "#define VERSION \"${ver}\""
|
||||
echo "#endif"
|
||||
echo "#define DATE \"`date '+%F %T'`\""
|
||||
echo "#define BUILDER \"${USER}@`hostname`\""
|
||||
|
||||
Reference in New Issue
Block a user