From: Tim Yamin Date: Wed, 21 Dec 2005 01:35:13 +0000 (+0000) Subject: Fix --kernel-cross-compile with PPC64. X-Git-Tag: v3.4.10.902~407 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e8e0dbd196357947b8d616121deff283cd4c8db9;p=genkernel.git Fix --kernel-cross-compile with PPC64. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@345 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- diff --git a/gen_compile.sh b/gen_compile.sh index 1f90f28..0043e14 100644 --- a/gen_compile.sh +++ b/gen_compile.sh @@ -5,24 +5,23 @@ compile_kernel_args() local ARGS ARGS='' - if [ "${KERNEL_CC}" != '' ] - then - ARGS="CC=\"${KERNEL_CC}\"" - fi - if [ "${KERNEL_LD}" != '' ] - then - ARGS="${ARGS} LD=\"${KERNEL_LD}\"" - fi - if [ "${KERNEL_AS}" != '' ] - then - ARGS="${ARGS} AS=\"${KERNEL_AS}\"" - fi - if [ "${KERNEL_CROSS_COMPILE}" != '' ] then ARGS="${ARGS} CROSS_COMPILE=\"${KERNEL_CROSS_COMPILE}\"" + else + if [ "${KERNEL_CC}" != '' ] + then + ARGS="CC=\"${KERNEL_CC}\"" + fi + if [ "${KERNEL_LD}" != '' ] + then + ARGS="${ARGS} LD=\"${KERNEL_LD}\"" + fi + if [ "${KERNEL_AS}" != '' ] + then + ARGS="${ARGS} AS=\"${KERNEL_AS}\"" + fi fi - echo -n "${ARGS}" }