Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Build
## Clone the BSP Repository
First of all you need a local copy of the BSP repository. This can be either
`meta-kontron` or a custom layer. This guide will use the public `meta-kontron`
BSP repository to build images for our standard and demo hardware.
```
cd ~
git clone https://git.kontron-electronics.de/sw/ked/meta-kontron.git
cd meta-kontron
```
## Use the Menu to Configure (Recommended)
!!! note "`kas` command"
In the following we will use the `kas-container` script to build inside of a
container. If you do native builds, you can use the `kas` command directly
instead.
Run the `menu` command:
```
kas-container menu
```
Navigate through the menu using ++arrow-up++++arrow-down++ and select the
options you need using ++space++.
Afterwards use ++tab++ to navigate to the button menu, select "Save & Build",
"Save & Exit" or "Exit" using ++arrow-left++++arrow-right++ and confirm with
++return++.
The configuration is saved to `.config.yaml` which is excluded from being
tracked in Git.
The configuration in `.config.yaml` will mainly consist of references to other
configuration files in the `kas` subdirectory.
## Run the Build
If you selected "Save & Build" in the configuration menu, a build will be
started automatically. Otherwise you can start a build with:
```
kas-container build .config.yaml
```
Now `kas` will fetch all repos specified in the configuration, initialize the
build environment and launch `bitbake`.
## Select Configuration Files Manually
Instead of using the `menu` command and creating a `.config.yaml` you can also
select the existing configuration file(s) manually.
The following command produces the same result as when selecting the options
"Kontron Electronics SL/BL/OSM i.MX8MM" and "Yocto Kirkstone" via the menu.
```
kas-container build kas/ktn-mx8mm.yml:kas/series/kirkstone.yml
```
## Using the `shell` Command
Instead of using the `build` command to start `bitbake`, you can also use the
`shell` command to instruct `kas` to drop you to a shell inside the build
environment.
```
kas-container shell .config.yaml
```
Once inside the shell, you can run any `bitbake` command you like.