2024-08-02 15:13:57 +01:00
|
|
|
|
|
|
|
# example-projects
|
|
|
|
|
2024-08-07 11:20:08 +01:00
|
|
|
## Yocto
|
|
|
|
|
2024-08-07 11:19:03 +01:00
|
|
|
### Add layer in a Yocto project
|
|
|
|
|
|
|
|
```
|
|
|
|
bitbake-layers add-layer /path/to/meta-helloworld
|
|
|
|
```
|
|
|
|
|
|
|
|
Then add this to `build/conf/local.conf`:
|
|
|
|
```sh
|
|
|
|
IMAGE_INSTALL:append = " helloworld-c-make"
|
|
|
|
IMAGE_INSTALL:append = " helloworld-cpp-cmake"
|
|
|
|
IMAGE_INSTALL:append = " helloworld-rs"
|
|
|
|
```
|
|
|
|
|
2024-08-07 11:20:08 +01:00
|
|
|
### Add/create recipes in a Yocto project
|
2024-08-02 15:13:57 +01:00
|
|
|
|
|
|
|
```
|
2024-08-02 15:33:53 +01:00
|
|
|
devtool add helloworld-c-make git@bitbucket.org:dol-sensors/example-projects.git --srcbranch main --src-subdir helloworld-c-make
|
|
|
|
|
|
|
|
devtool add helloworld-cpp-cmake git@bitbucket.org:dol-sensors/example-projects.git --srcbranch main --src-subdir helloworld-cpp-cmake
|
|
|
|
|
|
|
|
devtool add helloworld-rs git@bitbucket.org:dol-sensors/example-projects.git --srcbranch main --src-subdir helloworld-rs
|
2024-08-02 15:13:57 +01:00
|
|
|
```
|
|
|
|
|