[okl4-developer] hello_world on gumstix

Geoffrey Lee glee at ok-labs.com
Thu Jul 17 01:52:10 EST 2008


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))


> Thanks,
>  -Kevin
>

	-gl

-- 




More information about the Developer mailing list