[okl4-developer] hello_world on gumstix

Kevin Lloyd klloyd at sierrawireless.com
Thu Jul 17 02:36:12 EST 2008


Geoffrey wrote:
> On Wed, Jul 16, 2008 at 08:45:12AM -0700, Kevin Lloyd wrote:
> > Geoffrey wrote:
> > > env.scons_env["CC"] contains the value of the cross compiler.  You can
> > > use CC= to pass that into the Makefile.
> >
> > Okay. I assume I should then set this to arm-linux-gcc? Shouldn't this already be set by the 'machine=gumstix'
> parameter when executing /tools/build.py? I don't see any of the other Makefile / SConscripts having to
> explicitly set this.
> >
>
> You should pass in the C compiler to the Make build system.  Assuming
> the default of CC, you can do the following:
>
>                       "CC=%s PREFIX=%s/usr ZLIB=no $MAKE -j %d -C
> %s/apps/my_app" %
>                       (env.scons_env["CC"], inst_dir,
> GetOption('num_jobs'), env.oklinux_dir))
Thank you for spelling it out for me.

I modified the SConscript to include the CC parameter as you indicated and I am still having the same problem (syntax error when execute 'hello' while running on gumstix via skyeye). Any other suggestions?

Thanks,
 -Kevin

Here is a small snippet from the /tools/build.py log:
CC=arm-linux-gcc PREFIX=/home/shared2/projects/aob/okl4_2.1.1-patch.9/build/linux/install ZLIB=no make -j 1 -C linux/apps/hello
make: Entering directory `/home/shared2/projects/aob/oklinux_2.6.23.24/apps/hello'
make: Nothing to be done for `all'.
make: Leaving directory `/home/shared2/projects/aob/oklinux_2.6.23.24/apps/hello'
CC=arm-linux-gcc PREFIX=/home/shared2/projects/aob/okl4_2.1.1-patch.9/build/linux/install make -C linux/apps/hello install
make: Entering directory `/home/shared2/projects/aob/oklinux_2.6.23.24/apps/hello'
install hello /home/shared2/projects/aob/okl4_2.1.1-patch.9/build/linux/install/bin
make: Leaving directory `/home/shared2/projects/aob/oklinux_2.6.23.24/apps/hello'



More information about the Developer mailing list