From: BlaisorBlade <blaisorblade_work@yahoo.it>
To: kbuild-devel@lists.sourceforge.net
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] Re: [kbuild-devel] Needed help for UML kbuild.
Date: Sat, 27 Dec 2003 18:35:35 +0100 [thread overview]
Message-ID: <200312271835.36286.blaisorblade_work@yahoo.it> (raw)
In-Reply-To: <20031225104559.A23615@infradead.org>
Alle 11:45, giovedì 25 dicembre 2003, Christoph Hellwig ha scritto:
> Please don't use shouting names..
Ok. Then user-objs; or if this could be used somewhere else, uml-user-objs.
> > The list always contains, in the arch/um subfolders, all objects whose
> > name matches %_user.o(as it has always been for UML).
>
> This doesn't sound like a good heuristic, imagine a driver using e.g.
> foo_user.c for the chardev user interface.
UML 2.4 has been written with this in mind. If an UML file is named *_user.c,
that already means that it needs special treatment. Everywhere inside
arch/um.
So the heuristic does work, for UML (and only for UML). Really.
> In general I'd suggest adding
> parallel infrastructure for user-$(CONFIG_FOO) variables in addition to
> the current obj-* and host-*. The only problem you could get with that
> is that you need to take special care of the link order.
In general you are right. But the current content of the average UML Makefile
is like this:
<setting obj-y and obj-m the normal way>
<1:> USER_SINGLE_OBJS = $(foreach f,$(patsubst %.o,%,$(obj-y)
$(obj-m)),$($(f)-objs))
<2:> USER_OBJS = $(filter %_user.o,$(obj-y) $(obj-m) $(USER_SINGLE_OBJS)) fd.o
\
null.o pty.o tty.o xterm.o
<3:> $(USER_OBJS) : %.o: %.c
$(CC) $(CFLAGS_$@) $(USER_CFLAGS) -c -o $@ $<
And this content is repeated for each single Makefile.
That becomes, with the API I suggest:
<setting obj-y and obj-m as always>
user-objs += fd.o null.o pty.o tty.o xterm.o
But if you don't like that heuristic, this means that <1:> and <2:> remain
repeated in each Makefile, while only <3:> can be removed.
--
cat <<EOSIGN
Paolo Giarrusso, aka Blaisorblade
Kernel 2.4.21/2.6.0-test on an i686; Linux registered user n. 292729
EOSIGN
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id\x1278&alloc_id371&opÌk
_______________________________________________
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:[~2003-12-27 18:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-24 19:19 [uml-devel] Needed help for UML kbuild BlaisorBlade
2003-12-25 10:45 ` [uml-devel] Re: [kbuild-devel] " Christoph Hellwig
2003-12-27 17:35 ` BlaisorBlade [this message]
[not found] ` <200401062038.37402.blaisorblade_work@yahoo.it>
[not found] ` <20040106202145.GA11953@mars.ravnborg.org>
2004-01-07 19:12 ` BlaisorBlade
2004-01-08 0:19 ` Jeff Dike
2004-01-08 18:07 ` BlaisorBlade
2004-01-09 23:46 ` 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=200312271835.36286.blaisorblade_work@yahoo.it \
--to=blaisorblade_work@yahoo.it \
--cc=kbuild-devel@lists.sourceforge.net \
--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