diff options
author | Dave Heller <hellerda@us.ibm.com> | 2017-10-29 15:20:45 -0400 |
---|---|---|
committer | Dave Heller <hellerda@us.ibm.com> | 2017-10-29 15:20:45 -0400 |
commit | 890c822244d051a2296ddb9347211d8b536d859d (patch) | |
tree | e58390da89d4c2326e8d73d65157b617491cc3a5 /crtSignedContainer.sh | |
parent | 471c95eded23ee3ec55b74e9dd46b3d5f4cf4e41 (diff) | |
download | sb-signing-utils-890c822244d051a2296ddb9347211d8b536d859d.tar.gz sb-signing-utils-890c822244d051a2296ddb9347211d8b536d859d.zip |
Make SB_VERBOSE, SB_DEBUG, SB_WRAP settable by environment
Helpful for execution under op-build, where command line options are not exposed.
Signed-off-by: Dave Heller <hellerda@us.ibm.com>
Diffstat (limited to 'crtSignedContainer.sh')
-rwxr-xr-x | crtSignedContainer.sh | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/crtSignedContainer.sh b/crtSignedContainer.sh index afced54..9fc9285 100755 --- a/crtSignedContainer.sh +++ b/crtSignedContainer.sh @@ -16,9 +16,6 @@ VERIFY_ARGS="" DEBUG_ARGS="" ADDL_ARGS="" -VERBOSE="" -DEBUG="" -WRAP="" RC=0 # @@ -246,9 +243,9 @@ done while getopts ?hdvw:a:b:c:p:q:r:f:o:l:i:m:s:L:4:5:6:7:89: opt do case "$opt" in - v) VERBOSE="TRUE";; - d) DEBUG="TRUE";; - w) WRAP="$OPTARG";; + v) SB_VERBOSE="TRUE";; + d) SB_DEBUG="TRUE";; + w) SB_WRAP="$OPTARG";; a) HW_KEY_A="$OPTARG";; b) HW_KEY_B="$OPTARG";; c) HW_KEY_C="$OPTARG";; @@ -438,16 +435,16 @@ fi # # Set arguments for (program) execution # -test -n "$VERBOSE" && DEBUG_ARGS=" -v" -test -n "$DEBUG" && DEBUG_ARGS="$DEBUG_ARGS -d" -test -n "$WRAP" && DEBUG_ARGS="$DEBUG_ARGS -w $WRAP" +test -n "$SB_VERBOSE" && DEBUG_ARGS=" -v" +test -n "$SB_DEBUG" && DEBUG_ARGS="$DEBUG_ARGS -d" +test -n "$SB_WRAP" && DEBUG_ARGS="$DEBUG_ARGS -w $SB_WRAP" test -n "$HW_FLAGS" && ADDL_ARGS="$ADDL_ARGS --hw-flags $HW_FLAGS" test -n "$CS_OFFSET" && ADDL_ARGS="$ADDL_ARGS --sw-cs-offset $CS_OFFSET" test -n "$LABEL" && ADDL_ARGS="$ADDL_ARGS --label $LABEL" test -n "$SB_CONTR_HDR_OUT" && CONTR_HDR_OUT_OPT="--dumpContrHdr" -test -n "$VERBOSE" && SF_DEBUG_ARGS=" -v" -test -n "$DEBUG" && SF_DEBUG_ARGS="$SF_DEBUG_ARGS -d -stdout" +test -n "$SB_VERBOSE" && SF_DEBUG_ARGS=" -v" +test -n "$SB_DEBUG" && SF_DEBUG_ARGS="$SF_DEBUG_ARGS -d -stdout" # # Set defaults for signframework project basenames |