summaryrefslogtreecommitdiff
path: root/mkconfig
diff options
context:
space:
mode:
Diffstat (limited to 'mkconfig')
-rwxr-xr-xmkconfig12
1 files changed, 6 insertions, 6 deletions
diff --git a/mkconfig b/mkconfig
index 9827e4d..cd911a9 100755
--- a/mkconfig
+++ b/mkconfig
@@ -103,10 +103,10 @@ fi
#
# Create link to architecture specific headers
#
-if [ "$SRCTREE" != "$OBJTREE" ] ; then
- mkdir -p ${OBJTREE}/include
- LNPREFIX=${SRCTREE}/arch/${arch}/include/asm/
- cd ${OBJTREE}/include
+if [ -n "$KBUILD_SRC" ] ; then
+ mkdir -p ${objtree}/include
+ LNPREFIX=${srctree}/arch/${arch}/include/asm/
+ cd ${objtree}/include
mkdir -p asm
else
cd arch/${arch}/include
@@ -125,8 +125,8 @@ if [ "${arch}" = "arm" ] ; then
ln -s ${LNPREFIX}proc-armv asm/proc
fi
-if [ "$SRCTREE" = "$OBJTREE" ] ; then
- cd ${SRCTREE}/include
+if [ -z "$KBUILD_SRC" ] ; then
+ cd ${srctree}/include
fi
#