Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4DB8C04FF3 for ; Mon, 24 May 2021 19:29:08 +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 94C5E613F6 for ; Mon, 24 May 2021 19:29:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 94C5E613F6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B69C782EAC; Mon, 24 May 2021 21:29:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.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=gmail.com header.i=@gmail.com header.b="ZtPjTLBD"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 79C5682E96; Mon, 24 May 2021 21:29:04 +0200 (CEST) Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) (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 07CF882E96 for ; Mon, 24 May 2021 21:29:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mr.nuke.me@gmail.com Received: by mail-ot1-x32d.google.com with SMTP id 69-20020a9d0a4b0000b02902ed42f141e1so26280513otg.2 for ; Mon, 24 May 2021 12:29:00 -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:mime-version :content-transfer-encoding; bh=KBXhHrisqbkR3wVAh0KCrNtIFamIJSa6bhckrNLeLeY=; b=ZtPjTLBD9AHiJTI8rbHBtB3FWKyjzaixbSU3lRy0w+8Zoggl9mjevXrqtg7EsNWiuB oZ5kg0cNLLw8eBoeZ5sdaQDl0Zm0H87MG3iBGUyjLNN1egZVizeX8HGLK5qkNK65Xi1J AUPyB0DU5EsKpXoACfGMP+VryCQ4HE9xkqj2aROyyApMFfRkezB0p1oCHVQfqLqgeZxs 42Sy39F9oWGbSBC+6mJE3Jk0OBjnJqpDrpEqkgp403wfw3HrCKAdVk4eK60SzQEkCRzv mnB0Hq9pDDz4951hrUzGcopJChzRRArgSkhIHCQdIc1wPX/pSpOAlwZAY375Drkmi7g6 BVnA== 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:mime-version :content-transfer-encoding; bh=KBXhHrisqbkR3wVAh0KCrNtIFamIJSa6bhckrNLeLeY=; b=GCMpZfmLUyHb45hGCyx2xFVJfEQNB0cs4aXpiUpjHcBh44yOeNT9YgF/opD/yltAhW uBTw6TVCdlFpAG63VMzTPKdNIg5gq127iwlnRZ48Ddjm3p8p7msQztdARkkZXaTlCtWK +ZNkerfiovydM8dGG+Mrm0Abge+Q06nG99LSXtM98AgY8yYyvD/ImlcvMEM3WNZuagwY eKZdVC980Kdwh3jkBn1rbYfi2TAPhzTM5a4PtPXuCF1bq8WNh787WURhXL2RiXK6ZguP cp/kbMbJSD5quMjeKpWI3OG2Yi38foUp8k+60rQ/FicBR2laIFDjF/SgKitV4iEc4pHg DQ0Q== X-Gm-Message-State: AOAM53200JYQiYNOgh3x1raeL0hlpWcQYu40A8awHOpFJhytuTCZzTAF s4xyjx69O+p7l3byDQ96dvVKk3iEVXaCmQ== X-Google-Smtp-Source: ABdhPJySeKGTjs/A+VL76ITGYltQC5srrVp8U8+etBtSw1RM1uYCUsp19zPSRumqKn81gf9uXdpBvQ== X-Received: by 2002:a05:6830:a:: with SMTP id c10mr21441938otp.114.1621884539422; Mon, 24 May 2021 12:28:59 -0700 (PDT) Received: from nuclearis3.lan (c-98-195-139-126.hsd1.tx.comcast.net. [98.195.139.126]) by smtp.gmail.com with ESMTPSA id w198sm2778664oie.26.2021.05.24.12.28.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 May 2021 12:28:59 -0700 (PDT) From: Alexandru Gagniuc To: u-boot@lists.denx.de Cc: Alexandru Gagniuc , masahisa.kojima@linaro.org, xypron.glpk@gmx.de, trini@konsulko.com, sjg@chromium.org Subject: [PATCH RFC 0/2] lib: Remove the need for a HASH_CALCULATE config Date: Mon, 24 May 2021 14:28:55 -0500 Message-Id: <20210524192857.1486696-1-mr.nuke.me@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.102.4 at phobos.denx.de X-Virus-Status: Clean I had accidentally noticed commit 87316da05f2f ("lib: introduce HASH_CALCULATE option"), when rebasing an unrelated series. It immediately caught my attention because It seemed to me to increase complexity, without any actual benefit. In this series, I present an alternative approach, which solves the problem by leveraging existing infrastructure instead of adding more Kconfig variables. Alexandru Gagniuc (2): Revert "lib: introduce HASH_CALCULATE option" efi_loader: Work-around build issue due to missing hash_calculate() common/Kconfig.boot | 1 - lib/Kconfig | 3 --- lib/Makefile | 2 +- lib/efi_loader/Kconfig | 4 ++-- 4 files changed, 3 insertions(+), 7 deletions(-) -- 2.31.1