Skip to content

Commit

Permalink
kas-configs: initial commit
Browse files Browse the repository at this point in the history
Added a very basic kas config file to test stuff with gitlab action.
I find it much easier than the mcf stuff.

Signed-off-by: Matthias Schoepfer <[email protected]>
  • Loading branch information
DasRoteSkelett committed Apr 6, 2024
1 parent b1d7ee2 commit f1adce3
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,21 @@ source openembedded-core/oe-init-build-env
bitbake ros-image-core
```

## Alternative approach

After cloning this repository, install [kas](https://github.com/siemens/kas),
which can be done in the simplest case by issuing
```
pip3 install kas
```
Your millage may vary depending on your distribution. With that, you may
build scarthgap/rolling combination simply by calling
```
export KAS_WORK_DIR=/path/to/where/you/want/the/yocto/stuff/to/go
kas build kas-configs/scarthgap-rolling.yml
```
Then, watch the build or go for lunch.

# Repository Layout

## Branches
Expand Down
9 changes: 9 additions & 0 deletions kas-configs/limit-pressure.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
header:
version: 16

local_conf_header:
bb_pressure_stuff: |
BB_NICE_LEVEL = "11"
BB_PRESSURE_MAX_CPU = "1000000"
BB_PRESSURE_MAX_IO = "50000"
BB_PRESSURE_MAX_MEMORY = "10000"
54 changes: 54 additions & 0 deletions kas-configs/scarthgap-rolling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
header:
version: 16

build_system: openembedded

machine: qemux86-64
distro: nodistro
target: ros-image-core

repos:
openembedded-core:
url: https://github.com/openembedded/openembedded-core.git
branch: scarthgap
path: layers/openembedded-core
layers:
meta:
bitbake:
url: https://github.com/openembedded/bitbake.git
branch: "2.8"
path: layers/openembedded-core/bitbake
layers:
bitbake: excluded
meta-openembedded:
url: https://github.com/openembedded/meta-openembedded.git
branch: scarthgap
path: layers/meta-openembedded
layers:
meta-oe:
meta-python:
meta-networking:
meta-ros:
layers:
meta-ros-common:
meta-ros2:
meta-ros2-rolling:

local_conf_header:
standard:
CONF_VERSION = "2"

diskmon: |
BB_DISKMON_DIRS ?= "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
STOPTASKS,/tmp,100M,100K \
HALT,${TMPDIR},100M,1K \
HALT,${DL_DIR},100M,1K \
HALT,${SSTATE_DIR},100M,1K \
HALT,/tmp,10M,1K"
# Frankly, idk why but ipk gives me funny file not found errors
package_class:
PACKAGE_CLASSES ?= "package_rpm"

0 comments on commit f1adce3

Please sign in to comment.