All of lore.kernel.org
 help / color / mirror / Atom feed
* ADT/SDK and cmake - generating the toolchain/cmake config
@ 2014-04-01 16:22 Jonathan Austin
  2014-04-02  0:49 ` Philip Balister
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Austin @ 2014-04-01 16:22 UTC (permalink / raw)
  To: yocto

Hi all,

The ADT documentation walks you through building an 'app' using 
autoconf/make, and the environment setup script that is created as part 
of the SDK build contains all the necessary autofoo/environment 
variables. This is great, and I've worked through the autotools example 
happily. Thanks :)

What I can't find, though, is anything that does the equivalent for 
cmake. I'm new to cmake so could be missing something obvious, but after 
seeing the 'environment-setup-TARGET' files (the ones at 
/opt/poky/1.5.1/) I thought there might also be a cmake toolchain file 
(toolchain-TARGET.cmake, for example) or some other cmake-foo.

I can see that cmake support was merged for Eclipse/ADT, so it seems 
like cmake could be supported 'outside the IDE', but I can't quite see 
how what I ought to twiddle to do this. I found the tantalizingly named 
'cmake_do_generate_toolchain_file()' and all the other relevant stuff in 
meta/classes/cmake.bbclass, but I don't know what the 'right' way to 
propagate all that stuff into the SDK/ADT would be.

Any help with getting started would be greatly appreciated.

Thanks
Jonny



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ADT/SDK and cmake - generating the toolchain/cmake config
  2014-04-01 16:22 ADT/SDK and cmake - generating the toolchain/cmake config Jonathan Austin
@ 2014-04-02  0:49 ` Philip Balister
  2014-04-11 15:23   ` Jonathan Austin
  0 siblings, 1 reply; 3+ messages in thread
From: Philip Balister @ 2014-04-02  0:49 UTC (permalink / raw)
  To: Jonathan Austin; +Cc: yocto

On 04/01/2014 09:22 AM, Jonathan Austin wrote:
> Hi all,
> 
> The ADT documentation walks you through building an 'app' using
> autoconf/make, and the environment setup script that is created as part
> of the SDK build contains all the necessary autofoo/environment
> variables. This is great, and I've worked through the autotools example
> happily. Thanks :)
> 
> What I can't find, though, is anything that does the equivalent for
> cmake. I'm new to cmake so could be missing something obvious, but after
> seeing the 'environment-setup-TARGET' files (the ones at
> /opt/poky/1.5.1/) I thought there might also be a cmake toolchain file
> (toolchain-TARGET.cmake, for example) or some other cmake-foo.
> 
> I can see that cmake support was merged for Eclipse/ADT, so it seems
> like cmake could be supported 'outside the IDE', but I can't quite see
> how what I ought to twiddle to do this. I found the tantalizingly named
> 'cmake_do_generate_toolchain_file()' and all the other relevant stuff in
> meta/classes/cmake.bbclass, but I don't know what the 'right' way to
> propagate all that stuff into the SDK/ADT would be.
> 
> Any help with getting started would be greatly appreciated.

This toolchain file builds gnuradio from an SDK:

https://github.com/gnuradio/gnuradio/blob/master/cmake/Toolchains/oe-sdk_cross.cmake

Does this help?

Philip

> 
> Thanks
> Jonny
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ADT/SDK and cmake - generating the toolchain/cmake config
  2014-04-02  0:49 ` Philip Balister
@ 2014-04-11 15:23   ` Jonathan Austin
  0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Austin @ 2014-04-11 15:23 UTC (permalink / raw)
  To: Philip Balister; +Cc: yocto

Hi Philip,

On 02/04/14 01:49, Philip Balister wrote:
> On 04/01/2014 09:22 AM, Jonathan Austin wrote:
>> Hi all,
>>
>> The ADT documentation walks you through building an 'app' using
>> autoconf/make, and the environment setup script that is created as part
>> of the SDK build contains all the necessary autofoo/environment
>> variables. This is great, and I've worked through the autotools example
>> happily. Thanks :)
>>
>> What I can't find, though, is anything that does the equivalent for
>> cmake. I'm new to cmake so could be missing something obvious, but after
>> seeing the 'environment-setup-TARGET' files (the ones at
>> /opt/poky/1.5.1/) I thought there might also be a cmake toolchain file
>> (toolchain-TARGET.cmake, for example) or some other cmake-foo.
>>
>> I can see that cmake support was merged for Eclipse/ADT, so it seems
>> like cmake could be supported 'outside the IDE', but I can't quite see
>> how what I ought to twiddle to do this. I found the tantalizingly named
>> 'cmake_do_generate_toolchain_file()' and all the other relevant stuff in
>> meta/classes/cmake.bbclass, but I don't know what the 'right' way to
>> propagate all that stuff into the SDK/ADT would be.
>>
>> Any help with getting started would be greatly appreciated.
>
> This toolchain file builds gnuradio from an SDK:
>
> https://github.com/gnuradio/gnuradio/blob/master/cmake/Toolchains/oe-sdk_cross.cmake
>

That looks great, thanks.

I did run into problems with the CC and CXX strings, as for me those 
include lots of flags (ie spaces, confusing the CMake foo). I ended up 
adding new environment variables just for CMAKE to the environment setup 
file - what did you do for those? I basically used the same approach as 
is used in cmake.bbclass.

Jonny

> Does this help?
>
> Philip
>
>>
>> Thanks
>> Jonny
>>
>




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-04-11 15:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-01 16:22 ADT/SDK and cmake - generating the toolchain/cmake config Jonathan Austin
2014-04-02  0:49 ` Philip Balister
2014-04-11 15:23   ` Jonathan Austin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.