Fix --kernel-cross-compile with PPC64.
authorTim Yamin <plasmaroo@gentoo.org>
Wed, 21 Dec 2005 01:35:13 +0000 (01:35 +0000)
committerTim Yamin <plasmaroo@gentoo.org>
Wed, 21 Dec 2005 01:35:13 +0000 (01:35 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@345 67a159dc-881f-0410-a524-ba9dfbe2cb84

gen_compile.sh

index 1f90f28454b5c9b5f4dbb478909e4542189c3577..0043e148232e634d84c25d979b0fe51a36ece625 100644 (file)
@@ -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}"
 }