Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1484716rdb; Fri, 1 Dec 2023 19:55:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IGDou4+300JVcZgFZ8G1L/IQkHNikpC2IXP/m5U+RrOUFGldCRff1rHTRri01idv2zSqt3e X-Received: by 2002:a17:902:9305:b0:1d0:6ffd:e2e2 with SMTP id bc5-20020a170902930500b001d06ffde2e2mr475762plb.124.1701489330903; Fri, 01 Dec 2023 19:55:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701489330; cv=none; d=google.com; s=arc-20160816; b=BHeCxOGGkPY18taz1484Bazm+yExH3mkxJ7+JnQt2ibJtIFAUUS2uyVu6FPytOVVIz NBCiBg9WeAlETsX+uULqqWxFrGrTvZ2LuQWJYvz4ZaP1ZZL/mbN1Xj7OIeORVE9o960h EUA+IzgOjdZi/HiZPsnr+RVawRHupm8k1Rv187vEG8gImxii7/fz2VamDAbEvxAE0Yb1 PoQpioK/7gpyupzhReOOmLk28l5XfDtvVnNMGZXE/VUij3E8Q47aLm8K6GPOBxcszHZ9 ICWqekx/oHcDhLcey8ELvpjF+UO3283CPi8N0lyedWhHj1qTtFma2TulXKL1IALO9EqK d9fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Nagqp0QINZEQDYIsDAmXj4OVh5WUG+529LOayf8ho24=; fh=ofhENrNGN6ZulGgIklHaBa3DXTDEINjbBPgU21zlSJ4=; b=oi/kuoElKpjJ71ODsxpIMPo7eaetzcfTSt6oZEhw3qzyXaXEHI2u0nQeF1ytAWx34l rqpIyaRvfFvmsrfA5O6W56H9NCdklFWKAN4ZkXfFQAnxJQEvZNuR5LXsqJ0FcHFMWe2Y wvr+/fpz51UWSOlbw13RLIW49iIkpFlea6Clmfdh2lzuAwVgp6U1DqUn5fiuSDbKrz/k kq1V+MQZqSs2POiKAugpABgasHogf4py3S4NrFfHUYB5Rx2caoAUmS1sebFnul4kY/6X Mk4i2ZHZ42PCqlMasLB8zutTwyW/0YkYbopn6oFf/ZHj5FgktMuyDkWssgZXxpNbdoXp lWxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HPSYutuD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id z15-20020a170903018f00b001cff3de9343si4448653plg.553.2023.12.01.19.55.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 19:55:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HPSYutuD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id A020280657D7; Fri, 1 Dec 2023 19:55:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231290AbjLBDzU (ORCPT + 99 others); Fri, 1 Dec 2023 22:55:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjLBDzT (ORCPT ); Fri, 1 Dec 2023 22:55:19 -0500 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63355D40 for ; Fri, 1 Dec 2023 19:55:24 -0800 (PST) Received: by mail-pg1-x536.google.com with SMTP id 41be03b00d2f7-5bdbe2de25fso997587a12.3 for ; Fri, 01 Dec 2023 19:55:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701489324; x=1702094124; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Nagqp0QINZEQDYIsDAmXj4OVh5WUG+529LOayf8ho24=; b=HPSYutuDqeOfz6M2IKDuhm9aqtQW0sFHtewuPHe1Tm//oQOCxVEXE9uQl5WkuScfui UK7vkHG/OemvWnhHcZBAR5/qXM3QgONq9KJk9j+LrVzRBbjoSHgHmdfbWNsqoF8yIwcJ 4imI4gZa5QmlBuYevgFkiQJzG1JwdW79IoFKA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701489324; x=1702094124; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Nagqp0QINZEQDYIsDAmXj4OVh5WUG+529LOayf8ho24=; b=QKAY07B+mZXXHDPacTSJrkPXnvzmHNvtyv43iDzpCQGtkC9lDPuoshZCWdCfk3OnVw Jz93ZBertS2Qukj5Nq+My+3c6dJsYRWkwyINGyXTUp+Kkd9M095v2wBqxBSacdrpLkRd hbjHmablhLRls+8+lh5dT+DSro0L8wev8UseZ3tDoOfmbwJs2m6bv1FqCAYD/1mxqzMF lpgU0MmPEgZwUa/DjhpIhL0Y+U7nawV/EMMn8MFyrZjL8F4aB9oSiIusut12dvaI2JIZ vVTjeD/3pxZh2UvE2SwP1Ks5JCS9y+8ftKlkGl3P8Zc2pegU2CROiZ6x+iLzrojSRd4Q heGA== X-Gm-Message-State: AOJu0YxrsSDnTqHr+TgnKHK0usD/mkSkYqE+Pz7LzRmnaauBzwt9GLD+ H3ZXKT2D4ILD8Zq3GKMb69cNcQ== X-Received: by 2002:a05:6a20:54a3:b0:18b:8158:86ea with SMTP id i35-20020a056a2054a300b0018b815886eamr754283pzk.10.1701489323714; Fri, 01 Dec 2023 19:55:23 -0800 (PST) Received: from sjg1.roam.corp.google.com ([202.144.206.254]) by smtp.gmail.com with ESMTPSA id t7-20020a62d147000000b006cb60b188bdsm3866565pfl.196.2023.12.01.19.55.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 19:55:23 -0800 (PST) From: Simon Glass To: linux-arm-kernel@lists.infradead.org Cc: Masahiro Yamada , Ahmad Fatoum , U-Boot Mailing List , Nicolas Schier , Tom Rini , Simon Glass , Catalin Marinas , Jonathan Corbet , Nathan Chancellor , Nick Terrell , Will Deacon , linux-doc@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, workflows@vger.kernel.org Subject: [PATCH v9 0/2] arm64: Add a build target for Flat Image Tree Date: Fri, 1 Dec 2023 20:54:40 -0700 Message-ID: <20231202035511.487946-1-sjg@chromium.org> X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_PDS_OTHER_BAD_TLD, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 01 Dec 2023 19:55:29 -0800 (PST) Flat Image Tree (FIT) is a widely used file format for packaging a kernel and associated devicetree files[1]. It is not specific to any one bootloader, as it is supported by U-Boot, coreboot, Linuxboot, Tianocore and Barebox. This series adds support for building a FIT as part of the kernel build. This makes it easy to try out the kernel - just load the FIT onto your tftp server and it will run automatically on any supported arm64 board. The script is written in Python, since it is easy to build a FIT using the Python libfdt bindings. For now, no attempt is made to compress files in parallel, so building the 900-odd files takes a while, about 6 seconds with my testing. The series also includes a few minor clean-up patches. [1] https://github.com/open-source-firmware/flat-image-tree Changes in v9: - Move the compression control into Makefile.lib Changes in v8: - Drop compatible string in FDT node - Correct sorting of MAINTAINERS to before ARM64 PORT - Turn compress part of the make_fit.py comment in to a sentence - Add two blank lines before parse_args() and setup_fit() - Use 'image.fit: dtbs' instead of BUILD_DTBS var - Use '$(