[PATCH .19-rc2] kbuild: Another 'headers*' fix for non in-tree build

From: Oleg Verych
Date: Tue Oct 17 2006 - 10:04:22 EST



While it mostly work, version.h header *is* generated, thus resides
in $(objtree), not $(srctree).
This broke headers_install, thus headers_check.

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

---
was [BUG 2.6.19-rc2-g51018b0a] No rule to make target
/mnt/md0/devel/linux-git/include/linux/version.h
by Michal Piotrowski <michal.k.k.piotrowski@xxxxxxxxx>

Test it, please, Michal. I think this, non-rfc version, is OK for 2.6.19.

scripts/Makefile.headersinst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6.19-rc2/scripts/Makefile.headersinst
===================================================================
--- linux-2.6.19-rc2.orig/scripts/Makefile.headersinst 2006-10-17 13:40:58.091384132 +0000
+++ linux-2.6.19-rc2/scripts/Makefile.headersinst 2006-10-17 13:42:03.591116749 +0000
@@ -168,7 +168,7 @@
$(call cmd,gen)

else
-$(objhdr-y) : $(INSTALL_HDR_PATH)/$(_dst)/%.h: $(srctree)/$(obj)/%.h $(KBUILDFILES)
+$(objhdr-y) : $(INSTALL_HDR_PATH)/$(_dst)/%.h: $(objtree)/$(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/