This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: puzzled on how to integrate arm kernel patch(es) into crosstool


Hi Dan;

  I'm not sure how to effectively respond as I'm not sure how meaningful this 
is :-(

  I can't provide actual code so this is a contrived minimal test case...

********************************************************************
#include <iostream>

using namespace std;

// GPIO Specific ARM architecture file.
#include 
"/general/tools/gnu/arm9/gcc_3.2.1/arm-arm9-linux-gnu/sys-include/asm/arch/gpio.h"

int main () {
  cout << AT91_GPIO_OUTPUT << endl;
  return 0;
}
*********************************************************

Hope this helps,
Ken

On Monday 19 January 2004 12:16, Daniel Kegel wrote:
> Ken Wolcott wrote:
> >   I'm not sure if this is exclusively an arm-specific kernel header
> > missing issue or whether it is specific to at91.  One of the developers
> > was unable to build his arm (at91?) specific code without adding a
> > directory of arm specific header files (obtained from a 2.95.3 arm
> > environment) and changing the symlink:
> >
> > .../arm-arm9-linux-gnu/sys-include/asm/arch-at91
> >
> > modified the link "arch" to point at "arch-at91" rather
> > than "arch-integrator".
>
> Aha.  Can you send me a test file from that developer I can use to
> check whether my toolchain comes with the right include files?
> One that doesn't compile with the vanilla crosstool?
>
> > Now the code compiles -- but where is the "pristine" source of this? 
> > would the rmk patch
> > ftp://ftp.arm.linux.org.uk/pub/armlinux/source/kernel-patches/v2.4/patch-
> >2.4.21-rmk1.bz2 have this code?  I suspect not, as reading this email
> >
> > http://lists.arm.linux.org.uk/pipermail/linux-arm-kernel/2004-January/019
> >067.html
> >
> >   So I feel like I am on the verge of success with having a
> > fully-functional arm cross-compiler using crosstool (v0.25)...
>
> Yeah, sounds like you're close.  I'll try to pay attention to the
> thread you linked to.
>
> >   Next I need to build a minimal embedded environment (ptx again?)...
>
> Yes, the wonderful ptxdist.  You should look at its patch repository;
> they may have already solved this very problem.
> - Dan


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]