From: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
To: Blaisorblade <blaisorblade@yahoo.it>
Cc: Jeff Dike <jdike@addtoit.com>,
user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] Re: uml kbuild cleanup (cross-build) - some fixes and comments
Date: Thu, 10 Feb 2005 19:04:12 +0000 [thread overview]
Message-ID: <20050210190412.GC8859@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <200502101939.23300.blaisorblade@yahoo.it>
On Thu, Feb 10, 2005 at 07:39:23PM +0100, Blaisorblade wrote:
> 3) I don't understand how vmlinux.lds.S is created... it's a symlink, but it's
> created nowhere after the patch - maybe I overlook something, maybe you
> didn't do "make clean" and retest.
Not a symlink anymore. It's right there in the patch -
+#include <linux/config.h>
+#ifdef CONFIG_LD_SCRIPT_STATIC
+#include "uml.lds.S"
+#else
+#include "dyn.lds.S"
+#endif
and it gives you want you want without any symlinks. And it will get a
dependency (see .vmlinux.lds.cmd after build) on the right things:
deps_arch/um/kernel/vmlinux.lds := \
/home/users/al/kernel/RC11-rc3-bk6-current/arch/um/kernel/vmlinux.lds.S \
$(wildcard include/config/ld/script/static.h) \
/home/users/al/kernel/RC11-rc3-bk6-current/include/linux/config.h \
$(wildcard include/config/h.h) \
/home/users/al/kernel/RC11-rc3-bk6-current/arch/um/kernel/uml.lds.S \
/home/users/al/kernel/RC11-rc3-bk6-current/include/asm-generic/vmlinux.lds.h \
include2/asm/common.lds.S \
It gets rebuilt if vmlinux.lds.S changes or uml.lds.S changes or
CONFIG_LD_SCRIPT_STATIC gets changed.
That was from build with LD_SCRIPT_STATIC; turn it off and that will
a) trigger rebuild of vmlinux.lds (include/config/ld/script/static.h
dependency will take care of that)
b) replace dependency on uml.lds.S with that on dyn.lds.S.
No need to mess with symlinks, these files are going through preprocessor
anyway, so we have #ifdef and #include...
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2005-02-10 19:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-10 18:39 [uml-devel] uml kbuild cleanup (cross-build) - some fixes and comments Blaisorblade
2005-02-10 19:04 ` Al Viro [this message]
2005-02-10 19:16 ` [uml-devel] " Blaisorblade
2005-02-10 20:16 ` Al Viro
2005-02-10 20:11 ` Al Viro
2005-02-10 20:19 ` Blaisorblade
2005-02-10 23:11 ` Jeff Dike
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050210190412.GC8859@parcelfarce.linux.theplanet.co.uk \
--to=viro@parcelfarce.linux.theplanet.co.uk \
--cc=blaisorblade@yahoo.it \
--cc=jdike@addtoit.com \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox