Skip to content

Commit

Permalink
kas: add per-MACHINE config file
Browse files Browse the repository at this point in the history
Bulk of the logic is in the common file. The aarch64 and x86_64 files include
it while also setting MACHINE to a specific value. This way one can easily
kas build something without having to know how to compose the files by hand.

Signed-off-by: Zygmunt Krynicki <[email protected]>
  • Loading branch information
zyga committed Mar 7, 2024
1 parent 0c094ca commit 5b9c7b5
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kas-poky-snapd.aarch64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
header:
version: 8
includes:
- kas-poky-snapd.common.yml
machine: qemuarm64
77 changes: 77 additions & 0 deletions kas-poky-snapd.common.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
header:
version: 8

distro: poky
target:
- snapd-demo-image

repos:
meta-snapd:

poky:
url: https://git.yoctoproject.org/git/poky
path: layers/poky
refspec: master
layers:
meta:
meta-poky:
meta-yocto-bsp:

meta-openembedded:
url: http://git.openembedded.org/meta-openembedded
path: layers/meta-openembedded
refspec: master
layers:
meta-oe:
meta-python:
meta-networking:
meta-perl:
meta-filesystems:

meta-security:
url: http://git.yoctoproject.org/git/meta-security
path: layers/meta-security
refspec: master

bblayers_conf_header:
standard: |
POKY_BBLAYERS_CONF_VERSION = "2"
BBPATH = "${TOPDIR}"
BBFILES ?= ""
local_conf_header:
reduce_diskspace: |
INHERIT += "rm_work"
RM_WORK_EXCLUDE += "snapd"
standard: |
CONF_VERSION = "2"
PACKAGE_CLASSES = "package_ipk"
SDKMACHINE = "x86_64"
USER_CLASSES = "buildstats"
PATCHRESOLVE = "noop"
debug-tweaks: |
EXTRA_IMAGE_FEATURES = "debug-tweaks"
distro: |
DISTRO_FEATURES:append = " apparmor security usrmerge"
systemd: |
INIT_MANAGER = "systemd"
DISTRO_FEATURES:append = " systemd"
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"
snapd: |
CORE_IMAGE_EXTRA_INSTALL += " \
packagegroup-snapd \
bash \
"
image-tweaks: |
# some room for installing snaps
IMAGE_ROOTFS_EXTRA_SPACE = "512000"
# snapd assumes root's home is /root
ROOT_HOME = "/root"
5 changes: 5 additions & 0 deletions kas-poky-snapd.x86_64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
header:
version: 8
includes:
- kas-poky-snapd.common.yml
machine: qemux86-64

0 comments on commit 5b9c7b5

Please sign in to comment.