From: Sam Ravnborg Date: Wed, 6 Aug 2008 19:56:53 +0000 (+0200) Subject: kbuild: fix O=.. build with arm X-Git-Tag: v2.6.27-rc3~82^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7a48bdd01b5cab9c043b4d42a3f377624d6259f2;p=linux-2.6-omap-h63xx.git 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 Cc: Russell King --- diff --git a/Makefile b/Makefile index ea413fa03e4..343ec4774b5 100644 --- a/Makefile +++ b/Makefile @@ -929,10 +929,10 @@ ifneq ($(KBUILD_SRC),) echo " in the '$(srctree)' directory.";\ /bin/false; \ fi; - $(Q)if [ ! -d include2 ]; then mkdir -p include2; fi; - $(Q)if [ -e $(srctree)/include/asm-$(SRCARCH)/errno.h ]; then \ + $(Q)if [ ! -d include2 ]; then \ + mkdir -p include2; \ ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm; \ - fi + fi endif # prepare2 creates a makefile if using a separate output directory