From: Anton Mikanovich <amikan@ilbers.de>
To: isar-users@googlegroups.com, "Kiszka, Jan" <jan.kiszka@siemens.com>
Subject: Re: [PATCH v2 09/27] kselftest: Migrate to a bbclass
Date: Tue, 11 Nov 2025 17:45:16 +0200 [thread overview]
Message-ID: <74121b60-66d2-4e6a-9479-08232af3ff33@ilbers.de> (raw)
In-Reply-To: <0f33ba5ce2fdfb9499c2b7785750ed591d2e6f15.1762759360.git.jan.kiszka@siemens.com>
10/11/2025 09:22, 'Jan Kiszka' via isar-users wrote:
> From: Jan Kiszka <jan.kiszka@siemens.com>
>
> "inherit kselftest" is shorter and a more common pattern compared to
'linux-kselftest' maybe? Just to make all the classes named in the same
way and
stay nearby in the folder.
> OE/yocto. Keep the original .inc file as transitional helper, issuing a
> warning when it's used with a migration suggestion.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
> .../kselftest.bbclass} | 5 +-
> meta/recipes-kernel/kselftest/kselftest.inc | 52 +++----------------
> 2 files changed, 9 insertions(+), 48 deletions(-)
> copy meta/{recipes-kernel/kselftest/kselftest.inc => classes-recipe/kselftest.bbclass} (93%)
>
> diff --git a/meta/recipes-kernel/kselftest/kselftest.inc b/meta/classes-recipe/kselftest.bbclass
> similarity index 93%
> copy from meta/recipes-kernel/kselftest/kselftest.inc
> copy to meta/classes-recipe/kselftest.bbclass
> index 95dece10..ec2d267e 100644
> --- a/meta/recipes-kernel/kselftest/kselftest.inc
> +++ b/meta/classes-recipe/kselftest.bbclass
> @@ -2,13 +2,12 @@
> #
> # This software is a part of ISAR.
> # Copyright (c) Mentor Graphics, a Siemens Business, 2020
> +# Copyright (c) Siemens, 2025
> #
> # SPDX-License-Identifier: MIT
>
> inherit dpkg
>
> -FILESPATH:append := ":${THISDIR}/files"
> -
> # Some test-cases like memfd compilation failed in cross-compilation.
> # Force native compilation for now to have consistent output across
> # ISAR native/cross compilation setups.
> @@ -33,7 +32,9 @@ DEBIAN_BUILD_DEPENDS ?= " \
> llvm:native, \
> "
>
> +FILESPATH:append = ":${LAYERDIR_core}/recipes-kernel/kselftest/files"
> SRC_URI += "file://rules.tmpl"
> +
> S = "${WORKDIR}/linux-${PV}"
>
> TEMPLATE_FILES = "rules.tmpl"
> diff --git a/meta/recipes-kernel/kselftest/kselftest.inc b/meta/recipes-kernel/kselftest/kselftest.inc
> index 95dece10..a81e2550 100644
> --- a/meta/recipes-kernel/kselftest/kselftest.inc
> +++ b/meta/recipes-kernel/kselftest/kselftest.inc
> @@ -1,53 +1,13 @@
> -# Kselftest package for Linux
> +# Transitional include for kselftest.bbclass
> #
> # This software is a part of ISAR.
> -# Copyright (c) Mentor Graphics, a Siemens Business, 2020
> +# Copyright (c) Siemens AG, 2025
> #
> # SPDX-License-Identifier: MIT
>
> -inherit dpkg
> +inherit kselftest
>
> -FILESPATH:append := ":${THISDIR}/files"
> -
> -# Some test-cases like memfd compilation failed in cross-compilation.
> -# Force native compilation for now to have consistent output across
> -# ISAR native/cross compilation setups.
> -ISAR_CROSS_COMPILE = "0"
> -
> -DESCRIPTION ?= "Kernel selftests from Linux kernel ${PV}"
> -
> -DEBIAN_BUILD_DEPENDS ?= " \
> - rsync, \
> - flex, \
> - bison, \
> - ${@ 'fuse' if d.getVar('BASE_DISTRO_CODENAME') in ['bullseye', 'buster'] else 'fuse3'}, \
> - libelf-dev:native, \
> - libcap-ng-dev:native, \
> - libpopt-dev:native, \
> - libcap-dev:native, \
> - libmount-dev:native, \
> - libfuse-dev:native, \
> - libmnl-dev:native, \
> - pkg-config, \
> - clang:native, \
> - llvm:native, \
> -"
> -
> -SRC_URI += "file://rules.tmpl"
> -S = "${WORKDIR}/linux-${PV}"
> -
> -TEMPLATE_FILES = "rules.tmpl"
> -TEMPLATE_VARS += "KSELFTEST_ARGS"
> -
> -KSELFTEST_TARGETS ?= ""
> -KSELFTEST_SKIP_TARGETS ?= ""
> -KSELFTEST_FORCE_TARGETS ?= "0"
> -
> -KSELFTEST_ARGS = "${@ "TARGETS=\"${KSELFTEST_TARGETS}\"" if d.getVar('KSELFTEST_TARGETS') else ''}"
> -KSELFTEST_ARGS .= "${@ " FORCE_TARGETS=1" if bb.utils.to_boolean(d.getVar('KSELFTEST_FORCE_TARGETS')) else ''}"
> -KSELFTEST_ARGS .= "${@ " SKIP_TARGETS=\"${KSELFTEST_SKIP_TARGETS}\"" if d.getVar('KSELFTEST_SKIP_TARGETS') else ''}"
> -
> -do_prepare_build[cleandirs] += "${S}/debian"
> -do_prepare_build() {
> - deb_debianize
> +do_warn_custom_inc() {
> + bbwarn "Please migrate from \"require recipes-kernel/kselftest/kselftest.inc\" to \"inherit kselftest\""
> }
> +addtask warn_custom_inc before do_unpack
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/74121b60-66d2-4e6a-9479-08232af3ff33%40ilbers.de.
next prev parent reply other threads:[~2025-11-11 15:45 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-10 7:22 [PATCH v2 00/27] Use more classes! 'Jan Kiszka' via isar-users
2025-11-10 7:22 ` [PATCH v2 01/27] linux-custom: Drop redundant template inheritance 'Jan Kiszka' via isar-users
2025-11-10 7:22 ` [PATCH v2 02/27] meta: Move INHERIT'ed classes into classes-global 'Jan Kiszka' via isar-users
2025-11-10 7:22 ` [PATCH v2 03/27] meta: Move recipe-pulled classes into classes-recipe 'Jan Kiszka' via isar-users
2025-11-10 7:22 ` [PATCH v2 04/27] meta-isar: " 'Jan Kiszka' via isar-users
2025-11-11 15:37 ` Anton Mikanovich
2025-11-11 15:49 ` 'Jan Kiszka' via isar-users
2025-11-10 7:22 ` [PATCH v2 05/27] linux-custom: Migrate to a bbclass 'Jan Kiszka' via isar-users
2025-11-10 7:22 ` [PATCH v2 06/27] meta-isar: Switch to linux-kernel class 'Jan Kiszka' via isar-users
2025-11-10 7:22 ` [PATCH v2 07/27] linux-module: Migrate to a bbclasss 'Jan Kiszka' via isar-users
2025-11-10 7:22 ` [PATCH v2 08/27] meta-isar: Switch to linux-module class 'Jan Kiszka' via isar-users
2025-11-10 7:22 ` [PATCH v2 09/27] kselftest: Migrate to a bbclass 'Jan Kiszka' via isar-users
2025-11-11 15:45 ` Anton Mikanovich [this message]
2025-11-11 15:48 ` 'Jan Kiszka' via isar-users
2025-11-10 7:22 ` [PATCH v2 10/27] meta-isar: Switch to kselftest class 'Jan Kiszka' via isar-users
2025-11-10 7:22 ` [PATCH v2 11/27] u-boot-custom: Migrate to a bbclass 'Jan Kiszka' via isar-users
2025-11-10 7:22 ` [PATCH v2 12/27] meta-isar: Switch to u-boot class 'Jan Kiszka' via isar-users
2025-11-10 7:22 ` [PATCH v2 13/27] optee-os[-tadevkit]-custom: Migrate to bbclass'es 'Jan Kiszka' via isar-users
2025-11-10 7:22 ` [PATCH v2 14/27] meta-isar: Switch to optee-os[-tadevkit] classes 'Jan Kiszka' via isar-users
2025-11-10 7:22 ` [PATCH v2 15/27] optee-client: Migrate to a bbclass 'Jan Kiszka' via isar-users
2025-11-10 7:22 ` [PATCH v2 16/27] meta-isar: Switch to optee-client class 'Jan Kiszka' via isar-users
2025-11-10 7:22 ` [PATCH v2 17/27] trusted-firmware-a: Migrate to a bbclass 'Jan Kiszka' via isar-users
2025-11-10 7:22 ` [PATCH v2 18/27] meta-isar: Switch to trusted-firmware-a class 'Jan Kiszka' via isar-users
2025-11-10 7:22 ` [PATCH v2 19/27] barebox: Add SPDX license identifiers 'Jan Kiszka' via isar-users
2025-11-10 7:22 ` [PATCH v2 20/27] barebox: Move inherit dpkg into common .inc 'Jan Kiszka' via isar-users
2025-11-10 7:22 ` [PATCH v2 21/27] barebox: Migrate to a bbclass 'Jan Kiszka' via isar-users
2025-11-10 7:22 ` [PATCH v2 22/27] meta-isar: Switch to barebox class 'Jan Kiszka' via isar-users
2025-11-10 7:22 ` [PATCH v2 23/27] initramfs-hook: Migrate to a bbclass 'Jan Kiszka' via isar-users
2025-11-10 7:22 ` [PATCH v2 24/27] meta[-isar]: Switch to initramfs-hook class 'Jan Kiszka' via isar-users
2025-11-10 7:22 ` [PATCH v2 25/27] container-loader: Migrate to bbclass'es 'Jan Kiszka' via isar-users
2025-11-10 7:22 ` [PATCH v2 26/27] meta-isar: Switch to {docker,podman}-loader classes 'Jan Kiszka' via isar-users
2025-11-10 7:22 ` [PATCH v2 27/27] RECIPES-API-CHANGELOG: Document include to class conversion 'Jan Kiszka' via isar-users
2025-11-27 14:48 ` [PATCH v2 00/27] Use more classes! 'Jan Kiszka' via isar-users
2025-11-27 14:54 ` Zhihang Wei
2025-11-28 16:20 ` Zhihang Wei
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=74121b60-66d2-4e6a-9479-08232af3ff33@ilbers.de \
--to=amikan@ilbers.de \
--cc=isar-users@googlegroups.com \
--cc=jan.kiszka@siemens.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