build-setup: Mount ${WORKSPACE} while building openbmc

The build.sh script is created in host's ${WORKSPACE}, and executed in
docker container. If it's not available in the docker container, it
fails to execute the script by below error.

 no such file or directory

Mount it in the docker container so that it is guaranteed to be avaialbe
in the container.

Tested: Verify the ${WORKSPACE} is mounted if it's not in ${HOME}, and
        the build runs OK.

Signed-off-by: Lei YU <yulei.sh@bytedance.com>
Change-Id: Id459410249c90688e683db63073b36a9959a97aa
diff --git a/build-setup.sh b/build-setup.sh
index 0f3151d..c5733cd 100755
--- a/build-setup.sh
+++ b/build-setup.sh
@@ -413,12 +413,16 @@
 # If obmc_dir or ssc_dir are ${HOME} or a subdirectory they will not be mounted
 mount_obmc_dir="-v ""${obmc_dir}"":""${obmc_dir}"" "
 mount_ssc_dir="-v ""${ssc_dir}"":""${ssc_dir}"" "
+mount_workspace_dir="-v ""${WORKSPACE}"":""${WORKSPACE}"" "
 if [[ "${obmc_dir}" = "${HOME}/"* || "${obmc_dir}" = "${HOME}" ]];then
 mount_obmc_dir=""
 fi
 if [[ "${ssc_dir}" = "${HOME}/"* || "${ssc_dir}" = "${HOME}" ]];then
 mount_ssc_dir=""
 fi
+if [[ "${WORKSPACE}" = "${HOME}/"* || "${WORKSPACE}" = "${HOME}" ]];then
+mount_workspace_dir=""
+fi
 
 # Run the Docker container, execute the build.sh script
 docker run \
@@ -431,6 +435,7 @@
 -v "${HOME}":"${HOME}" \
 ${mount_obmc_dir} \
 ${mount_ssc_dir} \
+${mount_workspace_dir} \
 --cpus="$num_cpu" \
 -t ${img_name} \
 ${WORKSPACE}/build.sh