diff options
Diffstat (limited to 'mkconfig')
-rwxr-xr-x | mkconfig | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 # |