Re: Cross compiling NSPR for an xtensa processor

Pradeep <[email protected]>
Newsgroups gmane.comp.mozilla.devel.nspr
Organization http://groups.google.com
Message-ID <[email protected]>
Hello Wan-Teh,
                    From the nspr porting instructions I saw that the
jmp_buf information from _linux.h is used only for the local NSPR
version. And as i have the pthread library the USE_PTHREADS=1 in the
autoconf.mk. So will I be correct in thinking that the jmp_buf
information will not be used.

Thank you
Pradeep


On Sep 7, 11:05 am, "Wan-Teh Chang" <[email protected]> wrote:
> On 9/7/07, Pradeep <[email protected]> wrote:
>
> > Hello,
> > I have trying to cross compile firefox for an tensilica xtensa
> > processor. I am using a linux support package from Montavista which
> > does not have the libnspr. when the build tries to cross compile NSPR
> > it fails with the  error:  Unknown architecture.
>
> > >From some previous posts, I noticed that i needed to create a
> > prcpucfg.h which I did. But looking into _linux.h, I noticed that
> > there was some additional information for each processor.
>
> > Could you please help with information as to how I can
> > modify this source for a new architecture.
>
> It is possible to cross compile NSPR, but I don't know how
> to do that.
>
> For Linux, prcpucfg.h is mozilla/nsprpub/pr/include/md/_linux.cfg.
> _linux.cfg is renamed prcpucfg.h under the "dist" directory during
> the build.
>
> In _linux.cfg and _linux.h, there are sections specific to
> various processors.  If the tensilica xtensa processor
> isn't listed in _linux.cfg and _linux.h, you can search for
> "arm" in those two files and add similar code for your
> processor.
>
> Wan-Teh
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.