Erwin Authried wrote:

> > > > Which architecture are you using ? Which tools ?
> > 
> > I use lpc2292 (arm7tdmi) with arm-elf-tools-20040427 on a suse-10.1
box.
> > 
> > The first problems seem to be related to the build environment.
While
> > uClinux-dist-20051014 used CROSS_COMPILE=arm-elf- (which worked
> > perfectly with arm-elf-tools-20040427.sh), uClinux-dist-20070130
uses
> > CROSS_COMPILE=arm-linux- by default.  I tried to fix this by
> > 
> >    ---
uClinux-dist-20070130.orig/vendors/config/armnommu/config.arch
2006-07-31 01:24:35.000000000 +0200
> >    +++ uClinux-dist-20070130/vendors/config/armnommu/config.arch
2007-02-07 17:14:07.000000000 +0100
> >    @@ -61,7 +61,7 @@
> >     ARCH          = armnommu
> >     endif
> >     ENDIAN        ?= little
> >    -CROSS_COMPILE = arm-linux-
> >    +CROSS_COMPILE = arm-elf-
> >     CROSS         = $(CROSS_COMPILE)
> >     CONFIGURE_HOST = arm-linux
> Hi Josef,
> yes, this adjustment may be necessary depending on the toolchain that
> you use. For the 2.4 kernel, it may still be necessary to use the good
> old 20030314 toolchain, because of some syntactical problems 
> with recent compilers.

So it's probably best to stick with the old toolchain for now?

> > But now I get errors about missing header files:
> ...
> > I remember long time ago (the times when you compiled kernel
yourself,
> > instead of using packet management) similar problems with
> > /usr/include/asm and /usr/include/sys directories.  Those were fixed
> > by symlinking.  I guess I need to
> > 
> >   ln -s uClinux-dist-20070130/linux-2.4.32/include/asm-arm
uClinux-dist-20070130/linux-2.4.32/include/asm
> > 
> > but I doubt this is the right way to fix it.
> > 
> > Any suggestions?
> > 
> No, no hand-symlinking!! Are you sure that you have done "make dep"?
> Eventually, start again from a fresh source tree, especially 
> if you have switched to a different toolchain.

Strange things happen here.  This is what I have done:

 1. removed old tree
 2. unpacked new tree
 3. "make MYVENDOR/MYBOARD_default" (this failed because of the wrong
    CROSS_COMPILE setting mentioned above.)
 4. make the change to CROSS_COMPILE=arm-elf
 5. "make MYVENDOR/MYBOARD_default" (this failed because of missing
    includes)

Then I started over from item 1., but omitted item 3. and the problems
with missing includes were gone.  This looks like the XXX/YYY_default
make target don't work properly?

I now stick with a different problem, but I'll start a new thread for
that.
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to