meta-rust / cargo-bitbake

cargo extension that can generate BitBake recipes utilizing the classes from meta-rust
Apache License 2.0
83 stars 57 forks source link

oe recipe vs rust project naming #48

Open jwinarske opened 2 years ago

jwinarske commented 2 years ago

In order to use auto-generated recipe without changes, one needs to edit the usage of '_' in the recipe name references.

Example Rust project

registration_server

Auto-generated

registration_server_0.4.0.bb
registration_server-${PV}.inc
registration_server.inc

In order to build correctly OE recipe requires changing '_' to '-'. Such as:

registration-server_0.4.0.bb

The '_' is used to prefix ${PV}

Cargo bitbake should automatically handle this, so the auto-generated recipe can be used as-is.