summaryrefslogtreecommitdiffstats
path: root/src/build
diff options
context:
space:
mode:
authorMurulidhar Nataraju <murulidhar@in.ibm.com>2019-05-02 11:45:35 -0500
committerRAJA DAS <rajadas2@in.ibm.com>2019-05-27 23:24:11 -0500
commit28c54880dd080a0baa1540246effd7c49a499c82 (patch)
treeccda97a98c03a1146829d3bbf60451cb3c1c3a86 /src/build
parent510ac957f02d2cd37f700fff62680d2984ef65ae (diff)
downloadtalos-sbe-28c54880dd080a0baa1540246effd7c49a499c82.tar.gz
talos-sbe-28c54880dd080a0baa1540246effd7c49a499c82.zip
Axone: Update sbeOpDistribute.py
Change-Id: I13d42b7a322c2a43bf5ecf4c74465cc1bd60acc9 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/77821 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com>
Diffstat (limited to 'src/build')
-rwxr-xr-xsrc/build/sbeOpDistribute.py19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/build/sbeOpDistribute.py b/src/build/sbeOpDistribute.py
index 14546d98..98024205 100755
--- a/src/build/sbeOpDistribute.py
+++ b/src/build/sbeOpDistribute.py
@@ -5,7 +5,7 @@
#
# OpenPOWER sbe Project
#
-# Contributors Listed Below - COPYRIGHT 2017,2018
+# Contributors Listed Below - COPYRIGHT 2017,2019
# [+] International Business Machines Corp.
#
#
@@ -26,9 +26,6 @@ import os
import sys
import getopt
-CHIPID = 'p9n'
-p9n_EC = {'21':'DD2', '22':'DD2', '23':'DD2'}
-
def usage():
print "usage:sbeOpDistribute.py [--sbe_binary_dir] <sbe binary path> [--img_dir] <images path>"
@@ -89,15 +86,25 @@ def main(argv):
SEEPROM_IMAGE = 'sbe_seeprom.bin'
SEEPROM_HDR_BIN = 'sbe_seeprom.hdr.bin'
+ #Default chipId for Nimbus chips as this script can be called without the
+ #input SBE binary name.
+ CHIPID = 'p9n'
+ eclist = {'21':'DD2', '22':'DD2', '23':'DD2'}
+
+ #Update if the script is called for Axone chips
+ if (sbe_binary_filename == "axone_sbe.img.ecc"):
+ CHIPID = 'p9a'
+ eclist = {'10':'AXONE'}
+
if (mode == "MAKE"):
# Create binaries folder
run_system_cmd('mkdir -p '+sbe_binary_dir)
- for ecLevel, ddLevel in p9n_EC.items():
+ for ecLevel, ddLevel in eclist.items():
# Copy sbe raw binary to binaries folder
run_system_cmd('cp '+img_dir+'/'+'sbe_seeprom_'+ddLevel+'.bin'+' '+sbe_binary_dir+'/'+CHIPID+'_'+ecLevel+'.'+SEEPROM_IMAGE)
elif (mode == "INSTALL"):
ec_build_sbe_cmd = ''
- for ecLevel, ddLevel in p9n_EC.items():
+ for ecLevel, ddLevel in eclist.items():
basename = CHIPID+'_'+ecLevel+'.sbe_seeprom'
ec_build_sbe_cmd += ' --ecImg_'+ecLevel+' '+scratch_dir+'/'+basename+'.hdr.bin'
# Copy sbe raw binary to scratch folder
OpenPOWER on IntegriCloud