From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Mon, 10 Nov 2025 08:22:55 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-lf1-f61.google.com (mail-lf1-f61.google.com [209.85.167.61]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 5AA7Msgq015401 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 10 Nov 2025 08:22:54 +0100 Received: by mail-lf1-f61.google.com with SMTP id 2adb3069b0e04-59427acf790sf1413525e87.3 for ; Sun, 09 Nov 2025 23:22:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1762759367; cv=pass; d=google.com; s=arc-20240605; b=V0EYitd20GpEJHQ7dfChuDtoZWT+wWPkLl922QY4KAU5M+mFd0/9YwCOsgmsJrVUUf /jRBTMUKOfiGZufzsOik4sE7xlCWb6enVTiopQHVhcpfNzXeZ0C9NHMrZPS04k9qWWBA afbPQDTRzOXAxamAoOv5OdUxCmoUGiQV4FMWpNh1Hp/QuRrLDoJ0VDYGddgb3RemDPNs u4FA/s9Cue1vjZh3xgBnebMgPP+MI4z9PeTmO/N4ssygnmnNiji7Q91TJ53rrvageIUm rPGRxJANHHw7G6U8JWs9R9JtnHzEp7U4kPxnBMWS5/o/HRlibLWCJu3gK6KHfAPvy8pU ai1w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:feedback-id:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=7UumGJthnGHmSK//iByCAQD/2243T4BNFqnRAsoP+JE=; fh=FvJilyBGSsZgGGd08qEVu4K+dD/LNZ/gEq/U3hhpNyo=; b=b1IsTpsK8FXw/Tq7rSTO9tiEcGv/qgfuWVDwKhiRWC8NxQ0b3rmVOHWnWpF0c9+H2L YiXU1/aWZKfN9iXbIFUJAqRramswfAr4Jc9t96OdU59XufETY9Coj0Ns4Q4t6mgoTPoM Y1mWP/47gB3fG4w7aFrGpaAr5VQeu7wQJJ7rdOUg98a3Uo0llOx8JS921tGY3UJzyos0 V0QZC/ZWRmYnzWh4RdygRIX+xvSIe42XBbQlcv8yl6BfYEW58UUWF/Ujhhg52xfarfAj fFrs7nICKeg6cOhoXy6vpncw830YOIUnm/c2NtQqMJNFaYbdFDfaBXkVbVOjURC7PWfm 2VGQ==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=WAr2D6hX; spf=pass (google.com: domain of fm-294854-202511100722429ec11cf63f000207de-heph_s@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) smtp.mailfrom=fm-294854-202511100722429ec11cf63f000207de-HEPh_s@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1762759367; x=1763364167; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:to:from :from:to:cc:subject:date:message-id:reply-to; bh=7UumGJthnGHmSK//iByCAQD/2243T4BNFqnRAsoP+JE=; b=p4kJHLr7uwwDgbqeYCyVd2rFswkML9vr7fnH60Peqw/BQe/tw13LljIEC055VVvxMw VC7WYGirmdtE9mcEHICrBRL5Ea1xfoA6hjLcqagjnomQuXHf3hUcqo6DO37qtGUbZ5Wk Lw/v7RKxWK+WgmtaMF3UIRYWMR3bk7hgPHOPMg6mhMLabBVH5Wdlk7FUmnH+E/QPGwxE t82ni/DkiteVOI94RU6B2m3JtKC3AehbnvehIRDdZlzbag7uazzSbkv1W3TZ3v5gY4v6 BIcacBObUYVM8wmARaFsKDEeT9e96DPaXA6j3ts7hgPpM3nJ97e+dW1swEy+Rn423hj2 GbNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762759367; x=1763364167; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7UumGJthnGHmSK//iByCAQD/2243T4BNFqnRAsoP+JE=; b=UH37wx7gp5TUtZFOaQx8KM4G4t6T5JBPtiGqd0VAIxVrt/g0LHPm1SDBltIidxKRQh giop6pY7Wpqkz/PKMKkrtYcjqBpmQ/XqdEZZHF8lepFOIh+TNRH/6FCFiv6y/xTpiI15 wQ3oj2MtLl3vmkVliwxusLAqlztPGSXgM/Sh0KkISq+F8gJxIUs2F4xhHhcCmjpu44q7 A0+gmCCjMsS4+v9Djd6nBs5kyxQV62DSiWSrwnpjO710tNso1EX1SBcGTTie/RvFbX58 N3GlBNEcWo00gzfOxXtNNiugf157uQ+4kbfJsCM3DoMPjIsI0dEOsI9EPJfioAhbL3tx 6APg== X-Forwarded-Encrypted: i=2; AJvYcCXjLUCWYy2E5bP7NFXov8VM2lqe6SXxQW+88thAv07gXfEEPS9Zt7VDfOM45PFdrKKhOqdx@ilbers.de X-Gm-Message-State: AOJu0YxYGmGoQqeTdjWLJE9OTIna86g2KIKyq1z2JN1K5WezzjXenT3T OxciVZudZDrzb3pFAT9zgXR5t5azkFhkHcCGXGFn03NawGvduN85eHqN X-Google-Smtp-Source: AGHT+IEanM/gy/zOsn0B2flvPIwnfUi7VvykrmBa7zwifzWJUwjaWXnhN86x0WMkS1CJqMHTXVjzBw== X-Received: by 2002:a05:6512:3ba3:b0:594:2f46:391c with SMTP id 2adb3069b0e04-5945f1cb294mr1696451e87.44.1762759366585; Sun, 09 Nov 2025 23:22:46 -0800 (PST) X-BeenThere: isar-users@googlegroups.com; h="Ae8XA+aNLsX1jYdmsIAAjwrXIThREYxYlS6/grILlu4bpOLxOw==" Received: by 2002:a05:6512:24d5:b0:594:4c7a:d96e with SMTP id 2adb3069b0e04-5944c7adaddls1225498e87.2.-pod-prod-08-eu; Sun, 09 Nov 2025 23:22:43 -0800 (PST) X-Received: by 2002:a05:6512:3a8e:b0:577:285f:32bd with SMTP id 2adb3069b0e04-5945f1b6d40mr1657095e87.26.1762759363148; Sun, 09 Nov 2025 23:22:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1762759363; cv=none; d=google.com; s=arc-20240605; b=TjkhBxjeq41o7nTHK4XxhmVAMDAwiTWPxIwlNMW31Uhssxq2bZJw4CmFIt2KG4oz+8 b81pQhVR/DfOfpFLxQvcE6xz1KeHEPD12KXcPJHzr9B4EwyzEa8+pprWPyafx3mHRojS ElO5VH/xpU1zObM0mWXvoIeB0EXr+Att5ZA70tutXEXbCvpQbpi8hrlIsComyfUY9Iiu 4tvM/vmqtmZxgmTRlit6fxrhrl8+GhZHKuZ7hE3hDIClQJiYwx1mZqT2dD+0dOj7Z4Sw W2T9fcgoC9smi/sXwcvD+g6Rc+mw6P8RHoa+PqaNHl3GOOvujfbmFQAJrKQIhn5Qrirj 009Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=feedback-id:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:to:from:dkim-signature; bh=H4k2V9L2aYeQNj+Bqrgv4lpuXgZ3OaTJTKQ2uUQsXwg=; fh=hOBXq6nisExkIRIwN8IDOmOCLKwX8PM0ANlxQbNMEqA=; b=Oq4oHompZZW+rMmkxrIsK+JgTDrGgvJpQxtbB/XnJGLP98dBx9Z1EDiQQgZhwUVMcR w8b/WDQWdojglw8tM0jKQ41/RXa2IYUZ9mOyrVyzY7De21wjcjtKc/Mpfw/rUtsP265F lRpw+U6EwFpZ71PLzen816SQKA39S105Y/2FXQFvGgiFYRgfopB0TzbgT6x0GNldTn4K jJ6tfz5K7pC/cIwnB4HDD9SMLq9l1KHHBWatj/EQmvsRSpCsUpr7JawTSwh8WbiYFRkp cWG3yrCUg0y56ZPto9xBQMPQ9bSnHAazjRGP4TTBWLbVMapXqe9zfwN07OmcsuuJmFBq yr0w==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=WAr2D6hX; spf=pass (google.com: domain of fm-294854-202511100722429ec11cf63f000207de-heph_s@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) smtp.mailfrom=fm-294854-202511100722429ec11cf63f000207de-HEPh_s@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-65-225.siemens.flowmailer.net (mta-65-225.siemens.flowmailer.net. [185.136.65.225]) by gmr-mx.google.com with ESMTPS id 38308e7fff4ca-37a5f0ff762si551511fa.6.2025.11.09.23.22.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Nov 2025 23:22:43 -0800 (PST) Received-SPF: pass (google.com: domain of fm-294854-202511100722429ec11cf63f000207de-heph_s@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) client-ip=185.136.65.225; Received: by mta-65-225.siemens.flowmailer.net with ESMTPSA id 202511100722429ec11cf63f000207de for ; Mon, 10 Nov 2025 08:22:43 +0100 From: "'Jan Kiszka' via isar-users" To: isar-users Subject: [PATCH v2 11/27] u-boot-custom: Migrate to a bbclass Date: Mon, 10 Nov 2025 08:22:24 +0100 Message-ID: <91b268a48e41d135c720d42d9cda115b095ad6ff.1762759360.git.jan.kiszka@siemens.com> In-Reply-To: References: MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-294854:519-21489:flowmailer X-Original-Sender: jan.kiszka@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=WAr2D6hX; spf=pass (google.com: domain of fm-294854-202511100722429ec11cf63f000207de-heph_s@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) smtp.mailfrom=fm-294854-202511100722429ec11cf63f000207de-HEPh_s@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: Jan Kiszka Reply-To: Jan Kiszka Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-4.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,RCVD_IN_RP_CERTIFIED, RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: mJbpwd1KHdwd From: Jan Kiszka "inherit u-boot" is shorter and a more common pattern compared to 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 --- .../u-boot.bbclass} | 3 +- meta/recipes-bsp/u-boot/u-boot-custom.inc | 74 ++----------------- 2 files changed, 7 insertions(+), 70 deletions(-) copy meta/{recipes-bsp/u-boot/u-boot-custom.inc => classes-recipe/u-boot.bbclass} (96%) diff --git a/meta/recipes-bsp/u-boot/u-boot-custom.inc b/meta/classes-recipe/u-boot.bbclass similarity index 96% copy from meta/recipes-bsp/u-boot/u-boot-custom.inc copy to meta/classes-recipe/u-boot.bbclass index c6b3e8cf..9277127b 100644 --- a/meta/recipes-bsp/u-boot/u-boot-custom.inc +++ b/meta/classes-recipe/u-boot.bbclass @@ -5,8 +5,6 @@ # # SPDX-License-Identifier: MIT -FILESPATH:append := ":${FILE_DIRNAME}/files" - DESCRIPTION ?= "Custom U-Boot" PROVIDES += "u-boot-${MACHINE} u-boot-${MACHINE}-dev" @@ -16,6 +14,7 @@ PROVIDES += "${@('u-boot-config u-boot-' + d.getVar('MACHINE') + '-config') \ inherit dpkg +FILESPATH:append = ":${LAYERDIR_core}/recipes-bsp/u-boot/files" SRC_URI += "file://debian/" DEBIAN_BUILD_DEPENDS ?= "bc, bison, flex, device-tree-compiler, git" diff --git a/meta/recipes-bsp/u-boot/u-boot-custom.inc b/meta/recipes-bsp/u-boot/u-boot-custom.inc index c6b3e8cf..9cc2c15f 100644 --- a/meta/recipes-bsp/u-boot/u-boot-custom.inc +++ b/meta/recipes-bsp/u-boot/u-boot-custom.inc @@ -1,75 +1,13 @@ -# Custom U-Boot build +# Transitional include for u-boot.bbclass # # This software is a part of ISAR. -# Copyright (c) Siemens AG, 2018-2025 +# Copyright (c) Siemens AG, 2025 # # SPDX-License-Identifier: MIT -FILESPATH:append := ":${FILE_DIRNAME}/files" +inherit u-boot -DESCRIPTION ?= "Custom U-Boot" - -PROVIDES += "u-boot-${MACHINE} u-boot-${MACHINE}-dev" -PROVIDES += "${@'u-boot-tools' if bb.utils.to_boolean(d.getVar('U_BOOT_TOOLS_PACKAGE')) else ''}" -PROVIDES += "${@('u-boot-config u-boot-' + d.getVar('MACHINE') + '-config') \ - if bb.utils.to_boolean(d.getVar('U_BOOT_CONFIG_PACKAGE')) else ''}" - -inherit dpkg - -SRC_URI += "file://debian/" - -DEBIAN_BUILD_DEPENDS ?= "bc, bison, flex, device-tree-compiler, git" - -U_BOOT_BIN_INSTALL ?= "${U_BOOT_BIN}" - -U_BOOT_EXTRA_BUILDARGS ??= "BL31=${BL31} TEE=${TEE}" - -TEMPLATE_FILES = "debian/control.tmpl debian/rules.tmpl" -TEMPLATE_VARS += "MACHINE DEBIAN_BUILD_DEPENDS U_BOOT_CONFIG U_BOOT_BIN \ - U_BOOT_EXTRA_BUILDARGS DEBIAN_COMPAT DEBIAN_STANDARDS_VERSION" - -U_BOOT_TOOLS_PACKAGE ?= "0" -U_BOOT_CONFIG_PACKAGE ?= "0" - -do_prepare_build() { - cp -r ${WORKDIR}/debian ${S}/ - - deb_add_changelog - - rm -f ${S}/debian/u-boot-${MACHINE}.install - for bin in ${U_BOOT_BIN_INSTALL}; do - echo "$bin /usr/lib/u-boot/${MACHINE}" >> \ - ${S}/debian/u-boot-${MACHINE}.install - done - - echo "tools/env/libubootenv.a usr/lib" > \ - ${S}/debian/u-boot-${MACHINE}-dev.install - - if [ "${U_BOOT_TOOLS_PACKAGE}" = "1" ]; then - cat <>${S}/debian/control - -Package: u-boot-tools -Architecture: linux-any -Depends: \${shlibs:Depends}, \${misc:Depends} -Description: ${DESCRIPTION}, companion tools -EOF - fi - - if [ "${U_BOOT_CONFIG_PACKAGE}" = "1" ]; then - cp ${WORKDIR}/fw_env.config ${S}/ || \ - die "U_BOOT_CONFIG_PACKAGE requires a fw_env.config in SRC_URI" - - cat <>${S}/debian/control - -Package: u-boot-${MACHINE}-config -Provides: u-boot-config -Architecture: ${DISTRO_ARCH} -Description: ${DESCRIPTION}, environment configuration -EOF - - cat <>${S}/debian/u-boot-${MACHINE}-config.install -u-boot-initial-env /etc -fw_env.config /etc -EOF - fi +do_warn_custom_inc() { + bbwarn "Please migrate from \"require recipes-bsp/u-boot/u-boot-custom.inc\" to \"inherit u-boot\"" } +addtask warn_custom_inc before do_unpack -- 2.51.0 -- 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/91b268a48e41d135c720d42d9cda115b095ad6ff.1762759360.git.jan.kiszka%40siemens.com.