Generate BitBake recipes utilizing the classes from meta-erlang Yocto Project/OE layer.
Check out the meta-erlang documentation to get a full picture about how to use it.
Add the plugin as project_plugins
to your rebar config:
{project_plugins, [
{rebar3_bitbake, {git, "https://github.com/meta-erlang/rebar3_bitbake.git", {tag, "0.1.0"}}}
]}.
Then just call the bitbake plugin directly in an existing application:
$ rebar3 bitbake
===> Fetching rebar3_bitbake
===> Compiling rebar3_bitbake
<Plugin Output>
Important: make sure that the existing application has release configuration. The rebar3_bitbake plugin checks if a release can be found and will refuse to create a bitbake recipe if there is no such release. The rebar3.bbclass from meta-erlang works based on rebar3 release configuration.