From: Jeff Dike <jdike@addtoit.com>
To: BlaisorBlade <blaisorblade_work@yahoo.it>
Cc: Sam Ravnborg <sam@ravnborg.org>,
kbuild-devel@lists.sourceforge.net,
user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] Re: [kbuild-devel] Needed help for UML kbuild.
Date: Wed, 07 Jan 2004 19:19:24 -0500 [thread overview]
Message-ID: <200401080019.i080JOtd008375@ccure.user-mode-linux.org> (raw)
In-Reply-To: Your message of "Wed, 07 Jan 2004 20:12:04 +0100." <200401072012.05007.blaisorblade_work@yahoo.it>
blaisorblade_work@yahoo.it said:
> some modules(i.e. hostaudio) are built from a "userspace" (needing the
> special treatment) file and a "kernel" (to be compiled as usual)
> file. How will kbuild link them together?
> I have three workarounds:
> - split the module into 2 separate ones, with the kernel one requiring the
> other. BUT a lot of EXPORT_SYMBOLS should be added (one for each function
> inside the userspace file at least)
> - create a symlink from arch/um/drivers/hostaudio_user.c(old place) to
> arch/um/os/drivers/hostaudio_user.c (new place) and pass the symlink to gcc.
> This must be done only when the file will be part of a module.
> Note that arch/um/os is a symlink to arch/um/os-{Linux, Win, any OS needed}.
> - (worst option) make kbuild link together objects from different folders
> inside one module. But I don't like this and I guess this would never be
> accepted (this is against a fundamental kbuild assumption, IIRC).
Option 2 would work, although I would try to avoid that. I would rather
have everything under arch/um/os be userspace code, and none of it be kernel
code.
So, rather than have a module consisting of a userspace chunk and a kernel
chunk needing to be turned into a single .o, I would rather look at having
two modules, with the userspace piece plugging into an interface in the
kernel piece.
This is what I've envisioned for hostfs for a long time. You don't need to
stick host files underneath hostfs files - you can stick other host resources
under them, and the way to do that is to have multiple hostfs userspace modules
which plug into an interface in the hostfs kernel piece, each of which provides
access to a different sort of host resource.
So, I would look at the other problematic modules and see if they can be treated
in the same way.
So, I basically don't like the idea of making the CFLAGS munging part of kbuild
overall. It's very UML-specific now, and in the future, it will become specific
to small pieces of UML.
Jeff
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
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:[~2004-01-08 0:19 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
[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 [this message]
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=200401080019.i080JOtd008375@ccure.user-mode-linux.org \
--to=jdike@addtoit.com \
--cc=blaisorblade_work@yahoo.it \
--cc=kbuild-devel@lists.sourceforge.net \
--cc=sam@ravnborg.org \
--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