From patchwork Mon Dec 18 12:26:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bastian Neumann X-Patchwork-Id: 1877409 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20230601 header.b=ca8E+Zoy; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=Z/IyuJDv; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2607:f8b0:4864:20::138; helo=mail-il1-x138.google.com; envelope-from=swupdate+bncbct3dafr2ylrbahvqcwamgqeki2xwbi@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-il1-x138.google.com (mail-il1-x138.google.com [IPv6:2607:f8b0:4864:20::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4StzbC2sZXz23yq for ; Mon, 18 Dec 2023 23:26:45 +1100 (AEDT) Received: by mail-il1-x138.google.com with SMTP id e9e14a558f8ab-35fb1e1d902sf7842455ab.3 for ; Mon, 18 Dec 2023 04:26:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702902401; cv=pass; d=google.com; s=arc-20160816; b=xD3PpBnsaxhc+PjkQFYA94gDth6NGzOaYJ4h8DG4fWpx+Qw3H4+ctr37BUvhUCv9Gb qQrr/JO2Vx+qAHwcLrOWdu1WK2pmR4D/7Xw8PSM1QVwCnEnCml7Ill6EgHgm4Adeef59 q1jOOzEKT6Q78dsulhqW2/X7wGoVk5c1o9UWS8XQ9UnfUOofx6CsPHfN/qyJToyxjkBg qnAfmd3vKWsD57VBVRDoW2OFxC7dYdHv5CbVJCxuuT5gEyaPNaqsK1DGq6aY42wrIDBE LqV7Ls20AwOnluwSjQjSw4O6vPPz5mfXyw5CDlompGkkYLYwsNIPf/yt15MCxNv+a3iB ZNAQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:to:subject:message-id:date:from :mime-version:sender:dkim-signature:dkim-signature; bh=KF0MpfUoUtX1coN2W/hYpRvRKRVjcheYnCG7IqNEOTg=; fh=nvZsCFpxgpf+fsVXzjnWA8g1K3V/kNbRAKogjNDW4HY=; b=SWCuBnBNxtdtqrSILv8edYcx4WBnEeQP4n5JOY+Sq4imzq9Sm4ps55Wc1pOJXCp/BF TG0+O1WoMUu3dV8AX9Vm+TD4A3gKSQZwyGjKi6Lmy6WwCMWJIl505TjjMnoyJ7DXoUg7 YvCi/BP9Spj7qdwkSy+jzE8g3uSjtxcy/8SJnFcql0zfvGO1TY6WfseOvDGnL+IvUhfk yMGXZYT4qjy8wmG56p3sw/OsNGMv/IYvEF5ksUe2z0bQgAdkE8fy/e190IDfTButSjk1 fodqyw7/iS/AMnG8c5Vz2m2Gy5YCGyciM/EmZ4eoj+GmrxSGMYaITXl5Z7ULWFSBKzAC P/1A== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BT5i1wSH; spf=pass (google.com: domain of neumann.bastian@gmail.com designates 2607:f8b0:4864:20::f34 as permitted sender) smtp.mailfrom=neumann.bastian@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1702902401; x=1703507201; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:to:subject:message-id:date:from:mime-version :sender:from:to:cc:subject:date:message-id:reply-to; bh=KF0MpfUoUtX1coN2W/hYpRvRKRVjcheYnCG7IqNEOTg=; b=ca8E+Zoy3Yv3MzlXgqb9qoiOwm8+alYxAlGlFDCe1XEo5qES+igoKYCMlHadfQyX18 LaNemN8GNBuhLaG9cJ2bz9/w6g7Nxo8Vri+vImZYAiot5UemzZuGVwdlihHTfKxmflSu KuyQxJ79gp4R/BD8kHviK/TDl46cVbB/e6NpA8heNXuXH5RkZhY6kd4rLGxhjZtaXZdQ f2T/aCdgDRUh2bi1nKj/1V+LLh759108EGEboEiozZSvTSiqq+9CL0S0sDbAfC5JrZd/ dHLsVPGRGfZ6487hsH6BG7wOW0dZVeY0IJbYkffXE3b4Tuh6m7/Y9RwPuvdLaA3d8DM1 9NGA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702902401; x=1703507201; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:to:subject:message-id:date:from:mime-version:from :to:cc:subject:date:message-id:reply-to; bh=KF0MpfUoUtX1coN2W/hYpRvRKRVjcheYnCG7IqNEOTg=; b=Z/IyuJDvD8KTLpxJqso8I0BI2cEqCHhzSHs8fXnlMx5kcu+BwDFd068D8HZE82WHoS psu43UQ15y3/t776KRJqDVZHDhBb4AZFzJh/AA5IuwAxRZ4m3FmtzyX4W8KOc160uGgj FAGUFDI6+940wDTbJSOkwyjXQEZE+X6Br1Z2F+lTEmmYeBy9SRl+6q5+azIMTOdpFF6t 0/7Qddk24Qj5SvpZTcuJKi7SwT0nCQzYwf3PF+8+KnKVRBAhvNSap032AgUdr5yO05Vi 1Lb7RAjqoOilj4PY5rOdKD/YrCZwdasPAYf4sGtNuI+Oyp8eEVQJoqUR180NAqmDGhKA t/1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702902401; x=1703507201; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:mime-version:x-beenthere:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=KF0MpfUoUtX1coN2W/hYpRvRKRVjcheYnCG7IqNEOTg=; b=IBCt20ol76pmMkMjwjhGbK9OXGs2gZhoV9veSXJtM3CBCNB9jDhmJNs2CmhKfm6slv nbs+dO5OqmH2JqwROQn2iT2E76CVsP7Kxu44yggFCGGNZHjY/JQGWg4TxCSFhU26G3Mi mRVIxwIRCRsfblLbhyypJOkv6VHqWoyF1gXqjwcs82i5IoEDYSHVeJQcFuIulFeAGUzT io+PMtfa/35UYOUcYFy+8U4Jf1TDFm3QjrGD0rqnBVrcB+FBX0NslB3GX/Ale83ZetxC kT+UZw8wS7iVTbA1u+LOBQhDyv9BPRR6OPvtc9zNIr6tLNsjInkjBOKSydsTmPtze5Se yKmw== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOJu0YyI4+Vvy1rBdPC0bTOnV1kBIwDELtqzYqVyqZ702GG4VwgXH39P Joil6gwqJFiryMi/tOKDloU= X-Google-Smtp-Source: AGHT+IHZ0USjKDHJJVeWeetpPpJxDqVohuzR/5t5c/n9X2wDXUX/24IoZQv7AH0EjKjHT7M6SOy2ZA== X-Received: by 2002:a05:6e02:2148:b0:35f:b52d:4fb2 with SMTP id d8-20020a056e02214800b0035fb52d4fb2mr895139ilv.92.1702902401318; Mon, 18 Dec 2023 04:26:41 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:6e02:10c8:b0:35f:a8a4:e425 with SMTP id s8-20020a056e0210c800b0035fa8a4e425ls1342454ilj.1.-pod-prod-03-us; Mon, 18 Dec 2023 04:26:40 -0800 (PST) X-Received: by 2002:a5e:a916:0:b0:7b6:f0a8:4a1b with SMTP id c22-20020a5ea916000000b007b6f0a84a1bmr12361686iod.13.1702902400224; Mon, 18 Dec 2023 04:26:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702902400; cv=none; d=google.com; s=arc-20160816; b=V9P9XXZBIiGFc/DKJ6A4wpe7yhPW1y61HzciSWAT34ybQzQHOh+fupv+nghTJG2es7 DdPF3dB/LRvQ7AmJ3YpReuDn8eKLZ2r0h2WQ5q/Lxh8g3jJ/FeHm4CGxGKy4mESoq5Wg 5FZAvIrJQ1XZGB5zT9x2GA9iz1wOx+vCkNJKQFiGnrFJHUim9o2WZMpV8HkLWS7aycWk dr8jHKkWklbO/SSEUOeNritTP6Bf2kvtpgfOE1U9kppuRdrtI1cmdnFVinDUHRfhlLWl E2fnU6bcs03W/m6b4/voPO8XI1tLAomPlBuLlV68AyDDZ52THZYm3gHqMu+3ktYlnYIi 91Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=ettHcWFrDyDYQdJDML8cEyY/0OBpuhqEQ2EmhJjplEs=; fh=nvZsCFpxgpf+fsVXzjnWA8g1K3V/kNbRAKogjNDW4HY=; b=CugWi8cqulxn/o9/K5B/e7RDijZHPyA3LhFp/KLQaPMz2oF6kVQvaTldYdGOyYecLS i3PRFOd4GZPiIRkujh4IpgQPp7HyMaf36PLQZp7xx3tPbdqD0s8/bnt16pR7efIh45mk KsI9nsFLljd75dLzHNq1EfA9oeJJ20RA4rygc/2AkICl1ZFKct+0LLmL0RIbH8RYEAmA hpD8TrfaCIA4L+1syweMCkdG0QtMvqo00hIvN3ckem+J3YKX5sC/HM/k3I4tKKqyenBi iXbp8DH+NxVbTkHMaQ/b4H51GC7ZoGmQCSnF2WFeuhV/Qt+DrZhU4656zJKXI6aPeHIk qejw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BT5i1wSH; spf=pass (google.com: domain of neumann.bastian@gmail.com designates 2607:f8b0:4864:20::f34 as permitted sender) smtp.mailfrom=neumann.bastian@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-qv1-xf34.google.com (mail-qv1-xf34.google.com. [2607:f8b0:4864:20::f34]) by gmr-mx.google.com with ESMTPS id o6-20020a05660213c600b007b3943f2cb5si1548459iov.1.2023.12.18.04.26.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Dec 2023 04:26:40 -0800 (PST) Received-SPF: pass (google.com: domain of neumann.bastian@gmail.com designates 2607:f8b0:4864:20::f34 as permitted sender) client-ip=2607:f8b0:4864:20::f34; Received: by mail-qv1-xf34.google.com with SMTP id 6a1803df08f44-67f2fc389e6so10002876d6.2 for ; Mon, 18 Dec 2023 04:26:40 -0800 (PST) X-Received: by 2002:a0c:ee47:0:b0:67a:99aa:38b0 with SMTP id m7-20020a0cee47000000b0067a99aa38b0mr14399850qvs.44.1702902399435; Mon, 18 Dec 2023 04:26:39 -0800 (PST) MIME-Version: 1.0 From: Bastian Date: Mon, 18 Dec 2023 13:26:28 +0100 Message-ID: Subject: [swupdate] Update BitBake auto versions documentation To: swupdate@googlegroups.com X-Original-Sender: neumann.bastian@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BT5i1wSH; spf=pass (google.com: domain of neumann.bastian@gmail.com designates 2607:f8b0:4864:20::f34 as permitted sender) smtp.mailfrom=neumann.bastian@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Some time ago the aforementioned SWU_AUTO_VERSION was removed and is replaced with a function call to swupdate_get_pkgvar Signed-off-by: Bastian Neumann --- doc/source/building-with-yocto.rst | 34 +++++------------------------- 1 file changed, 5 insertions(+), 29 deletions(-) - version = "@SWU_AUTO_VERSION:u-boot@PKGV"; + version = "$swupdate_get_pkgvar(u-bootPKGV)"; Using checksum for version -------------------------- diff --git a/doc/source/building-with-yocto.rst b/doc/source/building-with-yocto.rst index 89759150..0e364b66 100644 --- a/doc/source/building-with-yocto.rst +++ b/doc/source/building-with-yocto.rst @@ -178,47 +178,23 @@ For example, to automatically set the version tag: Automatic versions in sw-description ------------------------------------ -By setting the version tag in the update file to `@SWU_AUTO_VERSION` it is +By setting the version tag in the update file to `$swupdate_get_pkgvar()` it is automatically replaced with `PV` from BitBake's package-data-file for the package -matching the name of the provided filename tag. +matching the name of the provided tag. For example, to set the version tag to `PV` of package `u-boot`: :: - filename = "u-boot"; - ... - version = "@SWU_AUTO_VERSION"; - -Since the filename can differ from package name (deployed with another name or -the file is a container for the real package) you can append the correct package -name to the tag: `@SWU_AUTO_VERSION:`. -For example, to set the version tag of the file `packed-bootloader` to `PV` of -package `u-boot`: - -:: - - filename = "packed-bootloader"; - ... - version = "@SWU_AUTO_VERSION:u-boot"; + version = "$swupdate_get_pkgvar(u-boot)"; To automatically insert the value of a variable from BitBake's package-data-file different to `PV` (e.g. `PKGV`) you can append the variable name to the tag: -`@SWU_AUTO_VERSION@`. +`$swupdate_get_pkgvar(@)` For example, to set the version tag to `PKGV` of package `u-boot`: :: - filename = "u-boot"; - ... - version = "@SWU_AUTO_VERSION@PKGV"; - -Or combined with a different package name: - -:: - - filename = "packed-bootloader"; - ...