summaryrefslogtreecommitdiff
path: root/mkconfig
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2013-11-01 10:28:45 +0900
committerTom Rini <trini@ti.com>2013-11-08 09:39:14 -0500
commitbb02c5366052f8aa619961e98cd2ef74631ce8f6 (patch)
tree7a0f97f5a6daa0a59b5981c3f54792d66ae36f56 /mkconfig
parent7d9ec6a0aff88b6d7d3b36c04ff1ae490324ebf1 (diff)
downloadu-boot-imx-bb02c5366052f8aa619961e98cd2ef74631ce8f6.zip
u-boot-imx-bb02c5366052f8aa619961e98cd2ef74631ce8f6.tar.gz
u-boot-imx-bb02c5366052f8aa619961e98cd2ef74631ce8f6.tar.bz2
Makefile: do not create a symbolic link to arch/${ARCH}/include/asm
In-tree build: - Do not create a symbolic link from include/asm to arch/${ARCH}/include/asm - Add ${SRCTREE}/arch/arm/include into the header search path Out-of-tree build: - Do not create a directory ${OBJTREE}/include2 - Do not create a symbolic link from ${OBJTREE}/include2/asm to ${SRCTREE}/arch/${ARCH}/include/asm - Add ${SRCTREE}/arch/arm/include into the header search path Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'mkconfig')
-rwxr-xr-xmkconfig14
1 files changed, 6 insertions, 8 deletions
diff --git a/mkconfig b/mkconfig
index 1d06c8e..40db991 100755
--- a/mkconfig
+++ b/mkconfig
@@ -96,17 +96,11 @@ fi
#
if [ "$SRCTREE" != "$OBJTREE" ] ; then
mkdir -p ${OBJTREE}/include
- mkdir -p ${OBJTREE}/include2
- cd ${OBJTREE}/include2
- rm -f asm
- ln -s ${SRCTREE}/arch/${arch}/include/asm asm
LNPREFIX=${SRCTREE}/arch/${arch}/include/asm/
- cd ../include
+ cd ${OBJTREE}/include
mkdir -p asm
else
- cd ./include
- rm -f asm
- ln -s ../arch/${arch}/include/asm asm
+ cd arch/${arch}/include
fi
rm -f asm/arch
@@ -122,6 +116,10 @@ if [ "${arch}" = "arm" ] ; then
ln -s ${LNPREFIX}proc-armv asm/proc
fi
+if [ "$SRCTREE" = "$OBJTREE" ] ; then
+ cd ${SRCTREE}/include
+fi
+
#
# Create include file for Make
#