]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - mkconfig
kbuild: use $(KBUILD_SRC) to check out-of-tree build
[karo-tx-uboot.git] / mkconfig
index 9827e4deb4dcbc6a59622211ef55687c611e07de..b755d2ac699bb504024f0e510eae74fd5f152bfb 100755 (executable)
--- a/mkconfig
+++ b/mkconfig
@@ -103,7 +103,7 @@ fi
 #
 # Create link to architecture specific headers
 #
-if [ "$SRCTREE" != "$OBJTREE" ] ; then
+if [ -n "$KBUILD_SRC" ] ; then
        mkdir -p ${OBJTREE}/include
        LNPREFIX=${SRCTREE}/arch/${arch}/include/asm/
        cd ${OBJTREE}/include
@@ -125,7 +125,7 @@ if [ "${arch}" = "arm" ] ; then
        ln -s ${LNPREFIX}proc-armv asm/proc
 fi
 
-if [ "$SRCTREE" = "$OBJTREE" ] ; then
+if [ -z "$KBUILD_SRC" ] ; then
        cd ${SRCTREE}/include
 fi