summaryrefslogtreecommitdiffstats
path: root/src/tools/utils
diff options
context:
space:
mode:
authorspashabk-in <shakeebbk@in.ibm.com>2016-12-29 01:11:11 -0600
committerAMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>2017-02-03 05:09:45 -0500
commitc835670e2a0e0ba4061fb535a40c55f2532183f1 (patch)
tree64d41bd53c1503c0fda5eb7a9cb248450079c20e /src/tools/utils
parent86844d608200c72970e2fca8fe802892b67ebac9 (diff)
downloadtalos-sbe-c835670e2a0e0ba4061fb535a40c55f2532183f1.tar.gz
talos-sbe-c835670e2a0e0ba4061fb535a40c55f2532183f1.zip
DD2 image infrastructure
Change-Id: Iacd98b961f87b805fab788f004d87880c4f5f7e0 cmvc-req:1013262 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34241 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>
Diffstat (limited to 'src/tools/utils')
-rwxr-xr-xsrc/tools/utils/sbePrime.py16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/tools/utils/sbePrime.py b/src/tools/utils/sbePrime.py
index 9afec66c..4499873a 100755
--- a/src/tools/utils/sbePrime.py
+++ b/src/tools/utils/sbePrime.py
@@ -6,7 +6,7 @@
#
# OpenPOWER sbe Project
#
-# Contributors Listed Below - COPYRIGHT 2016
+# Contributors Listed Below - COPYRIGHT 2016,2017
# [+] International Business Machines Corp.
#
#
@@ -51,9 +51,6 @@ import sbeCmvcConstants as errorcode
import sbeCmvcUtility as utilcode
import sbePatchUtility as utilpatch
-# Files to copy for sbe prime
-PRIME_FILE_LIST ="sbe_sp_intf.H,simics.tar,sbe_seeprom.bin"
-
#-------------------------
# Main Function
#-------------------------
@@ -82,6 +79,8 @@ def main():
print " \t sbe_sp_intf.H,simics.tar,sbe_seeprom.bin"
print " \t -r,--rc_file = [ Optional ] The RC file for the sandbox (with absolute path)"
print " \t -n,--no_build = [ Optional ] Flag to determine if sbei component should be compiled"
+ print " \t -l,--level = [ Optional ] Flag to determine ddlevel of the image, by default"
+ print " \t DD1 image is compiled"
print " \t -h,--help = Help"
print " ------------------------------------------------------------------------------------"
@@ -116,11 +115,12 @@ def main():
file_name = "None"
rc_file = "None"
build = "1"
+ ddlevel = "DD1"
#----------------------------
# Read command line args
#----------------------------
- opts, args = getopt.getopt(sys.argv[1:],"p:s:i:h:r:n",['patch=', 'sb=', 'files=', 'help', 'rc_file=', 'no_build'])
+ opts, args = getopt.getopt(sys.argv[1:],"p:s:i:hr:nl:",['patch=', 'sb=', 'files=', 'help', 'rc_file=', 'no_build', 'level='])
for opt, arg in opts:
if opt in ('-h', '--help'):
usage()
@@ -135,6 +135,8 @@ def main():
rc_file = arg
elif opt in ('--no_build'):
build = "0"
+ elif opt in ('-l', '--level'):
+ ddlevel = arg
else:
usage()
exit_main(errorcode.ERROR_EXIT)
@@ -238,6 +240,10 @@ def main():
print " postsimsetup [ ERROR ] : ",rc_shell
exit_main(rc_shell)
+ # Files to copy for sbe prime
+ # TODO via RTC:168436 - DD specific images to be updated in CMVC makefiles
+ # PRIME_FILE_LIST ="sbe_sp_intf.H,simics.tar,sbe_seeprom_"+ddlevel+".bin"
+ PRIME_FILE_LIST ="sbe_sp_intf.H,simics.tar,sbe_seeprom.bin"
#----------------------------------------
# 4) Copy the files from repo to sandbox
OpenPOWER on IntegriCloud