Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3EDB1C433F5 for ; Thu, 3 Feb 2022 20:43:47 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6C75F82014; Thu, 3 Feb 2022 21:43:45 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=siemens.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=siemens.com header.i=@siemens.com header.b="QSFgDsKG"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2877482135; Thu, 3 Feb 2022 21:43:44 +0100 (CET) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on062f.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0e::62f]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7F39E81D5A for ; Thu, 3 Feb 2022 21:43:41 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=siemens.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jan.kiszka@siemens.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LD2Elhipn5ieMZyTt+H73z4WU2eZHdFyc8MrIyqAaaOZ6YSoT5PZzJmSXrprc5yfyqn7+mfG54q1Kdn3KR2R+SDpFUUZnGLZFSpsw84+URbIg8DMtHjMglrSWNprHGjYOCtiOGP7/JQG/Z0GXaBKYVGveN28YF7rgFi0KjDQYc9SnkiOvEgVVG2lhvQwT0xkrAVM1XzBviP5rWAtvW5mG95jykx92dQkxSJPBG1EGxwG8yBeFER1e7XrWooavYznhS9ALykVMeUZhE4bq3QwZ8GWStEMbdbQsUy1lHx194rqJN4E19aOPR7POI/7tgnN/IyLxThz3zILKmCfixGMHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=MUGY1HuvtOrug5kvQCm8dhEX0CWOpiQm+2s4p+j76v0=; b=HaoTmCUXdsu/KNdJjKtsiMmfrSR1SQws5JTVVsWOTBjUm/Xk2z6LUWaYlTs9S1CbAu8anUT8C5jkO7Lz/yWNYkjz16n8dlqS73Z/cHC2JBIUvZj1FcxK36mX0Ko1qV6itAhZGjV4J1cJsCWmZ9BIu4b8A654t9/LJQi4xKZDG7o/Fm2kB2KV8TJ8OJlrHLDe5ZP2uPCrieEXyRNMOf/tZ5vIg3INJ0nNpRUkwhtd5NdyEpc1u7MhAjhadC1OVifJmm5CIhUz7ZsgT7Ov1IxhgEToGpY0Jb/VT+ldYg3YHMLSaxTru9AFfu+ZjGFteSenluNX6M4ggqcEii2U6TNISg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 194.138.21.73) smtp.rcpttodomain=chromium.org smtp.mailfrom=siemens.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=siemens.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=siemens.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MUGY1HuvtOrug5kvQCm8dhEX0CWOpiQm+2s4p+j76v0=; b=QSFgDsKG6/jDmbDIzo1M4P/ZR3G7ImjiA4e7EdF5S/lnvLrX82Qaa2kdKNWRHfmEexhmd8wX88P+d0gzN6wlMT+CyYgEuv5NfavJ98xB1OUiu442Oh5y0qhk9Erl8muZwzJI3iRB4ds3yqZNgZF8x6NXuGWBd0GUs5E9uA4U6XyzBfS+yfI1UOhSnSGhb353UA6aB27lA8KVTpdFz3RCQ3RVP6VYLSRBxc9HwBlLcPhgBkTfR7CRhsCISGnejhqZQIggaOo2oofSFNNp5CuIOgUfDsk+aEkk5mrCbkj4FT1qR8QJJGoVanXpuJfsiprZUaB3fW7DPGpYO19XC/108g== Received: from DU2P251CA0013.EURP251.PROD.OUTLOOK.COM (2603:10a6:10:230::17) by VI1PR1001MB1072.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:800:71::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.12; Thu, 3 Feb 2022 20:43:34 +0000 Received: from DB5EUR01FT051.eop-EUR01.prod.protection.outlook.com (2603:10a6:10:230:cafe::12) by DU2P251CA0013.outlook.office365.com (2603:10a6:10:230::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4930.21 via Frontend Transport; Thu, 3 Feb 2022 20:43:34 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 194.138.21.73) smtp.mailfrom=siemens.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=siemens.com; Received-SPF: Pass (protection.outlook.com: domain of siemens.com designates 194.138.21.73 as permitted sender) receiver=protection.outlook.com; client-ip=194.138.21.73; helo=hybrid.siemens.com; Received: from hybrid.siemens.com (194.138.21.73) by DB5EUR01FT051.mail.protection.outlook.com (10.152.5.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4951.12 via Frontend Transport; Thu, 3 Feb 2022 20:43:33 +0000 Received: from DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) by DEMCHDC9SNA.ad011.siemens.net (194.138.21.73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Thu, 3 Feb 2022 21:43:33 +0100 Received: from [167.87.72.47] (167.87.72.47) by DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Thu, 3 Feb 2022 21:43:32 +0100 Message-ID: Date: Thu, 3 Feb 2022 21:43:32 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 From: Jan Kiszka Subject: [PATCH] mkimage: Improve documentation of algo-name parameter Content-Language: en-US To: Simon Glass , U-Boot Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [167.87.72.47] X-ClientProxiedBy: DEMCHDC89XA.ad011.siemens.net (139.25.226.103) To DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f17f6fb3-54c4-472c-9bef-08d9e755d880 X-MS-TrafficTypeDiagnostic: VI1PR1001MB1072:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2803; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VBOpBe9TqEv5Q3HuSjbtQzsBcSZoh4PyWWLuhdy4ELM3Q0a5T6DqwQD5C1vYpWzGu+fBEQHciiDBe/pVZeHX0b9gkGA8Wc4iW3s9eV4Nv2XV2tdUHJOLfl2Rn5rjawFdx6N7TXhoRJa9uTbYSOK3ShKyaU453UARZZ9DzJNkKEEup/9SExWoc2U+fikO4N8Gju2xeA+HTk/3M43C+NWVDwTmbiusXbanBX2Y5rkl+nMUZ1JYMPI/X8I+WyCR5cbciQFuaBht7XaoE29D72/Rck7icSDO00MBLuXEPMNUBJLsMbM/yJyHomJCur/w76MGMHG/YC6MVc4a47d5sZErEzsnHEc1oVoWGM+jGEeOXsCysUi26uwTV3Nv357WuXrvy+jp0qaRJk6NTSN+4QfbeMMHXdMwz980kKqy+9WHmrIXVJopvc/wP0urIlphj1TQU4mdvQe7hVR81ZI7QgPNYAAybfuRH/soFCUzwcFbyERGN8CcMVCCLMIobcuc3Qi/kyoUuFtuUSWa5JQB73YCjfJ8kiH9O6EYx2ZfE/IvBNwbQ7jWZc+VtLI0AGlB0PACVGVgFsXWqXD1ndOob92vWuqxcOI00Okv211XRXIYOD7P9QawdbL3JeC6BdIcdZ37cqI/KwJ8MlSN8aU92TgjFytK57aJt2TTpi5B7QfNdsCrsncuIRt/HHRwhxgAwS/jBGIBM5hpkSoMs046DKEIjhhFjW4he3a//gj60wlE2J4AIgVEGmAUHDYbEuRWHC2y+c+qcP6SG6CtQR9NfJ3TcA== X-Forefront-Antispam-Report: CIP:194.138.21.73; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:hybrid.siemens.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230001)(4636009)(40470700004)(36840700001)(46966006)(82310400004)(86362001)(31696002)(356005)(82960400001)(81166007)(70206006)(8676002)(8936002)(47076005)(70586007)(5660300002)(83380400001)(2616005)(956004)(336012)(16526019)(26005)(186003)(2906002)(36860700001)(36756003)(110136005)(31686004)(44832011)(6706004)(16576012)(40460700003)(498600001)(3940600001)(43740500002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Feb 2022 20:43:33.9398 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f17f6fb3-54c4-472c-9bef-08d9e755d880 X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=38ae3bcd-9579-4fd4-adda-b42e1495d55a; Ip=[194.138.21.73]; Helo=[hybrid.siemens.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR01FT051.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR1001MB1072 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean From: Jan Kiszka Addresses the feedback provided on 5902a397d029 which raced with the merge. Signed-off-by: Jan Kiszka --- doc/mkimage.1 | 2 +- tools/imagetool.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/mkimage.1 b/doc/mkimage.1 index 0734bd36a11..fc84cca066b 100644 --- a/doc/mkimage.1 +++ b/doc/mkimage.1 @@ -158,7 +158,7 @@ CONFIG_OF_CONTROL in U-Boot. .TP .BI "\-o [" "signing algorithm" "]" Specifies the algorithm to be used for signing a FIT image. The default is -taken from the target signature nodes 'algo' properties. +taken from the signature node's 'algo' property. .TP .BI "\-p [" "external position" "]" diff --git a/tools/imagetool.h b/tools/imagetool.h index a4105515d81..12f911600f9 100644 --- a/tools/imagetool.h +++ b/tools/imagetool.h @@ -71,7 +71,8 @@ struct image_tool_params { const char *keydest; /* Destination .dtb for public key */ const char *keyfile; /* Filename of private or public key */ const char *comment; /* Comment to add to signature node */ - const char *algo_name; /* Algorithm name to use hashing/signing */ + const char *algo_name; /* Algorithm name to use for hashing/signing or + NULL to use the one specified in the its */ int require_keys; /* 1 to mark signing keys as 'required' */ int file_size; /* Total size of output file */ int orig_file_size; /* Original size for file before padding */ -- 2.34.1