From: Tom Rini Date: Sun, 20 Aug 2017 19:29:11 -0400 Subject: [U-Boot] [U-Boot, v2] hash: Compile only hardware or software versions of SHA algorithms In-Reply-To: <1502743087-27316-1-git-send-email-trini@konsulko.com> References: <1502743087-27316-1-git-send-email-trini@konsulko.com> Message-ID: <20170820232911.GR17193@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Aug 14, 2017 at 04:38:07PM -0400, Tom Rini wrote: > Commit 089df18bfe9d ("lib: move hash CONFIG options to Kconfig") moved > CONFIG_SHA1, CONFIG_SHA256, CONFIG_SHA_HW_ACCEL, and > CONFIG_SHA_PROG_HW_ACCEL config options to Kconfig. So in the case of > SPL, CONFIG_SPL_HASH_SUPPORT enables CONFIG_SHA1 and CONFIG_SHA256 which > enables SHA SW library by default. But in the case of platforms with > SHA HW library support, SHA SW library becomes redundant and increases > size of SPL by approx 18K. Rework the code so that we have named > members and only have either software or hardware versions of the > algorithm, depending on the relevant config options. Update the comment > around hash_algo to reflect this as well. > > Reported-by: Sumit Garg > Cc: Sumit Garg > Signed-off-by: Tom Rini > Reviewed-by: Sumit Garg Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: