From: Uladzimir Bely <ubely@ilbers.de>
To: isar-users@googlegroups.com
Subject: [PATCH] kas: Support meta-test layer
Date: Fri, 5 Apr 2024 12:21:40 +0300 [thread overview]
Message-ID: <20240405092202.12879-1-ubely@ilbers.de> (raw)
Add meta-test layer packages and images to kas menu configuration.
Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
---
kas/image/Kconfig | 9 +++++++++
kas/image/isar-image-ci.yaml | 7 +++++++
kas/isar.yaml | 5 +++--
kas/package/Kconfig | 13 +++++++++++--
kas/package/pkg_isar-ci-ssh-setup.yaml | 9 +++++++++
.../images/isar-image-ci.bb | 0
scripts/generate_yaml.sh | 2 +-
7 files changed, 40 insertions(+), 5 deletions(-)
create mode 100644 kas/image/isar-image-ci.yaml
create mode 100644 kas/package/pkg_isar-ci-ssh-setup.yaml
rename meta-test/{recipes-ci => recipes-core}/images/isar-image-ci.bb (100%)
diff --git a/kas/image/Kconfig b/kas/image/Kconfig
index bc789064..45611c4e 100644
--- a/kas/image/Kconfig
+++ b/kas/image/Kconfig
@@ -22,6 +22,14 @@ config IMAGE_DEBUG
help
This image includes some tools preinstalled useful for debug.
+config IMAGE_CI
+ bool "CI image"
+ select PACKAGE_SSHD_REGEN_KEYS
+ select PACKAGE_ISAR_CI_SSH_SETUP
+ help
+ This image includes is for running CI. Via isar-ci-ssh-setup recipe.
+ It creates ci user with non-interactive ssh access to the board.
+
menuconfig IMAGE_INSTALLER
bool "Installer image"
help
@@ -44,6 +52,7 @@ config KAS_INCLUDE_IMAGE
string
default "kas/image/isar-image-base.yaml" if IMAGE_BASE
default "kas/image/isar-image-debug.yaml" if IMAGE_DEBUG
+ default "kas/image/isar-image-ci.yaml" if IMAGE_CI
default "kas/image/isar-image-installer.yaml" if IMAGE_INSTALLER
endmenu
diff --git a/kas/image/isar-image-ci.yaml b/kas/image/isar-image-ci.yaml
new file mode 100644
index 00000000..20c381b5
--- /dev/null
+++ b/kas/image/isar-image-ci.yaml
@@ -0,0 +1,7 @@
+# This software is a part of Isar.
+# Copyright (C) 2024 ilbers GmbH
+
+header:
+ version: 14
+
+target: isar-image-ci
diff --git a/kas/isar.yaml b/kas/isar.yaml
index df26b780..16ce8b42 100644
--- a/kas/isar.yaml
+++ b/kas/isar.yaml
@@ -1,5 +1,5 @@
-# This software is a part of ISAR.
-# Copyright (C) 2023 ilbers GmbH
+# This software is a part of Isar.
+# Copyright (C) 2023-2024 ilbers GmbH
header:
version: 14
@@ -11,6 +11,7 @@ repos:
layers:
meta:
meta-isar:
+ meta-test:
bblayers_conf_header:
standard: |
diff --git a/kas/package/Kconfig b/kas/package/Kconfig
index af4c5137..35ba7cf1 100644
--- a/kas/package/Kconfig
+++ b/kas/package/Kconfig
@@ -1,5 +1,5 @@
-# This software is a part of ISAR.
-# Copyright (C) 2023 ilbers GmbH
+# This software is a part of Isar.
+# Copyright (C) 2023-2024 ilbers GmbH
#
# Authors:
# Uladzimir Bely <ubely@ilbers.de>
@@ -137,6 +137,15 @@ config KAS_INCLUDE_PACKAGE_SSHD_REGEN_KEYS
default "kas/package/pkg_sshd-regen-keys.yaml"
depends on PACKAGE_SSHD_REGEN_KEYS
+config PACKAGE_ISAR_CI_SSH_SETUP
+ bool "isar-ci-ssh-setup"
+ default n
+
+config KAS_INCLUDE_PACKAGE_ISAR_CI_SSH_SETUP
+ string
+ default "kas/package/pkg_sshd-regen-keys.yaml"
+ depends on PACKAGE_ISAR_CI_SSH_SETUP
+
endmenu
config KAS_IMAGE_PREINSTALL
diff --git a/kas/package/pkg_isar-ci-ssh-setup.yaml b/kas/package/pkg_isar-ci-ssh-setup.yaml
new file mode 100644
index 00000000..bf771b63
--- /dev/null
+++ b/kas/package/pkg_isar-ci-ssh-setup.yaml
@@ -0,0 +1,9 @@
+# This software is a part of Isar.
+# Copyright (C) 2024 ilbers GmbH
+
+header:
+ version: 14
+
+local_conf_header:
+ package-isar-ci-ssh-setup: |
+ IMAGE_INSTALL:append = " isar-ci-ssh-setup"
diff --git a/meta-test/recipes-ci/images/isar-image-ci.bb b/meta-test/recipes-core/images/isar-image-ci.bb
similarity index 100%
rename from meta-test/recipes-ci/images/isar-image-ci.bb
rename to meta-test/recipes-core/images/isar-image-ci.bb
diff --git a/scripts/generate_yaml.sh b/scripts/generate_yaml.sh
index 8e8651a0..aaa8bcba 100755
--- a/scripts/generate_yaml.sh
+++ b/scripts/generate_yaml.sh
@@ -78,7 +78,7 @@ done
# Scan for image recipes, except:
# - "isar-image-installer" having more complex structure
-IMAGES=$(find {meta,meta-isar}/recipes-core/images -iname *.bb -printf "%f\n" \
+IMAGES=$(find {meta,meta-isar,meta-test}/recipes-core/images -iname *.bb -printf "%f\n" \
| sed -e 's/.bb$//' | grep -v "isar-image-installer"| sort)
for image in ${IMAGES}
--
2.43.2
next reply other threads:[~2024-04-05 9:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-05 9:21 Uladzimir Bely [this message]
2024-04-11 4:52 ` Uladzimir Bely
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240405092202.12879-1-ubely@ilbers.de \
--to=ubely@ilbers.de \
--cc=isar-users@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox