bitbake recipe

557 views
Skip to first unread message

mmmmbeeeeer

unread,
Apr 3, 2012, 7:16:26 AM4/3/12
to erlang-embedded
Is there a bitbake recipe that I can use with bitbake/openembedded to
recreate the build? I'd like to use this as a starting point and then
add some other things to create a custom build.

Thanks,

Pete

Omer Kilic

unread,
Apr 3, 2012, 8:20:49 AM4/3/12
to erlang-...@googlegroups.com

Hi Pete,

Writing a bitbake recipe is high up on my to-do list but I didn't get a
chance to do that just yet.

If you're interested in building a custom image and the platform you're
targeting happens to be BeagleBone this might be of interest:
https://github.com/nerves-project/bbone-erlang-buildroot. (might also be
useful for other ARM based platforms as well)

There is a major overhaul of our embedded efforts in progress at the
moment, we will have some exciting announcements in the next few weeks!


Cheers,
Omer.


--
Omer Kilic
KTP Associate - Embedded Systems
Erlang Solutions Ltd.
www.erlang-solutions.com

Gustav Simonsson

unread,
Apr 3, 2012, 8:26:09 AM4/3/12
to erlang-...@googlegroups.com

Last time I messed around with OpenEmbedded I found these (though we didn't end up using them or writing new recipes):
https://github.com/openembedded/openembedded/tree/master/recipes/erlang

Perhaps they can be of some use in creating one for R15B01.

Regards,
Gustav Simonsson

Sent from my PC

Omer Kilic

unread,
Apr 3, 2012, 9:21:49 AM4/3/12
to erlang-...@googlegroups.com

On 03/04/12 13:26, Gustav Simonsson wrote:
> Last time I messed around with OpenEmbedded I found these (though we didn't end up using them or writing new recipes):
> https://github.com/openembedded/openembedded/tree/master/recipes/erlang
>
> Perhaps they can be of some use in creating one for R15B01.

Well, I wanted to wait until I got the chance to play with a working
OpenEmbedded setup but since it was mentioned, I've pushed updated
bitbake recipes for R15B at:
https://github.com/omerk/openembedded/tree/master/recipes/erlang

These are untested. If you could let me know if they work for you that
would be great.

Since we now have HiPE working on ARM, the next revision of the bitbake
recipe (the R15B01) will incorporate that and a few other patches.


Cheers,
Omer.

mmmmbeeeeer

unread,
May 7, 2012, 9:41:07 PM5/7/12
to erlang-embedded
Thanks Omer - sorry for taking so long to respond!

I'll give this a try - I tried creating my own based on the R13B01
recipe which built ok, but hasn't included openssh so I get errors
when I try to compile (for instance) rebar on my gumstix device. I
don't seem to be able to get that sorted, so I'll give your recipe a
try.

Cheers,

Pete



On Apr 3, 11:21 pm, Omer Kilic <omer.ki...@erlang-solutions.com>
wrote:

Tim Coote

unread,
Jan 23, 2013, 9:02:09 AM1/23/13
to erlang-...@googlegroups.com
Omer / Pete

Did this recipe work? I'm trying to incorporate it into a yocto build and I'm getting this sort of error:

"ERROR: ExpansionError during parsing /opt/poky/meta-openembedded/meta-oe/recipes-extended/erlang/erlang_R15B.bb: Failure expanding variable FILES_erlang-libs: ExpansionError: Failure expanding variable FILES_erlang-libs, expression was   ${@' '.join(get_erlang_libs_R15B(d))} which triggered exception OSError: [Errno 2] No such file or directory: '/opt/poky/mybuilds/tmp/work/armv5te-poky-linux-gnueabi/erlang-R15B-r3/image/usr/lib/erlang/lib'"

It looks to me like bitbake just isn't building a necessary precursor.

I'm not sure whether this is as a result of my set up (I'm a  newbie to this stuff and I'm hacking together other components such as java - which worked), or the way that yocto/openembedded have changed since the recipe was put together.

Any thoughts on how I can get this fixed, and submit a patch if a recipe change is needed?

Tim

Tim Coote

unread,
Jan 24, 2013, 4:56:21 PM1/24/13
to erlang-...@googlegroups.com
Still not working, but I think that the failure below was due to a missing directory:
tmp/work/armv5te-poky-linux-gnueabi/erlang-R15B-r3/image/usr/lib/erlang/lib

I ripped out the older erlang versions and the patches to them, added the checksums for the licence (a new req for OE-Core model), removed the do_stage_prepend, as this is also an OE-Core change. However, I'm now getting config stage failures which look like they're to do with the toolchain not being set up properly as one of the config.log files gets this entry:
tmp/sysroots/i686-linux/usr/libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld: warning: library search path "/lib" is unsafe for cross-compilation

Before I go diving deeper into how OE works, is this code now orphaned - I see that it's not been used for a while, possibly in favour of the nerves-project mentioned in another thread?

Tim

getmi...@gmail.com

unread,
Feb 26, 2013, 6:49:46 AM2/26/13
to erlang-...@googlegroups.com
Tim

Did you succeed in integrating erlang in to bitibake. How did you fix the issue?? 

Mithun

João Henrique Freitas

unread,
Oct 6, 2013, 9:25:42 PM10/6/13
to erlang-...@googlegroups.com

Hello,

Based on previous work done by others people and using erlang R16B02, I've created this layer https://github.com/joaohf/meta-erlang.

meta-erlang works using qemux86 machine. Not tested with others archs yet. But should work.

This is a working progress and minor fixes could be needed.

Thanks.
 


--
You received this message because you are subscribed to the Google Groups "erlang-embedded" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erlang-embedd...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
João Henrique Ferreira de Freitas - joaohf_at_gmail.com
Campinas-SP-Brasil

Peter Whitfield

unread,
Oct 29, 2013, 11:31:10 PM10/29/13
to erlang-...@googlegroups.com
Hmmm, I'm still getting the same problem Tim reported as in the linker is throwing a warning about cross-compilation and stopping the process.

I've successfully cross-compiled the exact same source directly using the same configuration and commands as the recipe includes but not using bitbake.

It seems to me that the toolchain is the culprit as outside bitbake my system works fine using gcc 4.6.3, but the bitbake toolchain is using gcc 4.7.2

I want to test this by forcing bitbake to use 4.6.3 but I'm struggling to work out how. Does anyone know how to run multiple toolchains and force a recipe to use a specific one?

Cheers,

Pete

Omer Kilic

unread,
Oct 31, 2013, 6:23:32 AM10/31/13
to erlang-...@googlegroups.com

Hi Peter,

On 30/10/13 03:31, Peter Whitfield wrote:
> I want to test this by forcing bitbake to use 4.6.3 but I'm struggling
> to work out how. Does anyone know how to run multiple toolchains and
> force a recipe to use a specific one?

Haven't verified this myself but according to [1], you should be able to
pick which GCC version to use by editing conf/local.conf and adding:

GCCVERSION = "linaro-4.7"
SDKGCCVERSION = "linaro-4.7"


Hope this helps,
Omer.


> On Monday, October 7, 2013 12:25:42 PM UTC+11, joaohf wrote:
>
>
> Hello,
>
> Based on previous work done by others people and using erlang
> R16B02, I've created this layer
> https://github.com/joaohf/meta-erlang
> <https://github.com/joaohf/meta-erlang>.
>
> meta-erlang works using qemux86 machine. Not tested with others
> archs yet. But should work.
>
> This is a working progress and minor fixes could be needed.
>
> Thanks.
>
>
>
> On Tue, Feb 26, 2013 at 8:49 AM, <getmi...@gmail.com <javascript:>>
> wrote:
>
> Tim
>
> Did you succeed in integrating erlang in to bitibake. How did
> you fix the issue??
>
> Mithun
>
>
> On Friday, January 25, 2013 3:26:21 AM UTC+5:30, Tim Coote wrote:
>
> Still not working, but I think that the failure below was
> due to a missing directory:
> tmp/work/armv5te-poky-linux-__gnueabi/erlang-R15B-r3/image/__usr/lib/erlang/lib
>
> I ripped out the older erlang versions and the patches to
> them, added the checksums for the licence (a new req for
> OE-Core model), removed the do_stage_prepend, as this is
> also an OE-Core change. However, I'm now getting config
> stage failures which look like they're to do with the
> toolchain not being set up properly as one of the config.log
> files gets this entry:
> tmp/sysroots/i686-linux/usr/__libexec/armv5te-poky-linux-__gnueabi/gcc/arm-poky-linux-__gnueabi/4.7.2/ld:
> warning: library search path "/lib" is unsafe for
> cross-compilation
>
> Before I go diving deeper into how OE works, is this code
> now orphaned - I see that it's not been used for a while,
> possibly in favour of the nerves-project mentioned in
> another thread?
>
> Tim
>
> On Wednesday, January 23, 2013 2:02:09 PM UTC, Tim Coote wrote:
>
> Omer / Pete
>
> Did this recipe work? I'm trying to incorporate it into
> a yocto build and I'm getting this sort of error:
>
> "ERROR: ExpansionError during parsing
> /opt/poky/meta-openembedded/__meta-oe/recipes-extended/__erlang/erlang_R15B.bb:
> Failure expanding variable FILES_erlang-libs:
> ExpansionError: Failure expanding variable
> FILES_erlang-libs, expression was ${@'
> '.join(get_erlang_libs_R15B(d)__)} which triggered
> exception OSError: [Errno 2] No such file or directory:
> '/opt/poky/mybuilds/tmp/work/__armv5te-poky-linux-gnueabi/__erlang-R15B-r3/image/usr/lib/__erlang/lib'"
> <omer.ki...@erlang-solutions.__com>
> wrote:
> > On 03/04/12 13:26, Gustav Simonsson wrote:
> >
> > > Last time I messed around with OpenEmbedded I
> found these (though we didn't end up using them or
> writing new recipes):
> >
> >https://github.com/__openembedded/openembedded/__tree/master/recipes/erlang <https://github.com/openembedded/openembedded/tree/master/recipes/erlang>
> >
> > > Perhaps they can be of some use in creating one
> for R15B01.
> >
> > Well, I wanted to wait until I got the chance to
> play with a working
> > OpenEmbedded setup but since it was mentioned,
> I've pushed updated
> > bitbake recipes for R15B
> at:https://github.com/omerk/__openembedded/tree/master/__recipes/erlang
> >>https://github.com/nerves-__project/bbone-erlang-buildroot <https://github.com/nerves-project/bbone-erlang-buildroot>__. (might also
> > >> be
> > >> useful for other ARM based platforms as well)
> >
> > >> There is a major overhaul of our embedded
> efforts in progress at the
> > >> moment, we will have some exciting
> announcements in the next few
> > >> weeks!
> >
> > >> Cheers,
> > >> Omer.
> >
> > >> --
> > >> Omer Kilic
> > >> KTP Associate - Embedded Systems
> > >> Erlang Solutions Ltd.
> > >>www.erlang-solutions.com
> <http://www.erlang-solutions.com>
>
> --
> You received this message because you are subscribed to the
> Google Groups "erlang-embedded" group.
> To unsubscribe from this group and stop receiving emails from
> it, send an email to erlang-embedd...@googlegroups.com
> <javascript:>.
> For more options, visit https://groups.google.com/groups/opt_out
> <https://groups.google.com/groups/opt_out>.
>
>
>
>
>
> --
> João Henrique Ferreira de Freitas - joaohf_at_gmail.com
> <http://joaohf_at_gmail.com>
> Campinas-SP-Brasil

João Henrique Freitas

unread,
Oct 31, 2013, 11:26:52 AM10/31/13
to erlang-...@googlegroups.com

Hello,

Just some points.
You will need to use this layer https://git.linaro.org/gitweb?p=openembedded/meta-linaro.git;a=summary.


I did my tests using Yocto 1.5 with gcc 4.8.1. Actually I am working to fix some issues about using xcom from Erlang package or autoconf.




For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "erlang-embedded" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erlang-embedded+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
João Henrique Ferreira de Freitas - joaohf_at_gmail.com
Campinas-SP-Brasil

Peter Whitfield

unread,
Nov 1, 2013, 9:07:02 PM11/1/13
to erlang-...@googlegroups.com
Hi all,

Got R15B running on gumstix with yocto thanks to much help from yocto IRC channel.

nerdboy on IRC channel took the old recipe (from classic oe) and updated to get it building with yocto: https://github.com/sarnold/meta-raspberrypi/tree/master/recipes-devtools/erlang

I'll try to update to R16B02

Cheers,

Pete


To unsubscribe from this group and stop receiving emails from it, send an email to erlang-embedd...@googlegroups.com.

Christian Espinoza L.

unread,
Sep 20, 2014, 1:55:31 AM9/20/14
to erlang-...@googlegroups.com
Sorry Peter, the link is broken, from where can I get the new recipe file?

THanks in advance.
Chris
Reply all
Reply to author
Forward
0 new messages