summaryrefslogtreecommitdiff
path: root/mkconfig
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-03-11 11:05:18 +0900
committerTom Rini <trini@ti.com>2014-03-12 17:04:54 -0400
commitf5c66bdb1843dd84a899da6bc34a46563e5847f0 (patch)
tree117065e9b144ece96a179f20345fec39d4ede896 /mkconfig
parent4ab3fc5eba1d24f37ab33f83ea39c1f7082075d3 (diff)
downloadu-boot-imx-f5c66bdb1843dd84a899da6bc34a46563e5847f0.zip
u-boot-imx-f5c66bdb1843dd84a899da6bc34a46563e5847f0.tar.gz
u-boot-imx-f5c66bdb1843dd84a899da6bc34a46563e5847f0.tar.bz2
kbuild: use $(KBUILD_SRC) to check out-of-tree build
Non-empty $(KBUILD_SRC) means out-of-tree build. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'mkconfig')
-rwxr-xr-xmkconfig4
1 files changed, 2 insertions, 2 deletions
diff --git a/mkconfig b/mkconfig
index 9827e4d..b755d2a 100755
--- 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