From patchwork Wed Dec 20 08:41:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bastian Neumann X-Patchwork-Id: 1878403 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=aDdtoLHS; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=gMFGNHdz; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::238; helo=mail-lj1-x238.google.com; envelope-from=swupdate+bncbct3dafr2ylrbsgrrkwamgqeygm7shq@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-lj1-x238.google.com (mail-lj1-x238.google.com [IPv6:2a00:1450:4864:20::238]) (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 4Sw6Vj56Xbz1ydg for ; Wed, 20 Dec 2023 19:41:48 +1100 (AEDT) Received: by mail-lj1-x238.google.com with SMTP id 38308e7fff4ca-2cc60eb3be0sf28827811fa.0 for ; Wed, 20 Dec 2023 00:41:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1703061705; cv=pass; d=google.com; s=arc-20160816; b=ogsOPHsjoPwZWsUPmG3hJzBCpm71iolILCr4BHjeukTiQv9+UgaNO3jTkmZ7HOAp4I V43Gx4elz3KZgJlvXiV9o+6A+Ko3e6p5162C8SVo7eCCvdLWsd/Fduyvhf1nGk1Eajtx zxfEeoFJdG8sUkJjf5FyILIjkzikeuUpTsHofxEXHtKshCGvIMuZQ8gOwnj7yWiQ7Hc+ /pNgqRqJ146fb91bZ/p00kVDfKDYFF25N3XslviPPUPipy/iYM8IAOuEpiEmkOYtC3GH cns+k+1mqbXuadGi1PhctVbx0ljHirKCMMZSizlbOwA0ePngIl+S2PF3YMOTmqF19I3f TguQ== 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:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature:dkim-signature; bh=4bfM5R070qKQk4R+8Dd5iryj63xo44lVtl3NZNd8RWY=; fh=zkGuZhaIKim4BUTnFAVPIYAaGgGqY5W6F/Z2kJlNJNo=; b=sHvYLpec9vISrX/JKswZws76maZbjVgfmOz9CsCIBgIABDkeL/yQiNLzMos2ObLLxd OEhr1vQIO7Y8Jso4dLzfm8vOpIGQiPOpDxPo8R9+3NpMqeCBZ8DWu5NLn9Qyj0x2C5s4 i/flk2+7Rh39+PJy3OcU4zjX+MVuhjbLdC5bf7gOwmvErtOMl5HIw+fv5czLPXQpTeqx tU36hGZXSnWtcDFzTDb1dBUZYJ3jv6COAIzNvmtT5dTMxzN3gJgI5WDV62ogoLi2TqMQ Qitzb1atGeBNYbYRQFGQvK3ghqGaFEN0e8Av5PmRmUPRFBtKmNH36TGnf6ax0fV3FBLe PzAQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=koceWpTo; spf=pass (google.com: domain of neumann.bastian@gmail.com designates 2a00:1450:4864:20::635 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=1703061705; x=1703666505; 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:mime-version:message-id:date:subject:cc:to:from :sender:from:to:cc:subject:date:message-id:reply-to; bh=4bfM5R070qKQk4R+8Dd5iryj63xo44lVtl3NZNd8RWY=; b=aDdtoLHSIQvKUQpuOZDkjuhSqiNsyJwXNVM5Y7wzNQ4FcG48Ot2BYTp9SFbWW7/itY ogqRn37LvXgw9Nio1tE/6tdMLHE34BJ6lexWpFKHVWtwocL+l/414Ps7tWT8gSGwp5FJ kYYg40H2SEAFEt4Odv6qFKQMWznfcNSNck8gU8hFFh+QzJvmJY7ZKsmUGCkKLbbTXNmv qOrDUgLvSuSS+QD0gVSEX+UTzMf0ECeFJcIzpVL8eTY8U3KRD/dMo1SQHCCPhkZ7nG6a d9DRDx66ZXmoLkvUUzLfZZYa18v9mo/UfE1ACR4l/+7NFav6bUc2dp8ZZkeM3QrV5zTu R7fA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703061705; x=1703666505; 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:mime-version:message-id:date:subject:cc:to:from :from:to:cc:subject:date:message-id:reply-to; bh=4bfM5R070qKQk4R+8Dd5iryj63xo44lVtl3NZNd8RWY=; b=gMFGNHdz22FIHgtMQ69SJt5E6Nrx3VYMyluvCqDBj1B/9Dli8+hgfcO3jbxmoA25pw sDohhbeUiWjomSv6GrVBw7VM71St0+lI0bGkE3M2qUmpPy4GPxCd0C7x3wHw27q4WYBn 5hhRkpridQwPKGkbfE7ecnitJpx4vTQSe4fjGWiLrZb1+PzsgPQi+UAf9tJjWRo6t+33 JD+h4VvLpCXHqvmeVhNq9bnoL6ZYhUIZkfkJZd/7I+ZxxhHQdePgi/ulOdwp+nwlqtlC +D/gDXSPLW8gzgJw6p/pjEw/jWU5oFPwNpIyhwgDK/Yin7sNJlYiaf9cjcpYgwWzgeIE D7jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703061705; x=1703666505; 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:mime-version :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=4bfM5R070qKQk4R+8Dd5iryj63xo44lVtl3NZNd8RWY=; b=WtAu7BTlkd2eW/bT+qkaPhF6CRuK7ODZrGInGjzacdX8SF4oWRYtBw+HcvU38S4e+3 PCu6AiHMR21zitDFAab46IV/Dp2bjKZdtHpFPF1VQLmEa5Vd3jKOGjbo9KtjJwK0RY7k xdu39yoe3AdaSzrGr90PxUiejU970DPbPYs9yEiIUm4o4oNsvDG0f5PjTTp3hf1fyNe5 o3ZJfeaQpFqMPdstHrSWcYAxSb+2eIG8OqfyziX+TaYGV/P3oOBvFM4YXHJ3ZO0Wab9X UGVPE2kp3VG5/0BDryqXzfk63QadM73lzbUv+ybVbP1Ejt1pUA38UEpN23NWisUpC2uM qpNQ== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOJu0YzEsIUMoU1/qgXOmevF2IS4EyYpcw/YNrJFXdESyW0vDoguiwz5 nmyHFigtdoQ0e0IAi63WIns= X-Google-Smtp-Source: AGHT+IFnw158qpSxs8axXqeVGBpB5xChV4NTH4X7Ij7XNRhTgvQf0WZ8dyrp1iJvfqPymMxsM0LApQ== X-Received: by 2002:a2e:8897:0:b0:2cc:6fe2:4ddc with SMTP id k23-20020a2e8897000000b002cc6fe24ddcmr2429448lji.3.1703061704994; Wed, 20 Dec 2023 00:41:44 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:651c:1a29:b0:2cc:78ed:7c40 with SMTP id by41-20020a05651c1a2900b002cc78ed7c40ls6570ljb.0.-pod-prod-06-eu; Wed, 20 Dec 2023 00:41:42 -0800 (PST) X-Received: by 2002:a2e:8ec8:0:b0:2cc:6b07:e271 with SMTP id e8-20020a2e8ec8000000b002cc6b07e271mr2390180ljl.54.1703061702370; Wed, 20 Dec 2023 00:41:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703061702; cv=none; d=google.com; s=arc-20160816; b=TqypBUgSLwpGDBx8MsUTRHKYavfW8OijypUyKj7muz5DF7D7CP0w5beXSeC1h+DTON WwWGJ6MbZk7AkdUl+dzc6TPiqpKh8tkV/FLYmD1UuRtd5HX3BqWtEteHyvJiHpomoB6W k4HlRwjsGEB9+agLky+DKQnSL1ycNMdvZDFLPjN5clMIS31Dx8bJT/IE+F0WFvstG5V1 ZQhA5aOAyVxcVQEf6ZpF+GFuGsHglWkTu7fD8tJwRmYQH4Ee9qqronjg0uBHfMnOpbNO oXgIkTRSbNWhisLM368XbKjDJoYf/xhjEXuL3z/Xc4/3lW6fFYirgY16ZA81ljYjb9lv ExGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=2foWR8v9Na+pDoWurs5VeA8Aui786Ejl+RSOg2NEx/w=; fh=zkGuZhaIKim4BUTnFAVPIYAaGgGqY5W6F/Z2kJlNJNo=; b=NmgF+dMd2AVXqHRYVcJK8WqRpGuzNV2HMTfVu7FVphKzayBOKDhMj3rwQUa+UnYKxF /H9hwi1P1gEC+FetRW1SFiHwVcy6UquzhmMjGipCW0YgO+5Vl8w7sy2H9ysrkiuAlraM /Z0YYLBUz7k3DAZBW77moCj9oq+eYkovcAnPDDR1rfiZb7bWaF5sh8gWmjJF2+LZofmJ cNY4HU/hFYfUFhdCyJ1+PftrSybwR2E6v9USQ+r7ApELPMVa5qr4i5ZTnMhM2k4nB0zT X8LesIVRO9jplAP0HUiOahCJZn0oGNz3LXNbcj1OjaV7R87oq23E6zFw2BXE0Bd3asRP 1spg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=koceWpTo; spf=pass (google.com: domain of neumann.bastian@gmail.com designates 2a00:1450:4864:20::635 as permitted sender) smtp.mailfrom=neumann.bastian@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com. [2a00:1450:4864:20::635]) by gmr-mx.google.com with ESMTPS id y10-20020a05651c154a00b002cc55647326si372772ljp.0.2023.12.20.00.41.42 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Dec 2023 00:41:42 -0800 (PST) Received-SPF: pass (google.com: domain of neumann.bastian@gmail.com designates 2a00:1450:4864:20::635 as permitted sender) client-ip=2a00:1450:4864:20::635; Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a236456fee1so334327166b.1 for ; Wed, 20 Dec 2023 00:41:42 -0800 (PST) X-Received: by 2002:a17:906:19d4:b0:a25:5023:7dfa with SMTP id h20-20020a17090619d400b00a2550237dfamr1187022ejd.58.1703061701040; Wed, 20 Dec 2023 00:41:41 -0800 (PST) Received: from C0256-ND0257.internal.dentsply.net ([185.84.56.158]) by smtp.gmail.com with ESMTPSA id ul5-20020a170907ca8500b00a1f7b445f5dsm15060014ejc.124.2023.12.20.00.41.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 00:41:40 -0800 (PST) From: Bastian Neumann To: swupdate@googlegroups.com Cc: Bastian Neumann , Bastian Neumann Subject: [swupdate] [PATCH] Update BitBake auto versions documentation Date: Wed, 20 Dec 2023 09:41:37 +0100 Message-ID: <20231220084137.687-1-bastian.neumann@dentsplysirona.com> X-Mailer: git-send-email 2.43.0.windows.1 MIME-Version: 1.0 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=koceWpTo; spf=pass (google.com: domain of neumann.bastian@gmail.com designates 2a00:1450:4864:20::635 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: , From: Bastian Neumann 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(-) diff --git a/doc/source/building-with-yocto.rst b/doc/source/building-with-yocto.rst index 8975915..0e364b6 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"; - ... - version = "@SWU_AUTO_VERSION:u-boot@PKGV"; + version = "$swupdate_get_pkgvar(u-bootPKGV)"; Using checksum for version --------------------------