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 33959CDB482 for ; Sun, 15 Oct 2023 07:47:44 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6C6C386FA8; Sun, 15 Oct 2023 09:22:43 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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=chromium.org header.i=@chromium.org header.b="NMVJAOkR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 16B0886F20; Sun, 15 Oct 2023 09:22:03 +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 308CD86F33 for ; Sun, 15 Oct 2023 09:19:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-6c644a1845cso2376427a34.2 for ; Sun, 15 Oct 2023 00:19:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1697354391; x=1697959191; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1oFAFcBBbMDjm0PJcXM+2fU2gURGkqhG9B7qnjn0Iwk=; b=NMVJAOkR1DIzxn1W25IBqaa+j1b3LwNvo3qZfHseiTViF+pFNSArqYY0L+L4FZ/ajp c8zjxWrkpOFH9z3YXfz86h61rWGpksP+P9sU6e2aCz5G/aTsh89hIjnG53dyKJV2o1qe o94BIm1A7v1Ny3HiaKwMi3BEGeAVzeuIRLyVk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697354391; x=1697959191; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1oFAFcBBbMDjm0PJcXM+2fU2gURGkqhG9B7qnjn0Iwk=; b=EgbwN0950EKFpmlE6Wf9Yc/HMzC1VYo06p0fTnMUO5k4sLWsPRpEMznLx9poNJvlsZ /ieI6lnR6bQ+LmpK91gvFubf+26OgUvxEhciI/uuUQ7ndEcLX7Qq1XJzVH1ixU18VV2i ud+UzMkjOQIhcminacIvu7ybyT+sMVuUQF2kYpir3qenfWOPO6HkFsO2RHyaHWOHhVyB 6H2haDLf61RzvNcbhrfLSEOEVfdujveAKR+X9cmYSBcvHbh4Drjq4/qATE7fQ/9Um8/F aB8xi+788mdzf/9v6TMeoYWxTDE6C+PaBnL5+sqciYEt078KTDLZFW6ah2NhL03+n6yU UrWg== X-Gm-Message-State: AOJu0YzGytyy6akJ82Jd03B687ZFFg2HgJMGC4sfd5UYNcjw4WLpmA7u iEEpWarfxc/DSmfj8Exoc6X8TcWxpLSXRrgIDMMTBg== X-Google-Smtp-Source: AGHT+IEgxmVlattviF/1Dx/IF+JHK47LGnvTfgIq6AQQ86QS2aAxVs/zuTFLdCUNwFvflyTEfvRbBA== X-Received: by 2002:a6b:7e05:0:b0:79f:cb49:f476 with SMTP id i5-20020a6b7e05000000b0079fcb49f476mr31932304iom.21.1697316042835; Sat, 14 Oct 2023 13:40:42 -0700 (PDT) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id j27-20020a02cb1b000000b0042b14d9be7bsm5424649jap.22.2023.10.14.13.40.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Oct 2023 13:40:42 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Bin Meng , Simon Glass , Alper Nebi Yasak , Neha Malcom Francis , Peng Fan , Philippe Reynes , Stefan Herbrechtsmeier Subject: [PATCH 6/6] binman: Move stage header into a CBFS attribute Date: Sat, 14 Oct 2023 14:40:30 -0600 Message-ID: <20231014204033.3077052-7-sjg@chromium.org> X-Mailer: git-send-email 2.42.0.655.g421f12c284-goog In-Reply-To: <20231014204033.3077052-1-sjg@chromium.org> References: <20231014204033.3077052-1-sjg@chromium.org> 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 cbfsutil completely changed the way that stages are formatted in CBFS. Adjust the binman implementation to do the same. This mirrors commit 81dc20e744 in coreboot. Signed-off-by: Simon Glass --- tools/binman/cbfs_util.py | 64 +++++++++++++++++++++------------- tools/binman/cbfs_util_test.py | 7 ++-- 2 files changed, 42 insertions(+), 29 deletions(-) diff --git a/tools/binman/cbfs_util.py b/tools/binman/cbfs_util.py index 9ca32f7309ff..671cafa34c0a 100644 --- a/tools/binman/cbfs_util.py +++ b/tools/binman/cbfs_util.py @@ -44,10 +44,10 @@ FILE_HEADER_LEN = 0x18 FILE_MAGIC = b'LARCHIVE' ATTRIBUTE_ALIGN = 4 # All attribute sizes must be divisible by this -# A stage header containing information about 'stage' files +# A stage-header attribute containing information about 'stage' files # Yes this is correct: this header is in litte-endian format -STAGE_FORMAT = '