Skip to content

Commit cf5d6fd

Browse files
authored
Merge pull request #1094 from collinbrake/kas-directory
KAS working directory
2 parents af29bda + 7811a0a commit cf5d6fd

File tree

4 files changed

+20
-6
lines changed

4 files changed

+20
-6
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ workspace/*
2727
logs/
2828
files.txt
2929
kas/local.yml
30-
layers
30+
kas/build
31+
kas/layers
3132
.kas_shell_history
3233
.vscode

docs/kas.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,22 @@
22

33
KAS is a tool to manage metadata and build environments for Yocto/OE builds: https://github.com/siemens/kas
44

5+
To run KAS in Yoe Distro, use the kas/ subfolder as the working directory. This directory contains KAS configurations for each
6+
supported target machine at the top level. Once the `kas-container` script is run in the kas/ folder, it will also contain the
7+
build/ and layers/ folders.
8+
9+
To set up a docker container ready to run bitbake commands:
10+
```bash
11+
cd kas/
12+
./kas-container \
13+
--runtime-args "--volume ./../sources/meta-yoe:/work/layers/meta-yoe" \
14+
--ssh-dir ~/.ssh \
15+
shell jetson-agx-orin-devkit.yml
16+
```
17+
18+
The `--volume` flag is passed to docker through the kas-container `--runtime-args` flag and mounts the local meta-yoe layer in the container's layer/ directory for use in the build.
19+
520
To have local configuration, create kas/local.yml (git ignored) and append it to the project configuration when invoking KAS:
621
```bash
7-
./kas-container <...> kas/myproject.yml:kas/local.yml
22+
./kas-container <...> <target>.yml:local.yml
823
```

kas/include/base.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@ header:
44
distro: "yoe"
55

66
repos:
7-
yoe-distro:
8-
path: .
9-
layers:
10-
sources/meta-yoe:
7+
meta-yoe:
8+
path: layers/meta-yoe
119

1210
openembedded-core:
1311
url: https://github.com/YoeDistro/openembedded-core
File renamed without changes.

0 commit comments

Comments
 (0)