summaryrefslogtreecommitdiffstats
path: root/src/build/tools/hbDistribute
diff options
context:
space:
mode:
Diffstat (limited to 'src/build/tools/hbDistribute')
-rwxr-xr-xsrc/build/tools/hbDistribute7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/build/tools/hbDistribute b/src/build/tools/hbDistribute
index 003905e93..99119c818 100755
--- a/src/build/tools/hbDistribute
+++ b/src/build/tools/hbDistribute
@@ -199,6 +199,13 @@ else
export DEFAULT_PNOR=1
fi
+# Clean up preivous rand files. Should only be needed if a previous call failed.
+# Done before dist.targets.mk because there are parallel operations that occur.
+# So if we delete in genPnorImages.pl we would wipe out stuff currently being
+# used elsewhere and cause a file not found error.
+# Note: Prefix is set by genPnorImages.pl
+rm -f ${SANDBOXROOT}/${SANDBOXNAME}/obj/ppc/hbfw/img/rand-*
+
# Execute makefile for distribution.
mkdir -p $TARGET_DIR
mkdir -p $SBFW_DIR
OpenPOWER on IntegriCloud