From: Andrew Gaffney Date: Sun, 14 Dec 2008 21:05:07 +0000 (-0600) Subject: Explicitly set UTILS_{CC,LD,AS} if UTILS_CROSS_COMPILE is set X-Git-Tag: v3.4.10.903~24 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=277afc2d0aeaf58034f3cbd1369eb8d2e40ccf71;p=genkernel.git Explicitly set UTILS_{CC,LD,AS} if UTILS_CROSS_COMPILE is set --- diff --git a/ChangeLog b/ChangeLog index e20159a..ad5421b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,9 @@ # Copyright 1999-2008 Gentoo Foundation; 2008 Chris Gianelloni, Andrew Gaffney # Distributed under the GPL v2 + 14 Dec 2008; Andrew Gaffney gen_compile.sh: + Explicitly set UTILS_{CC,LD,AS} if UTILS_CROSS_COMPILE is set + 14 Dec 2008; Andrew Gaffney gen_cmdline.sh: Typo fix for gentoo bug #250875 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}\""