Any suggestion as to setting up "configure" for the SDK ?

Discussion of the current official Parallella SDK. (ESDK, COPRTHR)

Moderators: ysapir, jeremybennett, amylaar, simoncook

Any suggestion as to setting up "configure" for the SDK ?

Postby Dr.BeauWebber » Mon May 27, 2013 2:26 pm

Hi,
Well now I have the gcc tool-chain installed, and helloworld.c compiles and runs fine,
I want to compile a larger package (or just its library) that is configured using the script "configure".

Does anyone have any suggestions as to a correct way of doing this ?

I want to cross-compile from host: Cygwin to target : parallella simulator.

I have found the following very helpful page, but am not yet quite sure what text strings to enter where for configure :
http://airs.com/ian/configure/configure_5.html
Help appreciated,
cheers,
Beau
User avatar
Dr.BeauWebber
 
Posts: 111
Joined: Mon Dec 17, 2012 4:01 am
Location: England

Re: Any suggestion as to setting up "configure" for the SDK

Postby Dr.BeauWebber » Mon May 27, 2013 4:07 pm

The first and most essential point is :
what is the correct string for the --target flag for the Parallella ?
i.e. when not cross compiling, on my laptop Windows Cygwin system, it uses (from the .log file) :
Target: i686-pc-cygwin
User avatar
Dr.BeauWebber
 
Posts: 111
Joined: Mon Dec 17, 2012 4:01 am
Location: England

Re: Any suggestion as to setting up "configure" for the SDK

Postby Dr.BeauWebber » Mon May 27, 2013 10:10 pm

OK, I am making progress setting up configure for the Parallella

The key clues are in : http://stackoverflow.com/questions/10979264/how-to-cross-build-gzip
but more ideally needs to be done to set things up properly.

First, copy config.sub from the epiphany source into the same directory as your configure script.
But this is not sufficient, at least for my code, as it does not define the MACHOS.
I added a brutal hack to config.sub so when fed the string "eIII-parallella-epiphany" it just echoed it, otherwise behaves normally.

You will need to run autoconf :
Generate a configuration script from a TEMPLATE-FILE if given, or `configure.ac' if present, or else `configure.in'. Output is sent to the standard output if TEMPLATE-FILE is given, else into `configure'.


I first added a MACHOS definition for epiphany to my configure.in :
Code: Select all
case "$target_os" in
   cygwin*)     MACHOS=CYGWIN;;
  ........
   epiphany*)   MACHOS=EPIPHANY;;
esac

and then ran autoconf to re-create configure.

I am now using the configure command :
Code: Select all
./configure CC=/cygdrive/[mypath]/Parallella/INSTALL/bin/e-gcc --host=eIII-parallella-epiphany

which seems to generate what I need, though I still have things to sort.
User avatar
Dr.BeauWebber
 
Posts: 111
Joined: Mon Dec 17, 2012 4:01 am
Location: England


Return to Parallella SDK

Who is online

Users browsing this forum: No registered users and 2 guests