From patchwork Wed Mar 27 10:48:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 783120 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:b0:33e:7753:30bd with SMTP id p1csp2127984wrt; Wed, 27 Mar 2024 03:49:19 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVhvgpblxYpJxeqa/TEVGlplnSpU2vDwwRMY4v72883YlTWUKVwdjrsEK7KLcj3BqtYvSAwSxSsWNzbwXVYknq3 X-Google-Smtp-Source: AGHT+IGYUdfilbeycTkGrlu4g5l5zPTZDmg+5olrx9Lw/eyJDot+cwmDiTknauqr1lF6JsKNsOi7 X-Received: by 2002:a05:6000:1a51:b0:33d:7e9e:4eb with SMTP id t17-20020a0560001a5100b0033d7e9e04ebmr669374wry.12.1711536558740; Wed, 27 Mar 2024 03:49:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1711536558; cv=none; d=google.com; s=arc-20160816; b=S9oKRjzGrs1ii1g+kYMNQjw/Tt1wUP2wT7u993hr9YbwohFhIkXrxwgPjP8OLuqgb0 2hXN07T0zN8nqB6LeoxXnR+RCNL4plsbWppOare+w+CmkAGn8me4O42XoGS+Qpp0NZAQ sDThPGXG2+iun/VXj2hEWDD5fVRiFwEZMmdipk4hBowIFPtUCaF2wIfGozFgjwvyGLDx QfI4eeG5phpkDK6iuK5T8cXcsvNOtcW+0DNZNJUyioQ8/qUH08WW0YKpmW2Q9MSOOpdd M8iX/Sk+h1mr23b/70remzz68CiD0crSY0P8htetBp7K/3nQBkT5VXWCK/jqHGFYzSQ0 EhOQ== 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=KNXz0TtExYceapr8iwMqBMTSyoUy9q+2fL+kDT+exqI=; fh=ipCwTjQG5CjV5XkBCgQf0S0GiOELL7pzW5FZoJvK454=; b=krsg3LdUo3R1jZCD31MZMaG58rWI2pHBaU+4IwoeiNUk6Y1FtxMaO651ObUnCEzJF8 KNt/zuvJWPXlmHAGJfwsT6e024nqThbZYzrlfAOUe7W8+hwdzs5hihQneCQxHG0j1pfG wQ9D4mDFIID6fXtQq92yTKTMbzOutix7XwDLW9mwpWTfhNz2xxabqW2BnzBVoHfj10/Y q1Fmg8M/gqxX5aeZApZ77uZ+MYMMoxiV+nZy5q9wxiocZPQJGY/4wtcV53S8ypqncfLJ TM7bEEtWloZZUZPVlLtdDfoUf50CEZdrmWKW/7GUX98YQT9bxV5lhd/V2YNFHl/MBznj 34yw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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. [85.214.62.61]) by mx.google.com with ESMTPS id v20-20020adf8b54000000b0033dd2bf410asi6231750wra.486.2024.03.27.03.49.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 03:49:18 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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 3CA9A88076; Wed, 27 Mar 2024 11:49:17 +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 7B7C388060; Wed, 27 Mar 2024 11:49:16 +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 83B5B8780A for ; Wed, 27 Mar 2024 11:49:14 +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 EA9802F4; Wed, 27 Mar 2024 03:49:47 -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 2AFD43F694; Wed, 27 Mar 2024 03:49:11 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Tom Rini Subject: [PATCH v2 0/4] capsule: Generate capsules as part of sandbox build Date: Wed, 27 Mar 2024 16:18:58 +0530 Message-Id: <20240327104902.905144-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 raw(non FIT payload) 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. Changes since V1: * Fix the typo in the commit message about raw capsules being generated as part of the build, and not signed capsules. 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