Re: Cross-compilation problems

"Brian F. G. Bidulock" <[email protected]>
Newsgroups gmane.linux.kernel.streams
Organization http://www.openss7.org/
Message-ID <[email protected]>
Christoph,

Both problems are fixed in LiS 2.18.1.  Compiler flags are now taken by
invoking the kernel Makefile with the cross compiler so there will be
no stack-boundary thing and other flags will be correct.

Also the module post stage uses the cross compiler.  The host compiler
is actually never used.

--brian


On Fri, 12 Nov 2004, Christoph Stueckjuergen wrote:

> Hi,
> 
> I am trying to cross-compile LiS-2.18 for ppc using gcc-3.2.2. The 
> ppc kernel version is 2.6.8.1. There are 2 problems:
> 
> 1) The ppc cross-compiler does not know the 
> -mpreferred-stack-boundary=2 option.
> 
> 2)  When at some stage in the build process the 
> modules/Makefile.modpost gets invoked, it is not aware that we are 
> cross-compiling and uses the native compiler instead of the 
> cross-compiler.
> 
> I could overcome both problems for now with quick-and-dirty hacks. 
> What would be the correct way to solve them?
> 
> Any hints are appreciated!
> 
> Best regards,
> Christoph
> _______________________________________________
> Linux-streams mailing list
> [email protected]
> http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams

-- 
Brian F. G. Bidulock    ¦ The reasonable man adapts himself to the ¦
[email protected]    ¦ world; the unreasonable one persists in  ¦
http://www.openss7.org/ ¦ trying  to adapt the  world  to himself. ¦
                        ¦ Therefore  all  progress  depends on the ¦
                        ¦ unreasonable man. -- George Bernard Shaw ¦
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.