diff options
author | Marty Gloff <mgloff@us.ibm.com> | 2016-07-11 14:38:40 -0500 |
---|---|---|
committer | Stephen Cprek <smcprek@us.ibm.com> | 2016-07-18 15:32:32 -0500 |
commit | 4f2731371170a48d020ce11ad51e51e6eebabe3b (patch) | |
tree | b4411f2140f00ef723f53afafe16f8bc48498857 /src/build/tools | |
parent | 34675e0fb273ad15c361c685b0817e509b04e752 (diff) | |
download | talos-hostboot-4f2731371170a48d020ce11ad51e51e6eebabe3b.tar.gz talos-hostboot-4f2731371170a48d020ce11ad51e51e6eebabe3b.zip |
Add sbfw compile to hb prime
When Hostboot Bootloader changes, the /src/sbei/sbfw directory needs to
be processed to update the Bootloader section in the SBE image.
Change-Id: Ib04fed38ed8c4ccccb2566cbc35e149858f1be0e
RTC: 156840
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26876
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/build/tools')
-rwxr-xr-x | src/build/tools/hbDistribute | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/build/tools/hbDistribute b/src/build/tools/hbDistribute index f0b84a29d..83937bea1 100755 --- a/src/build/tools/hbDistribute +++ b/src/build/tools/hbDistribute @@ -25,6 +25,7 @@ # IBM_PROLOG_END_TAG TARGET_DIR="invalid directory" TARGET="fsp_TARGET" +SBFW_DIR="invalid directory" TEST_TEST=0 print_usage() @@ -109,6 +110,17 @@ if [ "${TARGET_DIR}" == "invalid directory" ]; then fi fi +# Verify SBFW directory or default to sandbox. +if [ "${SBFW_DIR}" == "invalid directory" ]; then + if [ -z "${SANDBOXROOT}" -o -z "${SANDBOXNAME}" ]; then + echo "ERROR: No path specified and \$SANDBOXBASE undefined." + print_usage + exit + else + SBFW_DIR=${SANDBOXROOT}/${SANDBOXNAME}/src/sbei/sbfw + fi +fi + # Find root of repository. if [ -e "src/build/tools/hbDistribute" ]; then REPO_ROOT="./" @@ -122,8 +134,10 @@ fi # Execute makefile for distribution. mkdir -p $TARGET_DIR +mkdir -p $SBFW_DIR export TARGET_TEST export TARGET_DIR +export SBFW_DIR export SECUREBOOT cd $REPO_ROOT/src/build/mkrules make -rR ${DEBUG:=} -f dist.targets.mk $TARGET |