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 4AC80C001DE for ; Mon, 7 Aug 2023 17:38:26 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 520E380748; Mon, 7 Aug 2023 19:38:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (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="MXfojpv7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6516A80752; Mon, 7 Aug 2023 19:38:23 +0200 (CEST) Received: from mail-yw1-x112d.google.com (mail-yw1-x112d.google.com [IPv6:2607:f8b0:4864:20::112d]) (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 5D0368073F for ; Mon, 7 Aug 2023 19:38:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-585ff234cd1so51947897b3.3 for ; Mon, 07 Aug 2023 10:38:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1691429900; x=1692034700; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=G26XzQsBSLH+eN3KqPWB+E5OcYlQV9dAl/y1zaR7IKA=; b=MXfojpv7KnfuW/CP1n6pczpAT2bqfiUm1Qaw5FsEeLnUue2fWoKodr81DJfbl8CfuH M+KdYT5Vu3vtzfATmR0pA1EtN/l74aEZa/gRKru9qsjFWSQ8H/gU3tm7cZODVZn2t/1A eW3MgBX12vT18U7KX41edzqX6IQecpxUEsLfk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691429900; x=1692034700; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=G26XzQsBSLH+eN3KqPWB+E5OcYlQV9dAl/y1zaR7IKA=; b=iEg0eZLBp+0zWnsow8tg1YTnzSl+ozh6LJfQcz8ZBqKVKpF8THgWANt4WcuqQDRKTc xDFG4Cg1nbDFZ5FCUqEOKuRJBO1lVtB4QG7IbmtMhCuZhEx1GQhY6MSFaIikYGv0FHN2 NUft1fqG3wgvdsi91Sc+EAqGHKCSDhd1WoD+2m+DCzrTGibNcHRtN3gv9mrGLDf8HJYs CRXyXzGpl2+zgZBbDHT1Gae204NVidJjY/97cmBKPL4W3qhUJZa7XzHfWjVyitsZ6rys JXre6kkS5n+fOofqyl21o1SYBnMRWTgRP2oFRWCSyvh17XteSY87ZqKffY4a9Of9Y1gk mUkA== X-Gm-Message-State: AOJu0Ywjfyz5VCouX+Mg0saUpuxRhtOXxOTPD4tf3q9AE6K2U+3J+Jjm 5jXMTeMArNm4QHpvDxthJ/nHTPJbyBr3LOC9+eIlmA== X-Google-Smtp-Source: AGHT+IEocXP3W5n17+ldj4hoISnoGLJ3xqp826xoZqj6NVNRxiAdJ/bPQ/A/sFiN8KWMGbYWUP+P9w== X-Received: by 2002:a0d:ea51:0:b0:576:93f1:d118 with SMTP id t78-20020a0dea51000000b0057693f1d118mr10268349ywe.2.1691429899917; Mon, 07 Aug 2023 10:38:19 -0700 (PDT) Received: from bill-the-cat.lan (2603-6081-7b00-6400-3ce2-35b7-c17c-93f2.res6.spectrum.com. [2603:6081:7b00:6400:3ce2:35b7:c17c:93f2]) by smtp.gmail.com with ESMTPSA id j1-20020a0de001000000b00583b5564c1dsm2835378ywe.135.2023.08.07.10.38.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 10:38:19 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH] bloblist: Enforce CRC32 Date: Mon, 7 Aug 2023 13:38:18 -0400 Message-Id: <20230807173818.905365-1-trini@konsulko.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.8 at phobos.denx.de X-Virus-Status: Clean In the common bloblist code we call crc32 to get a checksum for the data. Ensure we will have the CRC32 code via select. Signed-off-by: Tom Rini --- common/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/Kconfig b/common/Kconfig index 1ca9fc3abfc4..cdb77a6a7da2 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -951,6 +951,7 @@ menu "Blob list" config BLOBLIST bool "Support for a bloblist" + select CRC32 help This enables support for a bloblist in U-Boot, which can be passed from TPL to SPL to U-Boot proper (and potentially to Linux). The @@ -961,6 +962,7 @@ config BLOBLIST config SPL_BLOBLIST bool "Support for a bloblist in SPL" depends on BLOBLIST && SPL_LIBGENERIC_SUPPORT && SPL_LIBCOMMON_SUPPORT + select SPL_CRC32 default y if SPL help This enables a bloblist in SPL. If this is the first part of U-Boot @@ -970,6 +972,7 @@ config SPL_BLOBLIST config TPL_BLOBLIST bool "Support for a bloblist in TPL" depends on BLOBLIST && TPL_LIBGENERIC_SUPPORT && TPL_LIBCOMMON_SUPPORT + select TPL_CRC32 default y if TPL help This enables a bloblist in TPL. The bloblist is set up in TPL and -- 2.34.1