From patchwork Fri Apr 19 08:48:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcus Folkesson X-Patchwork-Id: 1925448 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=J/NEW6L7; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=KqQy/l2p; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::438; helo=mail-wr1-x438.google.com; envelope-from=swupdate+bncbdnyr2ftvyebbd65rcyqmgqe2kggeha@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-wr1-x438.google.com (mail-wr1-x438.google.com [IPv6:2a00:1450:4864:20::438]) (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 4VLSpF0vTsz1yZP for ; Fri, 19 Apr 2024 18:42:59 +1000 (AEST) Received: by mail-wr1-x438.google.com with SMTP id ffacd0b85a97d-349fbb7ab16sf1152023f8f.1 for ; Fri, 19 Apr 2024 01:42:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713516176; cv=pass; d=google.com; s=arc-20160816; b=uBDuG5qnX6+GfMof0A539IbrZJJAXEDGgHSgD8FU5Mi2Cl18lCdIk7EBo0OkGwCzxD kTgItnJzx4IQ4XQNnzBRLbDRBkMLojxeMavZD3PEN57HHf32yl2zuaqFwO2W5AT/TWCO Eu9Jh2MMj0h9tD8KyxsNFu6oN01YlFpSnhi94aw6OIvvAuaMc9ErvDfzIOPpQd9MkG8f ROrUrqt/ncvNRpd0rrWH/80ppuLFJrFgqR2sSZ7tWreqyFbc6HCOd29QhsKIWtWhix63 L38r7z+8hGnQxQnKbMHR972kC7Nf7h0WuCOgXZSDWAkFDZE11H5NF8EScIMmU4M8kCLu 8Fzw== 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=4LJ2if7RvFlMpOIBbNTmUxXCuVlujVX1LzEP0+TTnH4=; fh=uyHghn5po+YYER2+pGNJz4S6u9ZpyI7Xkc90zzFIxOA=; b=ErQj8eTqV4FV53G9MRgiu3cETYcPrrHXa1g7uHTFgf4wxN6Eg8hBujEZGGgVL4aJ2/ EcHgOTc9SS9Os7YpkRc59lXhHO3ExJ9MxcP22zyfUQsao8dI8d0yiwyMGqPM+fAM12Nf XssjdnN3+k6NqjBhreCzya3jCmYsJY7E/1IdvEgn2h5WDjTI9Uj1LiNYon+Vzd4khjXA hGGe0mSYlCpC0mGkZNf12sYn42lQmB6LQudU0tAvkLY63RtLaVu1FPnc4V50czGF7o5p IOz5JzJf+HJFbDz6F/HyPB8BmoNNoU2/uNXZ4+k0Oap/SCV50I73Z+8EHEDht/7Fi0zX dBiw==; darn=patchwork.ozlabs.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WZI4USvg; spf=pass (google.com: domain of marcus.folkesson@gmail.com designates 2a00:1450:4864:20::22f as permitted sender) smtp.mailfrom=marcus.folkesson@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=1713516176; x=1714120976; 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=4LJ2if7RvFlMpOIBbNTmUxXCuVlujVX1LzEP0+TTnH4=; b=J/NEW6L7gsckbNNmqJkrwxs20z87lfXHaX+KJTpUikecwUiIynmoOaGFZdXW/W0cxl e80JyDPAcD0GHKHVP0Mj/SpDL7LHkdZKPZHoMdgdnXlWTNUill8fmqN3ms9CK1QPMZKb JYi1L34qONkRH6r3PWvo+wFDVWWmWPvWNYRH/BDWFg9OXXvxA//GpVvGew652lsFKtfJ t275sxh/8jM/yOWYhZF3FIVgqPnQtfml5FtRpVP75RSG8eZDKjDvvChZwG2FaTKEYZI5 HeKh8frHy8xmUDJUIX27KxZzKTdRLXutl+rHcey+MzV4NjAkTa7hE1xd7ENX2OU9A2JW rRuw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713516176; x=1714120976; 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=4LJ2if7RvFlMpOIBbNTmUxXCuVlujVX1LzEP0+TTnH4=; b=KqQy/l2ppt9mIqrMR5XzR7HQZRCTyDm0HEdLaWpPPn1Y45Ozky2o594iBy+pmRJyEh iuTu6FAjxL347Rltv7AG/Seyg3sLsZwDJ3RrVHBzEdzsopWArjetiUhtxHjgP8LBOsco oj36s+SjiKoDBY+qQrMIFQ4kSqLvFCNMuo7jgbEL/7h5U6/oJAi+YY4sre1f6ZLW5JgT u6bhZmQMeXvRaQM6y1LERS2yz3frUymGPhu0hpTf7edXp3TTLjPhunAN++2922aRO9KT XmbzNYsJYaVw4cikfDF5FSvMamyxJ1e465slvO7AFD7KJwu0dfI/wPhBkSZEAdIUUpLX sFNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713516176; x=1714120976; 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=4LJ2if7RvFlMpOIBbNTmUxXCuVlujVX1LzEP0+TTnH4=; b=CWGfN5GOE8oHnpTcIncu32ObpuPpsnS81hZ0VfUF1Ma6cDS72GKMrh7oGC9oe2dYGi QrZ12DestpR6s5rO0iuac0qQZIE2YXLsMKFSy637nG5A/NEIMG90I5K/cfTmVYtvpTJR B2R6oQ3HchccmU2fPadjnQZFpeObpe7MNMLn8WaX2Q/eMO+SdSfIvHcU/QLCY8EBpopk OeGfykiCVI8wJYF9/Y7AEpFz8vC3isUumctB5M2VxPXEXfsbGIYdRLSrgbmZR66wxqFA EErdAAzKnBZ3ce5ndyKKPMDHI6ptzgSBrv4xct/dEKqaH5e0JVsqQiXP5yxextw81Ipp vg0A== Sender: swupdate@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCXc2OvUiTjTAi/hEIvHBZAexibnNI5bbhtCjnq7V/CQzcG3xlolm+vgeADBfLyKvHVfAkEHaBhmj4O5USS8nCspP+uXvkXEQVCWh47alg== X-Gm-Message-State: AOJu0YzLMbPalqsY7zRvE23YjWUOWlinU3udw6+/Lr09ETg90xTWPSIM PB7YTlBGZQ8NDjzPbCMdEDTM+Pi6696b3ZVviuu3wy64ycN0vbGv X-Google-Smtp-Source: AGHT+IGdWAlgsDs+lgJ8NrUyR/G4uZDVBMuaFfsA3wCuf4pU3ZNJ/gU7ZS2JRr5ExCFwOTzq2uvv7g== X-Received: by 2002:adf:f08e:0:b0:349:fef8:73b3 with SMTP id n14-20020adff08e000000b00349fef873b3mr1000589wro.14.1713516176102; Fri, 19 Apr 2024 01:42:56 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:600c:3b13:b0:418:fa47:e914 with SMTP id 5b1f17b1804b1-418fec2b756ls3641075e9.0.-pod-prod-09-eu; Fri, 19 Apr 2024 01:42:54 -0700 (PDT) X-Received: by 2002:a05:600c:1f09:b0:418:f8d3:ba1a with SMTP id bd9-20020a05600c1f0900b00418f8d3ba1amr851919wmb.18.1713516173695; Fri, 19 Apr 2024 01:42:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1713516173; cv=none; d=google.com; s=arc-20160816; b=E+2nTLhqjiIzQa1m1pEQRRgHGnJfZc20cUDzKYyWLaGfQtPuzhzL2L5+7HubCmDE3x Zr/AGCw/59a81DV24gLL9J1jpzpLCfUiG0t6LRIvEpzOqTBPMl0xgjM6OG0KRCRfpbOd J67iYbEnaY5HtaXu5FlZk20YICwj3DHQgDqL5ei5ufqsaApl+AyHR7tZHwpmPxDwpipt NLFOJXBu/urhHiFikGcCoG8OQrlSYIUgixiIopyM/1Sdb/3bbgCX6RBhRzOHD0H5L+cJ gxJdKjt/wMZbLLi0jQORmBVAPZfYkjzc7IpDvJ45hlBDQ0wO+9ICYQLXkaBrVzLsUgst QvmA== 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=wpimuWyEGPcftTNBLkd9o/xUwtyWFYrceim2jsO8N6g=; fh=byqoZYyGIF5nyUrxbqMCSaBgugTQ0N3rC9IbdDbCkgM=; b=JmiaUfDJX8tqnF5aCke3Ow2TVJzvvfm6izeQHFj7l60ymlGFbk5lblzY87Bodp874a QhR9hpQDRCNdtTfgGBsRFaHaXpP6g7XiF/1g3H6YPFKQ8xW5EzcvONx57HwH9x2VjWpN XUbsMZNsGyqArj+QBzLiM/pAYxreCj9Zukr1Wp2ewqzclyLrzFTdGhYSsvUGufjtxR5Q E0FvWGQCdpkT2WrzgEYDp8ZsehW/9TFXAFqjizbiAzDjvSRFgv69GMZ+NXbeV7OqwLgo wQetqW4hz6thuyGowT1cn/5tQInwuf/3t03ew3J4pIOlaaYDzaorivziyPNadswciCNk AR9A==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WZI4USvg; spf=pass (google.com: domain of marcus.folkesson@gmail.com designates 2a00:1450:4864:20::22f as permitted sender) smtp.mailfrom=marcus.folkesson@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com. [2a00:1450:4864:20::22f]) by gmr-mx.google.com with ESMTPS id z8-20020a7bc7c8000000b00418d0772cd2si158525wmk.0.2024.04.19.01.42.53 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Apr 2024 01:42:53 -0700 (PDT) Received-SPF: pass (google.com: domain of marcus.folkesson@gmail.com designates 2a00:1450:4864:20::22f as permitted sender) client-ip=2a00:1450:4864:20::22f; Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2d8b194341eso16523591fa.3 for ; Fri, 19 Apr 2024 01:42:53 -0700 (PDT) X-Received: by 2002:a05:651c:14b:b0:2d4:6f14:53d5 with SMTP id c11-20020a05651c014b00b002d46f1453d5mr822963ljd.26.1713516172161; Fri, 19 Apr 2024 01:42:52 -0700 (PDT) Received: from localhost.localdomain (83-233-6-197.cust.bredband2.com. [83.233.6.197]) by smtp.gmail.com with ESMTPSA id u3-20020a2e9b03000000b002d69186df71sm509960lji.54.2024.04.19.01.42.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 01:42:51 -0700 (PDT) From: Marcus Folkesson To: swupdate@googlegroups.com Cc: marcus.folkesson@gmail.com Subject: [swupdate] [PATCH v2 1/2] Introduce --gen-swversions parameter Date: Fri, 19 Apr 2024 10:48:20 +0200 Message-ID: <20240419084821.610411-1-marcus.folkesson@gmail.com> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-Original-Sender: Marcus.Folkesson@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WZI4USvg; spf=pass (google.com: domain of marcus.folkesson@gmail.com designates 2a00:1450:4864:20::22f as permitted sender) smtp.mailfrom=marcus.folkesson@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: , After a successful update, --gen-swversions generates a file with the installed software and their versions. The file is compatible with CONFIG_SW_VERSIONS_FILE and could replace that file if the end user want swupdate to maintain that file entirely. Signed-off-by: Marcus Folkesson --- Notes: v2: - reverse logic for: if (generate_swversions(sw)) { ERROR("%s cannot be opened", sw->output_swversions); } core/installer.c | 64 ++++++++++++++++++++++++++++++++++++++++++++++ core/swupdate.c | 7 ++++- include/swupdate.h | 1 + 3 files changed, 71 insertions(+), 1 deletion(-) diff --git a/core/installer.c b/core/installer.c index 48c7fe5e..bbcc0497 100644 --- a/core/installer.c +++ b/core/installer.c @@ -187,6 +187,24 @@ static int prepare_var_script(struct dict *dict, const char *script) return 0; } +static int generate_swversions(struct swupdate_cfg *cfg) +{ + FILE *fp; + struct sw_version *swver; + struct swver *sw_ver_list = &cfg->installed_sw_list; + + fp = fopen(cfg->output_swversions, "w"); + if (!fp) + return -EACCES; + + LIST_FOREACH(swver, sw_ver_list, next) { + fprintf(fp, "%s\t\t%s\n", swver->name, swver->version); + } + fclose(fp); + + return 0; +} + static int update_bootloader_env(struct swupdate_cfg *cfg, const char *script) { int ret = 0; @@ -279,6 +297,41 @@ int install_single_image(struct img_type *img, bool dry_run) return ret; } +static int update_installed_image_version(struct swver *sw_ver_list, + struct img_type *img) +{ + struct sw_version *swver; + struct sw_version *swcomp; + + if (!sw_ver_list) + return false; + + LIST_FOREACH(swver, sw_ver_list, next) { + /* + * If component is already installed, update the version + */ + if (!strncmp(img->id.name, swver->name, sizeof(img->id.name))) { + strncpy(swver->version, img->id.version, sizeof(img->id.version)); + return true; + } + } + + /* + * No previous version of this component is installed. Create a new entry. + */ + swcomp = (struct sw_version *)calloc(1, sizeof(struct sw_version)); + if (!swcomp) { + ERROR("Could not create new version entry."); + return false; + } + + strlcpy(swcomp->name, img->id.name, sizeof(swcomp->name)); + strlcpy(swcomp->version, img->id.version, sizeof(swcomp->version)); + LIST_INSERT_HEAD(sw_ver_list, swcomp, next); + + return true; +} + /* * streamfd: file descriptor if it is required to extract * images from the stream (update from file) @@ -370,6 +423,8 @@ int install_images(struct swupdate_cfg *sw) close(img->fdin); + update_installed_image_version(&sw->installed_sw_list, img); + if (dropimg) free_image(img); @@ -409,6 +464,15 @@ int install_images(struct swupdate_cfg *sw) ret |= run_prepost_scripts(&sw->bootscripts, POSTINSTALL); + /* + * Should we generate a list with installed software? + */ + if (strlen(sw->output_swversions)) { + if (generate_swversions(sw)) { + ERROR("%s cannot be opened", sw->output_swversions); + } + } + return ret; } diff --git a/core/swupdate.c b/core/swupdate.c index a421e888..5cfec3d6 100644 --- a/core/swupdate.c +++ b/core/swupdate.c @@ -111,6 +111,7 @@ static struct option long_options[] = { {"no-state-marker", no_argument, NULL, 'm'}, {"no-transaction-marker", no_argument, NULL, 'M'}, {"output", required_argument, NULL, 'o'}, + {"gen-swversions", required_argument, NULL, 's'}, {"preupdate", required_argument, NULL, 'P'}, {"postupdate", required_argument, NULL, 'p'}, {"select", required_argument, NULL, 'e'}, @@ -173,6 +174,7 @@ static void usage(char *programname) " -M, --no-transaction-marker : disable setting bootloader transaction marker\n" " -m, --no-state-marker : disable setting update state in bootloader\n" " -o, --output : saves the incoming stream\n" + " -s, --gen-swversions : generate sw-versions file after successful installation\n" " -v, --verbose : be verbose, set maximum loglevel\n" " --version : print SWUpdate version and exit\n" #ifdef CONFIG_HW_COMPATIBILITY @@ -475,7 +477,7 @@ int main(int argc, char **argv) #endif memset(main_options, 0, sizeof(main_options)); memset(image_url, 0, sizeof(image_url)); - strcpy(main_options, "vhni:e:gq:l:Lcf:p:P:o:N:R:MmB:"); + strcpy(main_options, "vhni:e:gq:l:Lcf:p:P:o:s:N:R:MmB:"); #ifdef CONFIG_MTD strcat(main_options, "b:"); #endif @@ -623,6 +625,9 @@ int main(int argc, char **argv) case 'o': strlcpy(swcfg.output, optarg, sizeof(swcfg.output)); break; + case 's': + strlcpy(swcfg.output_swversions, optarg, sizeof(swcfg.output_swversions)); + break; case 'B': if (set_bootloader(optarg) != 0) { ERROR("Bootloader interface '%s' could not be initialized.", optarg); diff --git a/include/swupdate.h b/include/swupdate.h index e18de8d3..ecad2d82 100644 --- a/include/swupdate.h +++ b/include/swupdate.h @@ -49,6 +49,7 @@ struct swupdate_cfg { bool bootloader_transaction_marker; bool bootloader_state_marker; char output[SWUPDATE_GENERAL_STRING_SIZE]; + char output_swversions[SWUPDATE_GENERAL_STRING_SIZE]; char publickeyfname[SWUPDATE_GENERAL_STRING_SIZE]; char aeskeyfname[SWUPDATE_GENERAL_STRING_SIZE]; char postupdatecmd[SWUPDATE_GENERAL_STRING_SIZE]; From patchwork Fri Apr 19 08:48:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcus Folkesson X-Patchwork-Id: 1925447 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=rO8hFEc3; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=G6u+8nQG; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::13d; helo=mail-lf1-x13d.google.com; envelope-from=swupdate+bncbdnyr2ftvyebbd65rcyqmgqe2kggeha@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-lf1-x13d.google.com (mail-lf1-x13d.google.com [IPv6:2a00:1450:4864:20::13d]) (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 4VLSpF1BHZz23hf for ; Fri, 19 Apr 2024 18:43:00 +1000 (AEST) Received: by mail-lf1-x13d.google.com with SMTP id 2adb3069b0e04-518c3c6e757sf1491364e87.0 for ; Fri, 19 Apr 2024 01:43:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713516177; cv=pass; d=google.com; s=arc-20160816; b=t3CDLKPH2XmcNIVVG1wCUrHcOjZpNLje9/E40c+gOPaD/hmmd4vO9doagePorITJMP NxDypFF9Dj3a6KbenM/8qNBLe/04hupl4zD4myLPjaBSQhe4RADw6ktQYCiqCEUNu5pp vYyaARXLRTbQ5r0DhI14r5Gx3dOahzi3QEilxCu4HmB4Ipw1GOSxES9fmPau+ogLsbCo uH1ph8I0+d5cG9IxEuMFVs/ze/1WbHB1b8KyhpPICIASP092OQI9sUIIEsoe5k6PH62E n0Gn10UCKyvHc74aKezLeAj9oRB8yaunGNZ2jvkrV19oivcL6sGKs7C8ftCR1ZOgHPCb 9vjw== 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:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature :dkim-signature; bh=4a9OdgXB4E/8p5wIgl0IXBxYOnGPbO9LWTNntWRvyGY=; fh=Q9uGuEXiKmvUpeoDwRHaSl7Zcfv5aerrOwRx0Bv5o/s=; b=EPX4Y3ahDzlmN8vaAnsYGNvmPfN4CYhS263/gUR76AKZ9KvvsVEBuwfpqVQf2MJNOQ hhq2ttXSo517to66ZK2+LCOSCJKXUqzJxlT+8EzilG2+O8jl1S/RKOJKQe1iXS8Q2Ydf mRWsORS4XKN3G7jinn7yJJI+Y058aDe4oiNqIDqsK2LSku48w0i0S4HR8xVwAFZFTbvf L15ri3KUi5g949Bf5m9TYnC28hzhhX6lXuwQYPwLRJK6rY1ka97xux8oR1aLNiVf746F 4pNvKRn8G5J2APkidDla94cazXBof7Yy6BBjAD9jDUU5AriDwLe9pQZRbtxMsWwNvqs+ XDzQ==; darn=patchwork.ozlabs.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TLq0Xq+t; spf=pass (google.com: domain of marcus.folkesson@gmail.com designates 2a00:1450:4864:20::231 as permitted sender) smtp.mailfrom=marcus.folkesson@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=1713516177; x=1714120977; 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:references:in-reply-to:message-id :date:subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=4a9OdgXB4E/8p5wIgl0IXBxYOnGPbO9LWTNntWRvyGY=; b=rO8hFEc3PE+d48WTK11/Pd68kTUJjEgNvIv9i7MzuWC6SBmv/3UyRLZMIhEosBBQPy DWmfSe6fmNzBaVoARwcYRcgNC47oTQHJ9v5RFlZaBM+etIABTkcS7EA6lIfB0Nic3cdL EUd0TEuYNkaNgu8R128sE9mxHHXnM2fmXQ6wBwfFilFbcQasP5AK6veIlPF0s0/Of8Qe nAUOZ0ldC7bjVRDbicGljcjZ1GMwCBFxOXIIXjoTMCMTevCHv7R1lvkm7lWMoOftU9su JxQhtOW2Gcv2RdFuTF5PMN40tvR1hMbaDVdu3CE0Z4j4L5rKx09KIIw2gwMxYF5xNijL wX3g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713516177; x=1714120977; 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:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=4a9OdgXB4E/8p5wIgl0IXBxYOnGPbO9LWTNntWRvyGY=; b=G6u+8nQGpkaQde6JEwRSCSnxE4xvMeZQ/abWk48fQ9BPLYWm6xSmgyM3UjwH8mrfPJ CzmUJeDT1SrvSnMZf/QsJZnpOe/LBtSwkte0AfBilOvS24pGQjqqygzAz1G/5PyIZjM2 m5ACItzRMnBY+4/5M19DKpv50UC5k2F5pl0kLFhIiXBHbylCZ+RylN5Xecc4rEhQk+19 jAcMXqcH7z6jQichVj31IqBafvmvlvXsbbO7h0tThFvNxylb8hZxA4ODYeqyZhITKUOw Ha/rGzEYbDUzBwS0XvcZyaJh9+ovLsJxP/ls9pV7155TkpxkJfFB2ck9VtThfOsTknGH 2+5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713516177; x=1714120977; 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 :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=4a9OdgXB4E/8p5wIgl0IXBxYOnGPbO9LWTNntWRvyGY=; b=N212DQ48BLVCoSSx6k7XAGq6yntDXFHGDfoZsiGqPR79SQnf8g7Y8qqBDMCjbVZ9en j7IHiF3utBWMfLwIq+vUY5ekgwSTqEfoJFb4ZP5U0Gc9GvTgXHgZO+mWK/X0+42sj72+ YQFwPzH/8lXmAAVIf59n1Y1Z5ZZMIbBH45/729/YNrRCP7LcOO0XPsSwvwG6he4ow/gh vNU8mXTk8tRxw7ozHhpmBZTrQ1wfHljcsE0LG8/wOd7wQQneOctW9cqvgmASNAXo38e9 2oJ1I/da/8xlpnYYDmnlK9hTe5ct2GAvfLr8j2eOVAF/5nhxxj04dp95W/pzipovgAgI gDVg== Sender: swupdate@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCWko9zOzazb3wxBSdPirZppuLpmp81oMy6P6lZkHo1UZ2A2z2hO7PU/68+vyG0Cde3U+bfddcveEC6jlRHXMwr5jLvcckYRzY6ujWthrw== X-Gm-Message-State: AOJu0YyEaLQEMH5gqcWxl4Unu6u3u8sRE/lrx4JjRHrQABYcQFMUIHy8 YcYL1Nk+FMRe+6tsCDtUT7fgEPV8Z24XJWufwSPZ6fdXGr3q+xht X-Google-Smtp-Source: AGHT+IEZg54sKSpRsjBkvmHhAHRUDOSqGROfqnlT8MOyTTQMr0Vr18nf7pR79ZlndSr0Bn/6RJdFKg== X-Received: by 2002:a05:6512:3054:b0:516:e8b1:177d with SMTP id b20-20020a056512305400b00516e8b1177dmr1273897lfb.65.1713516176821; Fri, 19 Apr 2024 01:42:56 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:6512:3b0b:b0:518:e06c:3429 with SMTP id 2adb3069b0e04-51ab28cbaf2ls339628e87.1.-pod-prod-01-eu; Fri, 19 Apr 2024 01:42:54 -0700 (PDT) X-Received: by 2002:a05:6512:2203:b0:516:d18b:eae8 with SMTP id h3-20020a056512220300b00516d18beae8mr1361942lfu.41.1713516173773; Fri, 19 Apr 2024 01:42:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1713516173; cv=none; d=google.com; s=arc-20160816; b=UfrS4mazejavreIPLVZozaTeIoVXbYUZWAe0JOdy0cQGlHoU6Dz0fKvUErqSg5nHRI VJWYsuZIrwetWaBMIHDbZmxV7GVOdpel+qkkf/VjlscGq8L5GeXnKKVGnusmW7todhd/ yjje0TcykLPpmHYEUMecnT38vRoqznjAnH1Uhk67QM9r14zjGy1Vb+lxaXzZJ7wDVABV L3NHVUJo1XZCfuJqk9iG/794oWj/+XEG4x3dFBiprHiyR3NGs7UgNC+5F/6vFBMs3vIE xJwG2hGc7mck+jGem0s7W5ejOyOmn+7scwRufo+u4wlcj0RQV/9LL5AmpFxRSfp6ktuR yogA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Qivl6ALFOOqIzgKOYlFFD21qeNZRD2leccFbZca6+9s=; fh=byqoZYyGIF5nyUrxbqMCSaBgugTQ0N3rC9IbdDbCkgM=; b=tR3WzbXMSSwSRwmzn5GwqciP11+hIiw0Seg+nozV0I0LsQWhG4uR6K6k08889d3BKC Cmvyso9xLS8yFsJbk4Wjqw3SkQ7nFmqOCbt6xaattCByH4gc7P8UkQeRYupqPlbPBYya i/4BUEqgDYD+ZXU6TfxTgEjg0lXEq2ObcdKz8p6HHIkAe84lM39EFHL1DNub/t8vs36j fLXGCaGnm6MDLDVZVkVLxXDMc6nULc0v0B5zX8KNg5RMdM0sj8ehVOMdr54tcryis/iQ 7S1T/I52tF+mghgltbk/XWk1sMqHfwiKum3vNbiB8UI9a8pWKhM3oaGA0z9pZTG1wGNZ AEHg==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TLq0Xq+t; spf=pass (google.com: domain of marcus.folkesson@gmail.com designates 2a00:1450:4864:20::231 as permitted sender) smtp.mailfrom=marcus.folkesson@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com. [2a00:1450:4864:20::231]) by gmr-mx.google.com with ESMTPS id h6-20020a0565123c8600b005132cbccbb3si114377lfv.7.2024.04.19.01.42.53 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Apr 2024 01:42:53 -0700 (PDT) Received-SPF: pass (google.com: domain of marcus.folkesson@gmail.com designates 2a00:1450:4864:20::231 as permitted sender) client-ip=2a00:1450:4864:20::231; Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2dcbcfe11f8so6875681fa.2 for ; Fri, 19 Apr 2024 01:42:53 -0700 (PDT) X-Received: by 2002:a2e:960d:0:b0:2dc:de54:c19 with SMTP id v13-20020a2e960d000000b002dcde540c19mr694428ljh.7.1713516172914; Fri, 19 Apr 2024 01:42:52 -0700 (PDT) Received: from localhost.localdomain (83-233-6-197.cust.bredband2.com. [83.233.6.197]) by smtp.gmail.com with ESMTPSA id u3-20020a2e9b03000000b002d69186df71sm509960lji.54.2024.04.19.01.42.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 01:42:52 -0700 (PDT) From: Marcus Folkesson To: swupdate@googlegroups.com Cc: marcus.folkesson@gmail.com Subject: [swupdate] [PATCH v2 2/2] doc: document the --gen-swversions (-s) parameter Date: Fri, 19 Apr 2024 10:48:21 +0200 Message-ID: <20240419084821.610411-2-marcus.folkesson@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240419084821.610411-1-marcus.folkesson@gmail.com> References: <20240419084821.610411-1-marcus.folkesson@gmail.com> MIME-Version: 1.0 X-Original-Sender: Marcus.Folkesson@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TLq0Xq+t; spf=pass (google.com: domain of marcus.folkesson@gmail.com designates 2a00:1450:4864:20::231 as permitted sender) smtp.mailfrom=marcus.folkesson@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: , Signed-off-by: Marcus Folkesson --- doc/source/swupdate.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/source/swupdate.rst b/doc/source/swupdate.rst index ff00ca02..b8df7fea 100644 --- a/doc/source/swupdate.rst +++ b/doc/source/swupdate.rst @@ -538,6 +538,8 @@ Command line parameters +-------------+----------+--------------------------------------------+ | -o | string | Save the stream (SWU) to a file. | +-------------+----------+--------------------------------------------+ +| -s | string | Save installed version info to a file. | ++-------------+----------+--------------------------------------------+ | -v | - | Activate verbose output. | +-------------+----------+--------------------------------------------+ | -M | - | Disable setting the bootloader transaction |