[build]: add commit id and build number in sonic_version (#508)

This commit is contained in:
lguohan 2017-04-16 01:17:22 -07:00 committed by Shuotian Cheng
parent 701c1eb9b1
commit fae53f7ea2
2 changed files with 3 additions and 1 deletions

View File

@ -264,7 +264,9 @@ build_version: $(sonic_get_version)
debian_version: $(cat $FILESYSTEM_ROOT/etc/debian_version)
kernel_version: $kversion
asic_type: $sonic_asic_platform
commit_id: $(git rev-parse --short HEAD)
build_date: $(date -u)
build_number: ${BUILD_NUMBER:-0}
built_by: $USER@$BUILD_HOSTNAME
EOF

@ -1 +1 @@
Subproject commit fcfefdb0b96ef36a18cb13669a964b196a036436
Subproject commit 5df8acb5ef48eb34e67b0b5a693fa9f923a79da1