aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gen_compile.sh')
-rw-r--r--gen_compile.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/gen_compile.sh b/gen_compile.sh
index 743488f..faf4076 100644
--- a/gen_compile.sh
+++ b/gen_compile.sh
@@ -31,8 +31,15 @@ compile_kernel_args() {
compile_utils_args()
{
local ARGS
-
ARGS=''
+
+ if [ -n "${UTILS_CROSS_COMPILE}" ]
+ then
+ UTILS_CC="${UTILS_CROSS_COMPILE}-gcc"
+ UTILS_LD="${UTILS_CROSS_COMPILE}-ld"
+ UTILS_AS="${UTILS_CROSS_COMPILE}-as"
+ fi
+
if [ "${UTILS_ARCH}" != '' ]
then
ARGS="ARCH=\"${UTILS_ARCH}\""