From 911cc624014689c649651764ba784237c58c815a Mon Sep 17 00:00:00 2001 From: George Keishing Date: Thu, 17 Mar 2016 00:49:49 -0500 Subject: SBE : Automate SBE Image integration into FIPS driver Change-Id: Ifed799f9a4f3b786e4b1468ea6c75a58ffa53efa RTC: 142215 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22163 Tested-by: Jenkins Server Reviewed-by: Santosh S. Puranik Reviewed-by: Sachin Gupta --- sb | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) (limited to 'sb') diff --git a/sb b/sb index fe2c289b..16154f07 100755 --- a/sb +++ b/sb @@ -17,13 +17,33 @@ sb_helptext() echo " See also:" echo " customrc" ;; + cmvc) + echo " Topic 'Launch CMVC Operation on PPE file's" + echo + echo " Usage:" + echo " Refer : $PWD/sbe/build/tools/CommitSbeImageToCMVC.py -h" + ;; + compile) + echo " Topic 'Compile the PPE file's on fips Sandbox" + echo + echo " Usage:" + echo " Refer : $PWD/sbe/build/tools/sbeDistribute.py -h" + ;; *) echo " Usage:" echo " sb " echo " sb help [|]" - echo + echo "" echo " Available Commands:" echo " workon" + echo " cmvc" + echo " ---------------------------------------------------- " + echo " # To check in SBE FW files in CMVC command options # " + echo " sb cmvc -f < feature CMVC No > -r " + echo " sb cmvc -d < defect CMVC No > -r " + echo " ---------------------------------------------------- " + echo "" + echo " compile" echo esac } @@ -42,6 +62,35 @@ sb_workon() fi } +sb_cmvc() +{ + if [ -n "${SBE_INSIDE_WORKON}" ]; then + echo "Already in a workon.. Continuing" + # Launch the CMVC utility + str="'$*'" + echo "User input string : $str" + $PWD/sbe/build/tools/CommitSbeImageToCMVC.py $* + else + echo "Please do workon and re launch..." + fi + +} + +sb_compile() +{ + if [ -n "${SBE_INSIDE_WORKON}" ]; then + echo "Already in a workon.. Continuing" + # Launch the CMVC utility + str="'$*'" + echo "User input string : $str" + $PWD/sbe/build/tools/sbeDistribute.py $* + else + echo "Please do workon and re launch..." + fi + +} + + if [ 0 == $# ]; then sb_helptext exit -1 @@ -54,6 +103,12 @@ case ${FIRST_PARAM} in workon) sb_workon $* ;; +cmvc) + sb_cmvc $* + ;; +compile) + sb_compile $* + ;; *) sb_helptext $* exit -1 -- cgit v1.2.1