[PATCH RFC] kbuild: more headers_check fix for non-in-tree builds (was [BUG 2.6.19-rc2-g51018b0a] No rule to make target /mnt/md0/devel/linux-git/include/linux/version.h)

From: Oleg Verych
Date: Tue Oct 17 2006 - 05:44:49 EST



"'objhdr-y' are generated files", thus they are not in $(srctree).
Kbuild.include already included in root Makefile.

Signed-off-by: Oleg Verych <olecom@xxxxxxxxxxxxxx>

---
scripts/Makefile.headersinst | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

Index: linux-2.6.19-rc2/scripts/Makefile.headersinst
===================================================================
--- linux-2.6.19-rc2.orig/scripts/Makefile.headersinst 2006-10-17 06:31:48.379349215 +0000
+++ linux-2.6.19-rc2/scripts/Makefile.headersinst 2006-10-17 06:32:30.161730257 +0000
@@ -39,8 +39,6 @@

include $(KBUILDFILES)

-include scripts/Kbuild.include
-
# If this is include/asm-$(ARCH) and there's no $(ALTARCH), then
# override $(_dst) so that we install to include/asm directly.
# Unless $(BIASMDIR) is set, in which case we're probably doing
@@ -168,7 +166,7 @@
$(call cmd,gen)

else
-$(objhdr-y) : $(INSTALL_HDR_PATH)/$(_dst)/%.h: $(srctree)/$(obj)/%.h $(KBUILDFILES)
+$(objhdr-y) : $(INSTALL_HDR_PATH)/$(_dst)/%.h: $(obj)/%.h $(KBUILDFILES)
$(call cmd,o_hdr_install)

$(header-y) : $(INSTALL_HDR_PATH)/$(_dst)/%.h: $(srctree)/$(obj)/%.h $(KBUILDFILES)



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/