Skip to content
Open
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
26 changes: 26 additions & 0 deletions ci/axiom.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/siemens/kas/master/kas/schema-kas.json

header:
version: 14


repos:
meta-qcom:
url: https://github.com/qualcomm-linux/meta-qcom
branch: master
layers:
meta-axiom-ci:
"":
meta-openembedded:
url: https://github.com/openembedded/meta-openembedded
layers:
meta-oe:
meta-xfce:
meta-gnome:
meta-python:
meta-networking:
meta-multimedia:

local_conf_header:
base: |
DISTROOVERRIDES:prepend = "qcom-axiom-ci:"
28 changes: 28 additions & 0 deletions meta-axiom-ci/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# meta-axiom-ci

## Introduction

OpenEmbedded/Yocto Project layer for using the Qualcomm internal Axiom CI on Qualcomm based platforms.

The official documentation describes Axiom as such:
> Axiom is an enterprise-level integrated automation system and a unified source of truth for test data. It covers all aspects of the test process including planning, execution, reporting and telematics.

This layer extends a small set of image recipes to add the tools and configs needed to run on the Axiom CI.

This layer depends on:

```
URI: https://github.com/openembedded/openembedded-core.git
layers: meta
branch: master
revision: HEAD
```

```
URI: https://github.com/openembedded/meta-openembedded.git
layers: meta-oe, meta-networking
branch: master
revision: HEAD
```


30 changes: 30 additions & 0 deletions meta-axiom-ci/classes-recipe/axiom-image.bbclass
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright (c) 2023-2024 Qualcomm Innovation Center, Inc. All rights reserved.
# SPDX-License-Identifier: MIT

# Class to add the dependencies needed for the current Axiom test framework

CORE_IMAGE_EXTRA_INSTALL:append:qcom-axiom-ci = " \
android-tools-adbd \
bluez5 \
networkmanager-nmcli iproute2-ip \
usbutils \
iperf3 \
net-tools \
weston \
pipewire \
dbus-ptest \
busybox-ptest \
openssh-ptest \
openssl-ptest \
valgrind \
kernel-modules \
"

# Add ssh server
IMAGE_FEATURES:append:qcom-axiom-ci = " ssh-server-openssh"

enable_adbd_at_boot () {
touch ${IMAGE_ROOTFS}/etc/usb-debugging-enabled
}

ROOTFS_POSTPROCESS_COMMAND += "enable_adbd_at_boot"
14 changes: 14 additions & 0 deletions meta-axiom-ci/conf/layer.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# We have a conf and classes directory, add to BBPATH
BBPATH .= ":${LAYERDIR}"

# We have a packages directory, add to BBFILES
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
${LAYERDIR}/recipes-*/*/*.bbappend"

BBFILE_COLLECTIONS += "qcom-axiom-ci"
BBFILE_PATTERN_qcom-axiom-ci := "^${LAYERDIR}/"
BBFILE_PRIORITY_qcom-axiom-ci = "6"

LAYERDEPENDS_qcom-axiom-ci = "core openembedded-layer networking-layer qcom"
LAYERSERIES_COMPAT_qcom-axiom-ci = "styhead walnascar"

4 changes: 4 additions & 0 deletions meta-axiom-ci/recipes-core/images/core-image-base.bbappend
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
QCOMINHERITS = "core-image"
QCOMINHERITS:qcom-axiom-ci = "axiom-image"

inherit ${QCOMINHERITS}
7 changes: 7 additions & 0 deletions meta-axiom-ci/recipes-kernel/linux/linux-yocto-dev.bbappend
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FILESEXTRAPATHS:prepend:qcom-axiom-ci := "${THISDIR}/${PN}:"

# Include additional kernel configs.
SRC_URI:append:qcom-axiom-ci = " \
file://configs/qcom-axiom-ci.cfg \
"

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# don't tamper with adbd
# CONFIG_USB_MASS_STORAGE is not set

Loading