comp.lang.ada
 help / color / mirror / Atom feed
* gnat for yocto
@ 2019-09-04 21:56 R Srinivasan
  2019-09-05  0:28 ` Lucretia
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: R Srinivasan @ 2019-09-04 21:56 UTC (permalink / raw)


I was referred to this recipe on GitHub:

https://github.com/lucretia/meta-ada

however this appears to be "dormant"

anyone using this recipe? particularly "rocko" or later?

I would like to compare notes on this versus building using a cross compiler system and running it on the target generated by yocto. 

thanks for any pointers, srini


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

* Re: gnat for yocto
  2019-09-04 21:56 gnat for yocto R Srinivasan
@ 2019-09-05  0:28 ` Lucretia
  2019-09-05  8:42 ` Dmitry A. Kazakov
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 13+ messages in thread
From: Lucretia @ 2019-09-05  0:28 UTC (permalink / raw)


On Wednesday, 4 September 2019 22:56:10 UTC+1, R Srinivasan  wrote:
> I was referred to this recipe on GitHub:
> 
> https://github.com/lucretia/meta-ada
> 
> however this appears to be "dormant"
> 

Last time I tried it in yocto, it no longer worked. They didn't something, don't know what, to the toolchain build so it's not as easy to hook into, iirc.

Luke.


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

* Re: gnat for yocto
  2019-09-04 21:56 gnat for yocto R Srinivasan
  2019-09-05  0:28 ` Lucretia
@ 2019-09-05  8:42 ` Dmitry A. Kazakov
  2019-09-05  9:53   ` Lucretia
  2019-09-05 10:14   ` R Srinivasan
  2019-09-05 12:08 ` Lucretia
  2019-09-05 19:23 ` Lucretia
  3 siblings, 2 replies; 13+ messages in thread
From: Dmitry A. Kazakov @ 2019-09-05  8:42 UTC (permalink / raw)


On 2019-09-04 23:56, R Srinivasan wrote:
> I was referred to this recipe on GitHub:
> 
> https://github.com/lucretia/meta-ada
> 
> however this appears to be "dormant"
> 
> anyone using this recipe? particularly "rocko" or later?
> 
> I would like to compare notes on this versus building using a cross compiler system and running it on the target generated by yocto.
> 
> thanks for any pointers, srini

We use a GNAT Pro cross-compiler for ARM with Yocto.

If you don't have GNAT Pro, the easiest way is to use native Debian or 
Ubuntu GNAT FSF tool-chain for ARM. The result will run on Yocto if all 
libraries match.

P.S. Purchase some inexpensive powerful board like Odroid XU4 for the 
developing platform. The native GNAT tends to run out of memory and is 
incredibly sluggish on low-end boards.

P.P.S. What people find in Yocto? It reminds me first releases of 
Slackware, back in the future ...

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

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

* Re: gnat for yocto
  2019-09-05  8:42 ` Dmitry A. Kazakov
@ 2019-09-05  9:53   ` Lucretia
  2019-09-05 11:43     ` Dmitry A. Kazakov
  2019-09-05 10:14   ` R Srinivasan
  1 sibling, 1 reply; 13+ messages in thread
From: Lucretia @ 2019-09-05  9:53 UTC (permalink / raw)


On Thursday, 5 September 2019 09:42:36 UTC+1, Dmitry A. Kazakov  wrote:

> > I would like to compare notes on this versus building using a cross compiler system and running it on the target generated by yocto.
> > 
> > thanks for any pointers, srini
> 
> We use a GNAT Pro cross-compiler for ARM with Yocto.
> 
> If you don't have GNAT Pro, the easiest way is to use native Debian or 
> Ubuntu GNAT FSF tool-chain for ARM. The result will run on Yocto if all 
> libraries match.

You're missing the point. Yocto requires that there be some sort of recipe to build GNAT in the first place. You've obviously built a recipe for gnat-pro that works for you. What my repo above did was essentially override the gcc build to include GNAT in the build process, it did work, ages ago.
 
> P.P.S. What people find in Yocto? It reminds me first releases of 
> Slackware, back in the future ...

It's just a build framework for creating a full Linux distro on an embedded board, just makes things easier.

Luke.

P.S: I've not used it in years.


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

* Re: gnat for yocto
  2019-09-05  8:42 ` Dmitry A. Kazakov
  2019-09-05  9:53   ` Lucretia
@ 2019-09-05 10:14   ` R Srinivasan
  1 sibling, 0 replies; 13+ messages in thread
From: R Srinivasan @ 2019-09-05 10:14 UTC (permalink / raw)


On Thursday, September 5, 2019 at 4:42:36 AM UTC-4, Dmitry A. Kazakov wrote:
> On 2019-09-04 23:56, R Srinivasan wrote:
> > I was referred to this recipe on GitHub:
> > 
> > https://github.com/lucretia/meta-ada
> > 
> > however this appears to be "dormant"
> > 
> > anyone using this recipe? particularly "rocko" or later?
> > 
> > I would like to compare notes on this versus building using a cross compiler system and running it on the target generated by yocto.
> > 
> > thanks for any pointers, srini
> 
> We use a GNAT Pro cross-compiler for ARM with Yocto.
> 
> If you don't have GNAT Pro, the easiest way is to use native Debian or 
> Ubuntu GNAT FSF tool-chain for ARM. The result will run on Yocto if all 
> libraries match.
> 
> P.S. Purchase some inexpensive powerful board like Odroid XU4 for the 
> developing platform. The native GNAT tends to run out of memory and is 
> incredibly sluggish on low-end boards.
> 
> P.P.S. What people find in Yocto? It reminds me first releases of 
> Slackware, back in the future ...
> 
> -- 
> Regards,
> Dmitry A. Kazakov
> http://www.dmitry-kazakov.de

perfect. I was looking for someone who has done that - to confirm that this is a viable approach.  I am currently using "go" based tools in a similar fashion.

yocto meets a unique need for us. We are involved in building a medical device. don't have too many options in this space. 

thanks, srini

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

* Re: gnat for yocto
  2019-09-05  9:53   ` Lucretia
@ 2019-09-05 11:43     ` Dmitry A. Kazakov
  2019-09-19  9:31       ` R Srinivasan
  0 siblings, 1 reply; 13+ messages in thread
From: Dmitry A. Kazakov @ 2019-09-05 11:43 UTC (permalink / raw)


On 2019-09-05 11:53, Lucretia wrote:
> On Thursday, 5 September 2019 09:42:36 UTC+1, Dmitry A. Kazakov  wrote:
> 
>>> I would like to compare notes on this versus building using a cross compiler system and running it on the target generated by yocto.
>>>
>>> thanks for any pointers, srini
>>
>> We use a GNAT Pro cross-compiler for ARM with Yocto.
>>
>> If you don't have GNAT Pro, the easiest way is to use native Debian or
>> Ubuntu GNAT FSF tool-chain for ARM. The result will run on Yocto if all
>> libraries match.
> 
> You're missing the point. Yocto requires that there be some sort of recipe to build GNAT in the first place. You've obviously built a recipe for gnat-pro that works for you.

We simply build for ARM target. The binaries are then pushed to Yocto, 
manually. [ We never considered possibility to build anything under 
Yocto itself. It was clear that this would not work.]

>> P.P.S. What people find in Yocto? It reminds me first releases of
>> Slackware, back in the future ...
> 
> It's just a build framework for creating a full Linux distro on an embedded board, just makes things easier.

Did it? (:-))

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

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

* Re: gnat for yocto
  2019-09-04 21:56 gnat for yocto R Srinivasan
  2019-09-05  0:28 ` Lucretia
  2019-09-05  8:42 ` Dmitry A. Kazakov
@ 2019-09-05 12:08 ` Lucretia
  2019-09-05 19:23 ` Lucretia
  3 siblings, 0 replies; 13+ messages in thread
From: Lucretia @ 2019-09-05 12:08 UTC (permalink / raw)


On Wednesday, 4 September 2019 22:56:10 UTC+1, R Srinivasan  wrote:
> I was referred to this recipe on GitHub:
> 
> https://github.com/lucretia/meta-ada
> 
> however this appears to be "dormant"
> 
> anyone using this recipe? particularly "rocko" or later?


I'm taking another look at the latest yocto now.


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

* Re: gnat for yocto
  2019-09-04 21:56 gnat for yocto R Srinivasan
                   ` (2 preceding siblings ...)
  2019-09-05 12:08 ` Lucretia
@ 2019-09-05 19:23 ` Lucretia
  2019-09-05 20:02   ` Lucretia
  3 siblings, 1 reply; 13+ messages in thread
From: Lucretia @ 2019-09-05 19:23 UTC (permalink / raw)


On Wednesday, 4 September 2019 22:56:10 UTC+1, R Srinivasan  wrote:
> I was referred to this recipe on GitHub:
> 
> https://github.com/lucretia/meta-ada
> 
> however this appears to be "dormant"

Please read the readme and see if it works for you: https://github.com/Lucretia/meta-ada/tree/thud


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

* Re: gnat for yocto
  2019-09-05 19:23 ` Lucretia
@ 2019-09-05 20:02   ` Lucretia
  2019-09-06  0:40     ` R Srinivasan
  0 siblings, 1 reply; 13+ messages in thread
From: Lucretia @ 2019-09-05 20:02 UTC (permalink / raw)


On Thursday, 5 September 2019 20:23:40 UTC+1, Lucretia  wrote:
> On Wednesday, 4 September 2019 22:56:10 UTC+1, R Srinivasan  wrote:
> > I was referred to this recipe on GitHub:
> > 
> > https://github.com/lucretia/meta-ada
> > 
> > however this appears to be "dormant"
> 
> Please read the readme and see if it works for you: https://github.com/Lucretia/meta-ada/tree/thud

I've added a warrior branch which is for gcc 8.3. Again, I can't build, but it might work for others. Worth a try and report back. thanks.


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

* Re: gnat for yocto
  2019-09-05 20:02   ` Lucretia
@ 2019-09-06  0:40     ` R Srinivasan
  2019-09-06  1:47       ` Lucretia
  0 siblings, 1 reply; 13+ messages in thread
From: R Srinivasan @ 2019-09-06  0:40 UTC (permalink / raw)


On Thursday, September 5, 2019 at 4:02:09 PM UTC-4, Lucretia wrote:
> On Thursday, 5 September 2019 20:23:40 UTC+1, Lucretia  wrote:
> > On Wednesday, 4 September 2019 22:56:10 UTC+1, R Srinivasan  wrote:
> > > I was referred to this recipe on GitHub:
> > > 
> > > https://github.com/lucretia/meta-ada
> > > 
> > > however this appears to be "dormant"
> > 
> > Please read the readme and see if it works for you: https://github.com/Lucretia/meta-ada/tree/thud
> 
> I've added a warrior branch which is for gcc 8.3. Again, I can't build, but it might work for others. Worth a try and report back. thanks.

i saw an update for "thud". i have to setup that env. so hope to try in the next few days. thanks, srini


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

* Re: gnat for yocto
  2019-09-06  0:40     ` R Srinivasan
@ 2019-09-06  1:47       ` Lucretia
  0 siblings, 0 replies; 13+ messages in thread
From: Lucretia @ 2019-09-06  1:47 UTC (permalink / raw)


On Friday, 6 September 2019 01:40:21 UTC+1, R Srinivasan  wrote:
> On Thursday, September 5, 2019 at 4:02:09 PM UTC-4, Lucretia wrote:
> > On Thursday, 5 September 2019 20:23:40 UTC+1, Lucretia  wrote:
> > > On Wednesday, 4 September 2019 22:56:10 UTC+1, R Srinivasan  wrote:
> > > > I was referred to this recipe on GitHub:
> > > > 
> > > > https://github.com/lucretia/meta-ada
> > > > 
> > > > however this appears to be "dormant"
> > > 
> > > Please read the readme and see if it works for you: https://github.com/Lucretia/meta-ada/tree/thud
> > 
> > I've added a warrior branch which is for gcc 8.3. Again, I can't build, but it might work for others. Worth a try and report back. thanks.
> 
> i saw an update for "thud". i have to setup that env. so hope to try in the next few days. thanks, srini

I cannot get them to compile with or without the layer, I've tried rocko, thud and warrior.


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

* Re: gnat for yocto
  2019-09-05 11:43     ` Dmitry A. Kazakov
@ 2019-09-19  9:31       ` R Srinivasan
  2019-09-19 11:04         ` Dmitry A. Kazakov
  0 siblings, 1 reply; 13+ messages in thread
From: R Srinivasan @ 2019-09-19  9:31 UTC (permalink / raw)


May I impose on you to point me to a distribution of "Ubuntu GNAT FSF tool-chain for ARM" that is used in this fashion ie build on ubuntu and deploy to yocto.

thanks, Srinivasan

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

* Re: gnat for yocto
  2019-09-19  9:31       ` R Srinivasan
@ 2019-09-19 11:04         ` Dmitry A. Kazakov
  0 siblings, 0 replies; 13+ messages in thread
From: Dmitry A. Kazakov @ 2019-09-19 11:04 UTC (permalink / raw)


On 2019-09-19 11:31, R Srinivasan wrote:
> May I impose on you to point me to a distribution of "Ubuntu GNAT FSF tool-chain for ARM" that is used in this fashion ie build on ubuntu and deploy to yocto.

That depends on the board you are going to use as a build platform. For 
example, if you have an ODROID XU4 you can first install 18.04

    https://www.hardkernel.com/blog-2/ubuntu-18-04-for-odroid-xu4/

and then upgrade it to Ubuntu disco (to get GNAT 9).

If you have a Raspberry Pi 2/3/4 you can take a standard Ubuntu disco 
ARM distribution, I think.

P.S. I don't know if GNAT 9 builds will run on Yocto, we are with GNAT 8 
still. You could try GNAT 9 if you get all third-party libraries on the 
Yocto side.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

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

end of thread, other threads:[~2019-09-19 11:04 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-04 21:56 gnat for yocto R Srinivasan
2019-09-05  0:28 ` Lucretia
2019-09-05  8:42 ` Dmitry A. Kazakov
2019-09-05  9:53   ` Lucretia
2019-09-05 11:43     ` Dmitry A. Kazakov
2019-09-19  9:31       ` R Srinivasan
2019-09-19 11:04         ` Dmitry A. Kazakov
2019-09-05 10:14   ` R Srinivasan
2019-09-05 12:08 ` Lucretia
2019-09-05 19:23 ` Lucretia
2019-09-05 20:02   ` Lucretia
2019-09-06  0:40     ` R Srinivasan
2019-09-06  1:47       ` Lucretia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox