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 BF8EFC433F5 for ; Wed, 24 Nov 2021 04:09:20 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3CF4382FA3; Wed, 24 Nov 2021 05:09:18 +0100 (CET) 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="JmCa0SbR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B2EA982FA3; Wed, 24 Nov 2021 05:09:15 +0100 (CET) Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) (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 1CD0082F91 for ; Wed, 24 Nov 2021 05:09:12 +0100 (CET) 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-io1-xd2d.google.com with SMTP id m9so1579724iop.0 for ; Tue, 23 Nov 2021 20:09:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HuoB9tUjtpvZvSgE8Hv/cLJ5gSl6ZGPMhx1o+oM4tao=; b=JmCa0SbRo4ILgRZSa41OVGGmXS/fU94PP2Di/cpXCz8zvadl2aYjLiTf9Av7gQElFt aIQoP9swRNCF1wVqlhVZgq96acuw5TOZ6y63dzgxJm59JORtiGcGX/2f3fE69ZZ+nJDz mj3A+xSYgXdKnnAnpOpmB+EuPzvb1p80nlNOI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HuoB9tUjtpvZvSgE8Hv/cLJ5gSl6ZGPMhx1o+oM4tao=; b=ogGr/wO7hbBmiopbUnf7kPTRE58m1pxyB+LGF6Y1RdjVD+5VKjiCzIRZmRifgd98vK P/Z6Vd4tFyib84naXehdRWkf5tQOKsEoR25TLukMRjrpnDBVMe5a+tZNAvgzzH+klVwm UGBJUwJZv+750FaobCoylLzpRLE/vxYscUHwJhxHaflZC/4DSLx2EUOcZ0ayiqo9KlOd BHoVoltS+Ht4ijTIl52gMqJsOlQfPMAKHZgbdR2mty5qlUhsLqaBZPaXDD2BtJZUxbLU outKNK5XtM5qcst+wgN5u64j9b+e/WinhtBz5DPtlYMJcQhd42IrfLGDIUhZASYhfYSW IUzw== X-Gm-Message-State: AOAM531S3Otg1h/qcxOjOHeoXp/cXzLUXMGylzhzbE5Mla8fAtz9S41+ EBxwUA/tGSN7mWJMW8LEGzkiYzMTbNCWgQ== X-Google-Smtp-Source: ABdhPJxm0NShYH5WAdh/NNL3f+XFDWjML2xvRLbntkx1a6Ila7cnwPyhZziYNIJcpeq/1n3+Y2FtwA== X-Received: by 2002:a05:6602:2b03:: with SMTP id p3mr11304112iov.74.1637726950534; Tue, 23 Nov 2021 20:09:10 -0800 (PST) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id s9sm9322212iow.48.2021.11.23.20.09.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 20:09:09 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Ilias Apalodimas , Simon Glass Subject: [PATCH 0/2] binman: Add support for ATF Firmware Image Package (FIP) Date: Tue, 23 Nov 2021 21:08:57 -0700 Message-Id: <20211124040900.699274-1-sjg@chromium.org> X-Mailer: git-send-email 2.34.0.rc2.393.gf8c9666880-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.37 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.2 at phobos.denx.de X-Virus-Status: Clean This series adds support for the FIP format as used by ARM Trusted Firmware (in particular TF-A). This allows images to be created containing a FIP, which itself contains various binaries. With this, image creation can be handled from an in-tree image description instead of needing to perform a lot of manual steps or custom scripts to build the FIP. Simon Glass (2): binman: Add a utility module for ATF FIP binman: Add support for ATF FIP scripts/pylint.base | 9 +- tools/binman/entries.rst | 154 ++++++ tools/binman/etype/atf_fip.py | 273 ++++++++++ tools/binman/fip_util.py | 653 +++++++++++++++++++++++ tools/binman/fip_util_test.py | 405 ++++++++++++++ tools/binman/ftest.py | 217 ++++++++ tools/binman/main.py | 4 +- tools/binman/test/203_fip.dts | 21 + tools/binman/test/204_fip_other.dts | 22 + tools/binman/test/205_fip_no_type.dts | 15 + tools/binman/test/206_fip_uuid.dts | 22 + tools/binman/test/207_fip_ls.dts | 25 + tools/binman/test/208_fip_replace.dts | 33 ++ tools/binman/test/209_fip_missing.dts | 19 + tools/binman/test/210_fip_size.dts | 19 + tools/binman/test/211_fip_bad_align.dts | 18 + tools/binman/test/212_fip_collection.dts | 24 + 17 files changed, 1929 insertions(+), 4 deletions(-) create mode 100644 tools/binman/etype/atf_fip.py create mode 100755 tools/binman/fip_util.py create mode 100755 tools/binman/fip_util_test.py create mode 100644 tools/binman/test/203_fip.dts create mode 100644 tools/binman/test/204_fip_other.dts create mode 100644 tools/binman/test/205_fip_no_type.dts create mode 100644 tools/binman/test/206_fip_uuid.dts create mode 100644 tools/binman/test/207_fip_ls.dts create mode 100644 tools/binman/test/208_fip_replace.dts create mode 100644 tools/binman/test/209_fip_missing.dts create mode 100644 tools/binman/test/210_fip_size.dts create mode 100644 tools/binman/test/211_fip_bad_align.dts create mode 100644 tools/binman/test/212_fip_collection.dts -- 2.34.0.rc2.393.gf8c9666880-goog