[PATCH] Fix headers_check for O= builds; disable automatic check on UML.
authorDavid Woodhouse <dwmw2@infradead.org>
Fri, 13 Oct 2006 15:04:23 +0000 (16:04 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 13 Oct 2006 15:35:39 +0000 (08:35 -0700)
 * make header_check work with O=

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Makefile

index f242829c4f0bd85a11dd092ac1f5bc2587608f5e..eebf310e8ce45552267b203a93026d92dc114cd8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -742,7 +742,7 @@ endif # ifdef CONFIG_KALLSYMS
 # vmlinux image - including updated kernel symbols
 vmlinux: $(vmlinux-lds) $(vmlinux-init) $(vmlinux-main) $(kallsyms.o) FORCE
 ifdef CONFIG_HEADERS_CHECK
-       $(Q)$(MAKE) headers_check
+       $(Q)$(MAKE) -f $(srctree)/Makefile headers_check
 endif
        $(call if_changed_rule,vmlinux__)
        $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost $@
@@ -935,7 +935,7 @@ headers_install_all: include/linux/version.h scripts_basic FORCE
 
 PHONY += headers_install
 headers_install: include/linux/version.h scripts_basic FORCE
-       @if [ ! -r include/asm-$(ARCH)/Kbuild ]; then \
+       @if [ ! -r $(srctree)/include/asm-$(ARCH)/Kbuild ]; then \
          echo '*** Error: Headers not exportable for this architecture ($(ARCH))'; \
          exit 1 ; fi
        $(Q)$(MAKE) $(build)=scripts scripts/unifdef