On Tuesday 22 March 2005 20:07, Gerd Knorr wrote:
> On Tue, Mar 22, 2005 at 06:53:20PM +0100, Blaisorblade wrote:
> > On Sunday 20 March 2005 16:03, Gerd Knorr wrote:
> > > > 1) how the user must choose what he wants (SUBARCH=i386 can be
> > > > useful, maybe a Kconfig option would be nice - we need to choose the
> > > > default depending on the host arch).
> > >
> > > That one is easy -- just use "linux32 make ...".  That will switch the
> > > personality and "uname" will return "i686" instead of "x86_64" then ;)
> >
> > linux32 is a SuSE specific alias like the "i386" for Fedora, right (they
> > both alias setarch, IIRC)?
>
> Don't have a "setarch" binary here.  But most likely they do almost the
> same, yes.
>
> > > Not needed I think.  Thats used for kconfig and other stuff which runs
> > > on the _host_ machine (for cross compiles), thus it doesn't hurt if it
> > > is 64 bit.
> >
> > I'm not sure, but that's probably needed for the userspace utilities that
> > print out some headers (with offsets inside host proc. specific structs).
>
> Uhm, ok, then it probably is needed.  This also means that you can't
> cross-compile uml kernels, right?
Eh? Those utilities must run on the compile host, and they are compiled with 
HOSTCC, but use the targets header. So on x86-64 / x86 it works, but probably 
in general you are right (I don't have the whole picture right now, but this 
makes sense).

That said, Al Viro changed this significantly when working on making UML 
cross-compile well, so you again are probably right. I'm currently merging 
his work in little pieces.
-- 
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade




-------------------------------------------------------
This SF.net email is sponsored by: 2005 Windows Mobile Application Contest
Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones
for the chance to win $25,000 and application distribution. Enter today at
http://ads.osdn.com/?ad_id=6882&alloc_id=15148&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

Reply via email to