Commit 44d06755 authored by Andrey Filippov's avatar Andrey Filippov

Add one-command Yocto shell helper

parent 8c697664
Pipeline #3694 canceled with stages
......@@ -54,6 +54,14 @@ cd poky
bitbake u-boot device-tree linux-xlnx core-image-elphel393
```
Open a ready-to-use Yocto shell (env preloaded):
```bash
./scripts/yocto_shell.sh
# then:
bitbake linux-xlnx
```
Bootstrap workspace in developer mode:
```bash
......
#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
"${SCRIPT_DIR}/run_docker.sh" bash -lc '
set -e
cd /work/elphel393/poky
set +u
. ./oe-init-build-env build
set -u
export DL_DIR=/cache/downloads
export SSTATE_DIR=/cache/sstate-cache
echo "Yocto shell is ready. Run: bitbake <target>"
exec bash -i
'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment