From patchwork Sat Apr 21 12:00:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugeniu Rosca X-Patchwork-Id: 902412 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="cpXh94Mt"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 40Ssj30NM5z9s1l for ; Sat, 21 Apr 2018 22:38:46 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 9BF75C21E12; Sat, 21 Apr 2018 12:32:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id C99FDC21E08; Sat, 21 Apr 2018 12:32:53 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id BA78BC21DAF; Sat, 21 Apr 2018 12:01:57 +0000 (UTC) Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by lists.denx.de (Postfix) with ESMTPS id B56F7C21DAF for ; Sat, 21 Apr 2018 12:00:48 +0000 (UTC) Received: by mail-wr0-f194.google.com with SMTP id u18-v6so2011956wrg.3 for ; Sat, 21 Apr 2018 05:00:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=lLpbger2Yyu7RuQJ2pMmXmCdfVuCKYItAFF1zsPEgPQ=; b=cpXh94MtjTUxE0eDXD1w8P5/b9aohN5CKVXc5JPEEY4sklzgQqJE/acwPEh/Pz1iuA wi0DrMajDCe6R0cm869bWkHFJzSztdfSRCXvcOIXutIJuSD8Wb9xIKImRCuUx4K6Tb+J WiDcHB44XUuzXObo6AAuG/65w1YDhbKbulxttWW5oA3iY1nnIdPyBclay3phTL1eGxuQ faWpBgDew7pQckGhreiqNgE2JEgQEtM8FK3BOBQfVP0Rf7/6VN7VOJKfQLfqXO4zLqMi isIcHSa53DMsp3aHB5XT06PA//awZLDuzLU2RBNK3Yq6H0pW9GsLeBqvTSy/h1xyG+3C HR4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=lLpbger2Yyu7RuQJ2pMmXmCdfVuCKYItAFF1zsPEgPQ=; b=IG49uJE2kK4Jayfu/awjifO3ZMOLcPvNraifKZ3m9LD7ID+G/zg3icrRN8O04ax9wu cKkeAjhenGcyO8s+Fmxm32Pbc49NZgZw2a2MaR4XU+UCTtZSPYPj3HdOnpp9BdnqGzQN mvhkjj7sK6JCs2tju9ZCQ5CJHwiB84MvwqghcmhQAUi8mKRU93LAeGnRUpjZZq4wyEbL UpfnEA1c+CRuiYsF+wZaxfj5yoDe9c4nkOm2jHWYCWiCvlUPhCidoYAIzGi9UnOWVqzC 5t1c1JinHJZQclXvSglznbF1krxUN2O6fXfDtkkFwoBcE/iE9bGn8j16506mui5gnLKH S70w== X-Gm-Message-State: ALQs6tBvRM2JDeHlddwDV1DL4D3CGNPEzvoh5hiCDZNvXup0i1jdZnXw aVlrDjJHvL38IfXgboQBfvw= X-Google-Smtp-Source: AIpwx48Ri0heaIF3tKpgjgj+o3vmLGHsJciU+5jvWr/LNm3zcUzl2JinfBHb583P8WhWZ/4+TBG3oQ== X-Received: by 2002:adf:8584:: with SMTP id 4-v6mr10990848wrt.15.1524312048453; Sat, 21 Apr 2018 05:00:48 -0700 (PDT) Received: from localhost.localdomain (ipb218f502.dynamic.kabel-deutschland.de. [178.24.245.2]) by smtp.gmail.com with ESMTPSA id r200sm5755745wmb.39.2018.04.21.05.00.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 21 Apr 2018 05:00:47 -0700 (PDT) From: Eugeniu Rosca X-Google-Original-From: Eugeniu Rosca To: Tom Rini , Andreas Dannenberg , George McCollister , Ruchika Gupta , Simon Glass , Sumit Garg , Teddy Reed Date: Sat, 21 Apr 2018 14:00:10 +0200 Message-Id: <20180421120011.16906-1-erosca@de.adit-jv.com> X-Mailer: git-send-email 2.17.0 X-Mailman-Approved-At: Sat, 21 Apr 2018 12:32:52 +0000 Cc: u-boot@lists.denx.de, Eugeniu Rosca , Eugeniu Rosca Subject: [U-Boot] [PATCH] lib/rsa: Kconfig: Remove superfluous 'depends on RSA' X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" RSA_SOFTWARE_EXP and RSA_FREESCALE_EXP are wrapped inside: if RSA ... endif So, remove the redundant "depends on RSA" from their depends expression. In addition, move SPL_RSA into the same "if RSA ... endif" block, since its only direct dependeny is CONFIG_RSA. This tidies up and simplifies reading of lib/rsa/Kconfig. No functional change intended. Signed-off-by: Eugeniu Rosca Reviewed-by: Simon Glass --- lib/rsa/Kconfig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/rsa/Kconfig b/lib/rsa/Kconfig index fde1ac108d0f..2b33f323bccc 100644 --- a/lib/rsa/Kconfig +++ b/lib/rsa/Kconfig @@ -13,14 +13,14 @@ config RSA option. The software based modular exponentiation is built into mkimage irrespective of this option. +if RSA + config SPL_RSA bool "Use RSA Library within SPL" - depends on RSA -if RSA config RSA_SOFTWARE_EXP bool "Enable driver for RSA Modular Exponentiation in software" - depends on DM && RSA + depends on DM help Enables driver for modular exponentiation in software. This is a RSA algorithm used in FIT image verification. It required RSA Key as @@ -29,7 +29,7 @@ config RSA_SOFTWARE_EXP config RSA_FREESCALE_EXP bool "Enable RSA Modular Exponentiation with FSL crypto accelerator" - depends on DM && RSA && FSL_CAAM && !ARCH_MX7 && !ARCH_MX6 && !ARCH_MX5 + depends on DM && FSL_CAAM && !ARCH_MX7 && !ARCH_MX6 && !ARCH_MX5 help Enables driver for RSA modular exponentiation using Freescale cryptographic accelerator - CAAM.