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; Sun, 30 Nov 2025 10:40:40 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-lj1-f191.google.com (mail-lj1-f191.google.com [209.85.208.191]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 5AU9edjY007454 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 30 Nov 2025 10:40:39 +0100 Received: by mail-lj1-f191.google.com with SMTP id 38308e7fff4ca-37bbb9113e7sf27592761fa.1 for ; Sun, 30 Nov 2025 01:40:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1764495634; cv=pass; d=google.com; s=arc-20240605; b=FkjA1q8Vf/fHeduBV8n2ix82vE25NiKypnH/Tfu5S0yFIlJM/dTpz0q9iQuyGeDRPS 2J+UJR8zPt2B5iiMqg5cZvr3tbinXxp6yYAh/f3mCjG8OPyJE1JFVZ0/t1GbbkuEdERu omtsyStjfzm0B/F4w4MCgWvq4nvuFxp2lCT0zGevOMu9ZKTBne/CV2RX49ntU94oUE9H Qm7yXPRawpshOBwgXxhWo8TZLfz8+Ht6LdJCQyveblvDD/yvsOyVjcrkhgW0a2fpUJAN p1yp78dFtjRDfaV92StM+X3GDPduSylABN00oAdgTrFTJhGJBL4tgqGv8CUp4gd8rfmV Zvuw== 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=/u4UJ+TY6+SxtJbRhLtgg1Vn1X9udJzD6Z02vG9YaQE=; fh=86V/UjT/WCJvY38mkMcZ+mMjqHH2t5uYOQ+H/zOacSc=; b=PsdJmf/E2r65XoSoaSdFh47KSD1OGVEatKWUsFyWUosyq8IZWMD6H5pIbSl2GYagGX spMsUvOXKa5wNu6w/dAsDbtDXIhwYKSNtlDlqNLKEGvEfp10fDiHQQnRRtiCvvb1TIkv FQ69wwjb4vjoIrMOSKabBWnVArFsYLwM45wOqSox3EZ6D4dH3HRVNKYXGX6H+E36JlIw k0ImTMWz+kFPI8CrgoNm2WsUHibd3EGSvHAAT/elqzHiCFFMigVdDYDwdwRK+FlA+B12 u9WUYIYOI5kCZhYj4YaVKgYNurazmqne3YpBhogjxH2L2G+yKlP4wbNs/O5YbFdJ6AUj OWxg==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b="B/Bgf+Y5"; spf=pass (google.com: domain of fm-294854-20251130092750d79c50baa9000207f4-62nw2v@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) smtp.mailfrom=fm-294854-20251130092750d79c50baa9000207f4-62nW2V@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=1764495634; x=1765100434; 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=/u4UJ+TY6+SxtJbRhLtgg1Vn1X9udJzD6Z02vG9YaQE=; b=Bdk9kkVl0zmaRF3hXUhyhfmSovukmemmWssDGk216aP+4DlJ9YxDut/ZDSGqhW4aca Z0Qw6CW8IhdN7OqEw/S3v81b2w32yHDuR3ubnAjRENSKlxO9GmjzQNViBtYhj14ygp26 7GAzNFYITY72nJEQItbEUzM2E7b30uZ34moa4wwEhXyr3mCtuu1YYB0euuFcIQ/dlWDs AxUIJgTdKdLZAZH2fee3flAf+mau43S6661RSzJZc8B0iPCXfBp9LKbA+gCKwgAyIgBz x24DnCNXpMFU0CLi9XJbXKlrr7ZD5bz3xODM8zyH1eYIcbi4ohe0yUmxcZPoqNkY2UCb mNIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764495634; x=1765100434; 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=/u4UJ+TY6+SxtJbRhLtgg1Vn1X9udJzD6Z02vG9YaQE=; b=tKIL9x3t/oSUj23IYJQUDdvTQcjXBxum/YV2j8hp5j+wirH8GW/o3v8SuhQ36b3PiO qz/08FUo5TUVfabWOJqS2aNaqxdMZPBpMI1Sb70VTgUN/052S2edUqeML5D29Mk8yR7V Dd6dL3xgDwIjWA58qp/YydQoLHrygBT1KUtk9+4Trw/sCyjp0xAtVCOIMt7yffHtvw2q 6y84K6il16DCPfjLxm+kaaRHRn+cq0H4UszeVxxITKMfpGUuoa13Dj3CLlk/jTDuJtfV J5Hz3/ndg0sVOs5bS/BQrSALxhdrOx15DgFidP1cjLDSE2cVe4eHMqchVjlqUSWZhM/3 M0Dg== X-Forwarded-Encrypted: i=2; AJvYcCVZlsRxCScG7z7gloVJ7oDjuFBObx3QwaBv7fboCNa2g9Ez+qOFHJ3H+bSZZ5NPa0WRshIq@ilbers.de X-Gm-Message-State: AOJu0YxV59Ga/VUYVmdUn/xwneMRKXEss/u/Jnrorntt4byHQKfoIUBi 5wDlX8WR7usLp9985xSITXtr5XoPXM9r6LDLYDEgMC2DD/cgdX/ndkEE X-Google-Smtp-Source: AGHT+IFd6cC0oNpz5AgDJE0nU1rMfh2dpwEz+l450b0nD1v/pYAEmV4tb1uTOhUCTba2sXXstTSSPQ== X-Received: by 2002:a05:600c:3ba7:b0:46e:59bd:f7e2 with SMTP id 5b1f17b1804b1-477c05139c2mr439789765e9.11.1764494873405; Sun, 30 Nov 2025 01:27:53 -0800 (PST) X-BeenThere: isar-users@googlegroups.com; h="Ae8XA+Z8xtcMnN3rYwKRbKFMAEkFF2v4U9kkjf9+kHY5o+Xh7g==" Received: by 2002:a05:600d:8445:10b0:477:2205:db97 with SMTP id 5b1f17b1804b1-4790aaf1d4als7169955e9.0.-pod-prod-00-eu-canary; Sun, 30 Nov 2025 01:27:50 -0800 (PST) X-Received: by 2002:a5d:5f82:0:b0:42b:5448:7b34 with SMTP id ffacd0b85a97d-42cc1301cffmr40068415f8f.7.1764494870244; Sun, 30 Nov 2025 01:27:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1764494870; cv=none; d=google.com; s=arc-20240605; b=P7XHscF93h7hdtEd0vV5mBRDyTS4z/U9l+QMfAcydNOAZteLcI1VeDcq29fFtccciO iWF0izruFdXRbs7DLNhib07X4WxM26e7MtHk/8rHq9zPEMO0dSn06m6gW1NOnEAvSb5J 3e+lD8aoTGVrdoTnirfbaWbcADAs7+QPpvQVGI7eKvu1fmpkRYBkULDzp1dy0hy1PGM0 pg9RJ76KLpdr9ZLuZzj8UgQ392jZMs9/8fnOj88+CBrq74ujvM/mcZYyufTbkGBOk+AK kLfEsySxSjf++fqKhM7MlVHaFwof18FKu6hOngW7Ul0bqW6E9j5/y8t79jMB4kcq6mx3 dyDQ== 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=daRyGtHHokRQeBVELOip/91V94wEN+pQOzRh4sHExtyq0VXePSbRh/CTQVAO1kZfFV fth+WAeFXGR/oaDW2v1hBDtJspNMkdtyi0EvTQXFyoBu7sM0Mi7k3idB3v3sG7KjjR1f CAKUdYL5JqK5YeKFpJeEUNe1/Q81S0Wu1+vNP16p/goIVPcdBs6pny+QBzTa5g+FvpTQ j5CVn1y42x/zpKxM4cSUUYCkYoTNKwxnFjKooFCSIfqpcfytHesXdHGjw3aPN/u6QAMD 9PZVyYIekUPCfbIr3anuZCFQSLc6bOttnU9Aw3/3OWBBg69vahaK+LJN9G+wMyiiap12 FwmA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b="B/Bgf+Y5"; spf=pass (google.com: domain of fm-294854-20251130092750d79c50baa9000207f4-62nw2v@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) smtp.mailfrom=fm-294854-20251130092750d79c50baa9000207f4-62nW2V@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 ffacd0b85a97d-42e1ca546f2si117384f8f.8.2025.11.30.01.27.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Nov 2025 01:27:50 -0800 (PST) Received-SPF: pass (google.com: domain of fm-294854-20251130092750d79c50baa9000207f4-62nw2v@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 20251130092750d79c50baa9000207f4 for ; Sun, 30 Nov 2025 10:27:50 +0100 From: "'Jan Kiszka' via isar-users" To: isar-users Subject: [PATCH v3 11/27] u-boot-custom: Migrate to a bbclass Date: Sun, 30 Nov 2025 10:27:31 +0100 Message-ID: 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="B/Bgf+Y5"; spf=pass (google.com: domain of fm-294854-20251130092750d79c50baa9000207f4-62nw2v@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) smtp.mailfrom=fm-294854-20251130092750d79c50baa9000207f4-62nW2V@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: 7m1a9v8/2JUd 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/f0c5efe9c3a2badd8178a9ec611ae99c988b4233.1764494867.git.jan.kiszka%40siemens.com.