* [BUG 2.6.19-rc2-g51018b0a] No rule to make target `/mnt/md0/devel/linux-git/include/linux/version.h
@ 2006-10-16 10:52 Michal Piotrowski
2006-10-17 9:43 ` [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) Oleg Verych
2006-10-17 14:03 ` [PATCH .19-rc2] kbuild: Another 'headers*' fix for non in-tree build Oleg Verych
0 siblings, 2 replies; 3+ messages in thread
From: Michal Piotrowski @ 2006-10-16 10:52 UTC (permalink / raw)
To: LKML
Hi,
"make O=/dir" is brooken.
make[4]: *** No rule to make target
`/mnt/md0/devel/linux-git/include/linux/version.h', needed by
`/mnt/md0/devel/linux-git-obj/usr/include/linux/version.h'. Stop.
make[3]: *** [linux] Error 2
make[2]: *** [headers_install] Error 2
make[1]: *** [vmlinux] Error 2
make: *** [_all] Error 2
Regards,
Michal
--
Michal K. K. Piotrowski
LTG - Linux Testers Group
(http://www.stardust.webpages.pl/ltg/)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [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)
2006-10-16 10:52 [BUG 2.6.19-rc2-g51018b0a] No rule to make target `/mnt/md0/devel/linux-git/include/linux/version.h Michal Piotrowski
@ 2006-10-17 9:43 ` Oleg Verych
2006-10-17 14:03 ` [PATCH .19-rc2] kbuild: Another 'headers*' fix for non in-tree build Oleg Verych
1 sibling, 0 replies; 3+ messages in thread
From: Oleg Verych @ 2006-10-17 9:43 UTC (permalink / raw)
To: linux-kernel
"'objhdr-y' are generated files", thus they are not in $(srctree).
Kbuild.include already included in root Makefile.
Signed-off-by: Oleg Verych <olecom@flower.upol.cz>
---
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)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH .19-rc2] kbuild: Another 'headers*' fix for non in-tree build
2006-10-16 10:52 [BUG 2.6.19-rc2-g51018b0a] No rule to make target `/mnt/md0/devel/linux-git/include/linux/version.h Michal Piotrowski
2006-10-17 9:43 ` [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) Oleg Verych
@ 2006-10-17 14:03 ` Oleg Verych
1 sibling, 0 replies; 3+ messages in thread
From: Oleg Verych @ 2006-10-17 14:03 UTC (permalink / raw)
To: linux-kernel
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@flower.upol.cz>
---
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@gmail.com>
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)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-10-17 14:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-16 10:52 [BUG 2.6.19-rc2-g51018b0a] No rule to make target `/mnt/md0/devel/linux-git/include/linux/version.h Michal Piotrowski
2006-10-17 9:43 ` [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) Oleg Verych
2006-10-17 14:03 ` [PATCH .19-rc2] kbuild: Another 'headers*' fix for non in-tree build Oleg Verych
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®