From patchwork Tue Mar 26 20:07:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 782635 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:b0:33e:7753:30bd with SMTP id p1csp1867424wrt; Tue, 26 Mar 2024 13:08:51 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU/1KH1DzYtYO8smhmovsqiE1pDnhGdVpuQ1347r1ciQhI3l80qsu4xJungXtVxUjCy7IGdPuzildNFzfACXis1 X-Google-Smtp-Source: AGHT+IFMEgbukoAlX45GZEt2NBl/NeIH9u39+PdPrIdu3iIY6iVMFETAj2Egd5+f35p6mmcMpzIO X-Received: by 2002:a05:600c:4eca:b0:414:860:bdc9 with SMTP id g10-20020a05600c4eca00b004140860bdc9mr1828062wmq.33.1711483731541; Tue, 26 Mar 2024 13:08:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1711483731; cv=none; d=google.com; s=arc-20160816; b=y+C9AK/JMMbp0KFbiYrH1EYh21FuuMd3ysmC5POvJleq6fVvmxLA2RSr9yjDqYYndH G9uvYHY2O5XkqY24BJrSCxb9w97ATstgZ/djNaZaHMPc47Tq3boPIgclxmqIfibcNhDQ ztwFbYIbcZrNGJGHm46UchMPBdDDzLxebk2B6tTgjmCngSw3uT6WxjNgnuEZUWfF3fdw 9tXOl8ItCj7ROn99Hl2OVS7FP/DcGAbUGwaw2ezkhjaguMVS+hN+CS7dYYgfVLDvehLi bKZs11FAB5/D5Lv1kP3X/FefwK2cp8A0WXbv7q4Kez/chSoZj4nCn84h0YyqMoohWzY+ URfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=Tpr9Ke+EGeeCTNl2IM4XNbKhyk65qq/dqMxmh08qMNE=; fh=ipCwTjQG5CjV5XkBCgQf0S0GiOELL7pzW5FZoJvK454=; b=EwB74Ps+4QmpW4M3Gf/ZrzY7+wQk2OcazRnMMpD8mEXJPfwdyCVIeFCJCdBprMzUMv zbP+LKnuXHu2+Or1Zgf/hMMQvWdbrUc43b+zhuh4N+9PHxJd++RTd51kMpfiTsgMyhKZ Mduse1IobETLKTKfViZnchd84VbVDfpoWaQ/idPOcYz51DAV5frWL3VqnTpwTvu9Kl/P Xdk3DJcriF/nA1vopEaXr0fNjvaKPTuY0ACc15cAYU51LVWJm1i1VGmLN6WcOs7afMyn TwQRFAnvsVeE4wQtPSRpDB9Wz5YQmSMCQOswpaz2jkrTMYhdz2UI2/VPI+3bBrE+V9SA PgaQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id ay36-20020a05600c1e2400b004148c5de157si1711465wmb.168.2024.03.26.13.08.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 13:08:51 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CF7FD87E47; Tue, 26 Mar 2024 21:08:24 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 9DF5A87F49; Tue, 26 Mar 2024 21:08:23 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.2 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id AC48687C62 for ; Tue, 26 Mar 2024 21:08:21 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sughosh.ganu@linaro.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C18482F4; Tue, 26 Mar 2024 13:08:54 -0700 (PDT) Received: from a079122.blr.arm.com (a079122.arm.com [10.162.17.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 474973F64C; Tue, 26 Mar 2024 13:08:18 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Tom Rini Subject: [PATCH 0/4] capsule: Generate capsules as part of sandbox build Date: Wed, 27 Mar 2024 01:37:54 +0530 Message-Id: <20240326200758.833689-1-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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 As part of review of a patch series for generating capsules through a config file, I was asked to add support for generating capsules as part of the sandbox platform build. This would provide an illustrative example of generating capsules through binman. This patch series does that. Currently, the capsules get generated, through binman, only when running the EFI Capsule Update test. With this series, a subset of these capsules, more precisely the signed capsules, are being generated as part of the sandbox platform build. One of the patches in the series also performs a cleanup of the capsule configs from all the sandbox variants which do not run the capsule update tests. This restricts the generation of capsules only on the two variants which are used for testing the functionality. Sughosh Ganu (4): sandbox: capsule: remove capsule related configs sandbox: capsule: binman: generate some capsules as part of build capsule: add the generated capsules to gitignore capsule: Makefile: add the generated files to CLEAN_FILES list .gitignore | 3 + Makefile | 3 +- arch/sandbox/dts/sandbox.dts | 4 + arch/sandbox/dts/sandbox_capsule.dtsi | 169 ++++++++++++++++++ arch/sandbox/dts/test.dts | 4 + configs/sandbox64_defconfig | 5 - configs/sandbox_noinst_defconfig | 2 - configs/sandbox_spl_defconfig | 2 - configs/sandbox_vpl_defconfig | 2 - .../test_efi_capsule/capsule_gen_binman.dts | 167 +---------------- test/py/tests/test_efi_capsule/conftest.py | 1 + 11 files changed, 190 insertions(+), 172 deletions(-) create mode 100644 arch/sandbox/dts/sandbox_capsule.dtsi