From patchwork Sat Dec 2 03:54:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 13476774 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9289CC10F04 for ; Sat, 2 Dec 2023 03:55:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ehejDC+764+7/lkZOdVK3yiIetyUnMFQQ9rH2m2ZHsU=; b=jaQDlbooMSuErd S17PraKLXWddj0lcnVoYSc7/Bap2a6tf5v5Y/BpvrlRNwdJtUjanh390x6GbEzMmddPWXIdI0hlRr dLyFZUpEXPRASxpCbbj6SnMAxhxWnK6rD055jhkc2O7NjsYSL+tFUeuqxmp5uBYwEpLZNBvxet6RF W6lNtZUQY5Q+EGKXh4Lc0wdqi/Ruhs9CvwuP68RhpZQDntxomcNlIe5+/EG1nkiVm5VRmqDz2b7Ti ecGLCd2DO7o2Uj1NO6QwtNulEhR3n9edaClzl7DHbtcjMg9l71UidjJokSF8BwY+WHW3jLaWKYPOF oeIJTlZWLzd4QaOLrZOQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r9H6H-00F7Is-3D; Sat, 02 Dec 2023 03:55:30 +0000 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r9H6E-00F7IG-0G for linux-arm-kernel@lists.infradead.org; Sat, 02 Dec 2023 03:55:27 +0000 Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-6cb749044a2so2917834b3a.0 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=lists.infradead.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=MSBov6iwL/JMiUl28VSlkY9uEiNCEjLzDyc3rJG/bDXGDhFFVy1Zm74koC9briv1G4 /Ym46lsiBEvtsjgPuuO166LHJczXQuOtynjbzrcikyRxm+cOokYqdlpr/1C42pzNcBxt HDHBFLPa2EG+MGy0fyccScMc9yPNsf0EzDKpw= 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=BwfBXXYQmO7+kc/wqt6KQVqqrmG12JPa2dN9aOjciFx/oncyb4Vce37Fi24ctQwrv3 5KHxvofVYge6fcKeMGrNPppRhtrSydj+whU2KjbgN96mQ/PaYKUGOqe4P55s0ycx17M7 xYWMuSU60YPyp1chB4D3s4xoyHm5x/4jfDGm3MzIgWuliP24MTHBRa62k9w+KV+aIVcr klRI9msHYLqna+Qf2wp1nWp5IwElTikdS102iaFyxy6OdM5DqTNs2xGxQAKj5pMHs6Fu nva268iCdII/4SXbvdNCUkBPpPnj4A6iZg73mQNIJeXcLKwM9l2GIULdc0I57rdNRD2T xx1Q== X-Gm-Message-State: AOJu0YwHNCa8QyVj0qfL4NwwxY+QmdbBvrohHFhokDuAEAzYRY3coIqc zabn99fxA2oJMw3hb7pLXxK8m26e3t+9uAhPHhb0jg== X-Google-Smtp-Source: AGHT+IHknJk9EJeTCI+YGHGGAESdUt1vn2NNWbC28hZ2Kj/CzojYjDIpyW5vNlBm0dNz1t8I64kaug== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231201_195526_149896_CB8D3888 X-CRM114-Status: GOOD ( 21.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 '$(