From: David Woodhouse Date: Fri, 13 Oct 2006 15:04:23 +0000 (+0100) Subject: [PATCH] Fix headers_check for O= builds; disable automatic check on UML. X-Git-Tag: v2.6.19-rc2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0e7af8d04ecb4f6ba8cd1f731f036a004ad0e174;p=linux-2.6-omap-h63xx.git [PATCH] Fix headers_check for O= builds; disable automatic check on UML. * make header_check work with O= Signed-off-by: David Woodhouse Signed-off-by: Linus Torvalds --- diff --git a/Makefile b/Makefile index f242829c4f0..eebf310e8ce 100644 --- 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