This repo aims to boost the development with the Starterkit-embbeded-erni-yocto. It takes that repo as base and create a docker develoment environment. This development environment is ready to work. We offer the possibility to use the "devcontairner" feature of Visual Studio Code, as well.
- Development environment ready to start working with Yocto/poky.
- Based on docker.
- Non-dependency required.
- Note: It doesn't requires sudo access unless docker hasn't been previously installed.
Host OS
Ubuntu 22.04 and 20.04 are elegibles as Host OS.
- Clone the repo
git clone https://github.com/ERNI-Academy/starterkit-embedded-erni-yocto.git
- Initialize environment
./init-docker-env.sh
Note: You can use this repo natively without docker. In this case, you can install the depenpendecies with command below. This step has to be used just the very first time.
./installDevDeps.sh
You can build the entire image with settings by default. The result will a image bootable in a Raspberry Pi which runs a flutter app at the beggining. Just type:
./build.sh
# Building the image from scratch could take hours. Be patient
Before starting the building, you can set the Wi-Fi settings (ssid + pass).
./build.sh --wifi-interactive
Note: This will be skipped if you set the enviroment variables WIFISSID
and WIFIPASS
since the script will config the Wi-Fi automatically.
Note: See ./build.sh --help for further information.
Build script let you enter your custom bitbake commands. This can be done by using the -bc or --bitbake-cmd argument followed by the double-quoted command. This argument must be placed in the last position of command in order to avoid conflicts. See some examples:
./build.sh --bitbake-cmd bitbake -s | grep flutter
./build.sh -bc bitbake -D wifi -c clean
./build.sh --bitbake-cmd bitbake-layers show-layers
./build.sh -j 8 -wi --bitbake-cmd bitbake-layers show-layers
This is a powerful way to debug and develop either your recipes or your flutter apps. If you are interested in open an interative session run this:
./build.sh --shell
Once you are inside the shell
you will be able to use commands like:
- bitbake
- bitbake-getvar
- bitbake-layers
- devtool
./cleanAll.sh
# Keep in mind it could be dangerous in case you have unsaved changes.
git clean -fdx
Please see our Contribution Guide to learn how to contribute.
Please see our Code of Conduct
Check https://repobeats.axiom.co/ for the right URL
Thanks goes to these wonderful people (emoji key):
gmatarrubia 💻 🖋 📖 🎨 🤔 🚧 |
This project follows the all-contributors specification. Contributions of any kind welcome!