Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup poky core-image-minimal + sdv-core image kas config #123

Merged
merged 2 commits into from
Feb 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/poky-sdv-core.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build Poky with SDV Core

on:
workflow_dispatch:
workflow_call:

jobs:

poky-core-qemux86_64:
name: "poky-minimal-sdv-core-qemux86_64"
runs-on: ubuntu-22.04
continue-on-error: true
steps:

- name: Checkout
uses: actions/checkout@v3

- name: Install tools
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends socat file gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint xterm python3-subunit mesa-common-dev zstd liblz4-tool tmux mc skopeo fdisk ruby-full jq libvirt-clients libvirt-daemon-system qemu-system-x86 qemu-system-arm qemu-kvm squashfs-tools rauc python3-newt ca-certificates curl gnupg lsb-release

- name: Install kas
run: sudo pip3 install kas

- name: Build poky-core-image-minimal + sdv-core
env:
KAS_MACHINE: qemux86-64
run: |
(r=3;while ! kas build kas/poky-sdv-qemux86-64.yaml; do ((--r))||exit;sleep 60;done)

- name: Package all files
run: |
export ARC=poky-minimal-sdv-core-qemu-x86_64.tar
rm -f ${ARC}.xz
time tar --append --verbose --dereference --file ${ARC} -C ./build/tmp/deploy/images/qemux86-64/ \
bzImage-qemux86-64.bin \
core-image-minimal-qemux86-64.ext4 \
core-image-minimal-qemux86-64.manifest \
core-image-minimal-qemux86-64.qemuboot.conf \
core-image-minimal-qemux86-64.tar.bz2 \
core-image-minimal-qemux86-64.testdata.json \
modules-qemux86-64.tgz
time xz -v -8 -T0 ${ARC}

- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: poky-minimal-sdv-core-qemu-x86_64.tar.xz
if-no-files-found: error
path: poky-minimal-sdv-core-qemu-x86_64.tar.xz
27 changes: 27 additions & 0 deletions kas/poky-sdv-qemux86-64.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# /********************************************************************************
# * Copyright (c) 2023 Contributors to the Eclipse Foundation
# *
# * See the NOTICE file(s) distributed with this work for additional
# * information regarding copyright ownership.
# *
# * This program and the accompanying materials are made available under the
# * terms of the Apache License 2.0 which is available at
# * https://www.apache.org/licenses/LICENSE-2.0
# *
# * SPDX-License-Identifier: Apache-2.0
# ********************************************************************************/
# Every file needs to contain a header, that provides kas with information
# about the context of this file.
header:
version: 12
includes:
- .config-components.yaml
- mirrors.yaml
distro: poky
target: core-image-minimal
local_conf_header:
user: |
IMAGE_INSTALL:append = " packagegroup-sdv-core"
DISTRO_FEATURES += " sdv rauc virtualization"
EXTRA_IMAGE_FEATURES += "debug-tweaks"
machine: qemux86-64