aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2008-08-06 15:56:53 -0400
committerSam Ravnborg <sam@ravnborg.org>2008-08-06 15:56:53 -0400
commit7a48bdd01b5cab9c043b4d42a3f377624d6259f2 (patch)
tree9cbb7bd1f90e229b5fcfde52d3194020992b31de /Makefile
parent0967d61ea0d8e8a7826bd8949cd93dd1e829ac55 (diff)
kbuild: fix O=.. build with arm
With a make O=... build kbuild would only create the include2/asm symlink for archs that not yet had moved headers to include/$ARCH/include There is no longer any reason to avoid the symlink for archs that has moved their headers so create it unconditionally. This fixes arm because kbuild checked for include/asm-$ARCH/errno.h and that file was not present for arm but the platform files are not yet moved. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: Russell King <rmk@arm.linux.org.uk>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index ea413fa03e4e..343ec4774b55 100644
--- a/Makefile
+++ b/Makefile
@@ -929,10 +929,10 @@ ifneq ($(KBUILD_SRC),)
929 echo " in the '$(srctree)' directory.";\ 929 echo " in the '$(srctree)' directory.";\
930 /bin/false; \ 930 /bin/false; \
931 fi; 931 fi;
932 $(Q)if [ ! -d include2 ]; then mkdir -p include2; fi; 932 $(Q)if [ ! -d include2 ]; then \
933 $(Q)if [ -e $(srctree)/include/asm-$(SRCARCH)/errno.h ]; then \ 933 mkdir -p include2; \
934 ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm; \ 934 ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm; \
935 fi 935 fi
936endif 936endif
937 937
938# prepare2 creates a makefile if using a separate output directory 938# prepare2 creates a makefile if using a separate output directory