From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E35E0C433EF for ; Sat, 9 Oct 2021 01:41:56 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 712D660FDC for ; Sat, 9 Oct 2021 01:41:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 712D660FDC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C493B83670; Sat, 9 Oct 2021 03:40:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="t/e7d04V"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 92A948366F; Sat, 9 Oct 2021 03:39:57 +0200 (CEST) Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 74A0583661 for ; Sat, 9 Oct 2021 03:39:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x72e.google.com with SMTP id 77so10099678qkh.6 for ; Fri, 08 Oct 2021 18:39:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=DB6PMZKIPWiui2w+i7j3eILSomf4lrb16/hb/v/9PkI=; b=t/e7d04VMoK4thDp2esNJ+QdDGAvjcs+sg6OhAOErgPYFXvfjJeiSybyPSj8rr0CVG mmpSFzO18rGhippLh8ESjlO3lyqUt70Qxv3VGHiTKa/hzQxyvvULQji0itpvrP8GgPja Zi3WWmIjLmt8sI+m8qJ3mIbIp0lnq786H6KgA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=DB6PMZKIPWiui2w+i7j3eILSomf4lrb16/hb/v/9PkI=; b=sw/pqz6zSC+NN7sSezuHv7uy0JubOvH3n74WITDJJaje/9McvG2K+4Ahm2Bpvy1eps YM7ffjhpFemw3tnf3mbvzuGWZlv5QyieL82c5Twj0dpLqbRo6J3rYjJwVcJwuh2Gsda/ NRu9nCGfaPKe5VlrtpP+WLybk5jnO/kvLSlQYoKyAzSROfmC3qtSidPKy0Zv3l38quan 04UeXB4dqDU5VyXkpQagFrEJIe9h7TW120biMzxcnT+i6/n7GIzRUZcy3gC8KRncmtwG djm5rLJPuyK5onhURdrlrJ2qVlHTVyiXq8FcVMhYvgIlK57bVIp9LEQdkxANuzu5DtxV gFtw== X-Gm-Message-State: AOAM531/+IkDddW9CKnBc0E1ZTOnpHQe3p446+I33Du5XX+ADJOaFX8V /7izp94FrramDhygigrbgXe5zA== X-Google-Smtp-Source: ABdhPJyQFSPFsnf3nIJ/NX9F/FLs3yfge3+gt0sizusY9enLnt0di5eD2/pPimz43MnTUNPnYuSUfw== X-Received: by 2002:a37:a413:: with SMTP id n19mr5705487qke.461.1633743587352; Fri, 08 Oct 2021 18:39:47 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-1c00-ef41-79c3-ef5b.res6.spectrum.com. [2603:6081:7b01:cbda:1c00:ef41:79c3:ef5b]) by smtp.gmail.com with ESMTPSA id k15sm670116qtj.78.2021.10.08.18.39.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Oct 2021 18:39:46 -0700 (PDT) Date: Fri, 8 Oct 2021 21:39:44 -0400 From: Tom Rini To: Simon Glass Cc: U-Boot Mailing List , Alexandru Gagniuc , Andre Przywara , Rasmus Villemoes , Robert Marko , Masahiro Yamada , Joe Hershberger Subject: Re: [PATCH v5 05/29] hash: Use Kconfig to enable hashing in host tools and SPL Message-ID: <20211009013944.GT7964@bill-the-cat> References: <20210926014342.127913-1-sjg@chromium.org> <20210925194327.v5.5.Idf4bfa823b4e1a5b357e141a8496acece5051102@changeid> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="skzcsJvRJWOW8YcK" Content-Disposition: inline In-Reply-To: <20210925194327.v5.5.Idf4bfa823b4e1a5b357e141a8496acece5051102@changeid> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean --skzcsJvRJWOW8YcK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Sep 25, 2021 at 07:43:18PM -0600, Simon Glass wrote: > At present when building host tools, we force CONFIG_SHAxxx to be enabled > regardless of the board Kconfig setting. This is done in the image.h > header file. >=20 > For SPL we currently just assume the algorithm is desired if U-Boot proper > enables it. >=20 > Clean this up by adding new Kconfig options to enable hashing on the host, > relying on CONFIG_IS_ENABLED() to deal with the different builds. >=20 > Add new SPL Kconfigs for hardware-accelerated hashing, to maintain the > current settings. >=20 > This allows us to drop the image.h code and the I_WANT_MD5 hack. >=20 > Signed-off-by: Simon Glass > Reviewed-by: Alexandru Gagniuc Applied to u-boot/master, thanks! --=20 Tom --skzcsJvRJWOW8YcK Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmFg8uAACgkQFHw5/5Y0 tyzjRgv+IcWhnJh/ib1cEMOnDGsPZ7r/nXNmOsoi6psWo7Vy28srgU5hj/cmEdoz 2YIG6fq2tZ1KszuJI60z6+Qn53m84PnWv3QSW6uxfgnrocn3dZ7RDy0MNzXp3LLP iwAwYW4I+lvnZEe2glrzSEwL3pOTgQlH07cVmmRM7EgQcz1qQL5Jckmw9dPHxMcl BdygJGQVG+B3uWe67MmLYOW0c3RscCR3YPIRaY/N9WBLq6CgWXIvCGo3nQilaijM SXiSYGZH3oFwxNi+2Ir3IClA5DTzkRvLKmAh2wvymweV43kP/BgFPHQMJZsFsof7 4ExvVil47HEL39LtPpkP16mRPECk7Yja1ML57Mj+xNr4DEjg2cAMSECnle7FbsHt RM6fJr664EQQZnWdX5NiQ4Yqh/UNzP70Yd2bhdA1uKLP/JpGCuIb+1AwUmzuKsJ4 UGAPumaH0Ym6csBfgAYOe9RzNVU0opZqTKymQd1XpSww64T4MxV1c9BywEdGBfwa Mzax5Jty =8KEE -----END PGP SIGNATURE----- --skzcsJvRJWOW8YcK--