]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
kbuild: fix O=... build of um
authorSam Ravnborg <sam@ravnborg.org>
Wed, 30 Jul 2008 20:21:20 +0000 (22:21 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Wed, 30 Jul 2008 20:21:20 +0000 (22:21 +0200)
We used include/asm-$ARCH/system.h to check if
we should create a symlink in include2 directory with
make O=... builds.
But um does not have such a file thus build filed.

Let's try anohter filename:
$ ls -d include/asm-* | wc -l
21
$ ls -d include/asm-*/errno.h | wc -l
21

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Jeff Dike <jdike@addtoit.com>
Makefile

index aa527a46c8070f77582671b71b6e5470c0f87aae..f156f40d6334282160409ef6a2ca30ee755de98a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -930,7 +930,7 @@ ifneq ($(KBUILD_SRC),)
                /bin/false; \
        fi;
        $(Q)if [ ! -d include2 ]; then mkdir -p include2; fi;
-       $(Q)if [ -e $(srctree)/include/asm-$(SRCARCH)/system.h ]; then  \
+       $(Q)if [ -e $(srctree)/include/asm-$(SRCARCH)/errno.h ]; then  \
            ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm;     \
            fi
 endif