File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -594,6 +594,9 @@ export built_by="$USER@$BUILD_HOSTNAME"
594
594
j2 files/build_templates/sonic_version.yml.j2 | sudo tee $FILESYSTEM_ROOT /etc/sonic/sonic_version.yml
595
595
596
596
# # Metadata file
597
+ export configured_arch= " ${CONFIGURED_ARCH} "
598
+ export configured_platform= " ${CONFIGURED_PLATFORM} "
599
+
597
600
./build_img_metadata.py
598
601
if [ -f ./build_metadata.yaml ]; then
599
602
sudo cp ./build_metadata.yaml $FILESYSTEM_ROOT /etc/sonic/
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ def get_header_info():
23
23
hdr_data ['Build_branch' ] = os .environ .get ('branch' )
24
24
hdr_data ['Build_commit' ] = os .environ .get ('commit_id' )
25
25
hdr_data ['Build_date' ] = os .environ .get ('build_date' )
26
+ hdr_data ['Architecture' ] = os .environ .get ('configured_arch' )
27
+ hdr_data ['Platform' ] = os .environ .get ('configured_platform' )
26
28
27
29
return hdr_data
28
30
You can’t perform that action at this time.
0 commit comments