From 85ad380629dc5546def6ede2a80066196480c82e Mon Sep 17 00:00:00 2001 From: Robert Nelson <robertcnelson@gmail.com> Date: Thu, 3 May 2012 21:16:05 -0500 Subject: [PATCH] sgx: quick hack for a ubuntu arm-gcc cross deb Signed-off-by: Robert Nelson <robertcnelson@gmail.com> --- build_sgx_mod_n_pkg.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build_sgx_mod_n_pkg.sh b/build_sgx_mod_n_pkg.sh index 677cd8b2b..c7cc76903 100755 --- a/build_sgx_mod_n_pkg.sh +++ b/build_sgx_mod_n_pkg.sh @@ -37,6 +37,10 @@ set_sgx_make_vars () { #Will probally have to revist this one later... CSTOOL_DIR=$(echo ${CC} | awk -F "/bin/${CSTOOL_PREFIX}" '{print $1}') + if [ "x${CSTOOL_PREFIX}" == "x${CSTOOL_DIR}" ] ; then + CSTOOL_DIR="/usr" + fi + CROSS="CSTOOL_PREFIX=${CSTOOL_PREFIX} CSTOOL_DIR=${CSTOOL_DIR}" } -- GitLab