/rebar3_bitbake

Generates a bitbake recipe from Erlang application.

Primary LanguageErlangApache License 2.0Apache-2.0

rebar3_bitbake

Hex.pm

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.

Use

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.

License

Apache 2 License