Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp587553rdb; Thu, 30 Nov 2023 12:34:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IF96sgOip8T1mNp/d5RLm4/Qh0K1sGLGFvEg1qEz4/lWD7tp4JSww9QD3S3aL7TlPZVdS17 X-Received: by 2002:a92:c14d:0:b0:35d:421a:4b27 with SMTP id b13-20020a92c14d000000b0035d421a4b27mr2847236ilh.8.1701376461740; Thu, 30 Nov 2023 12:34:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701376461; cv=none; d=google.com; s=arc-20160816; b=eDg7uRJ3gSOMqmtCxqHfaefj/NVNme+zguZ3dLH3d4syG8cGTHPQpkx0dIlEggVOUl vukhp1bQU9ZpX7zUtj7C7MhOi0t9u9Q3EQsw9CLpQTNQxq6hrCEUenG+hJuHseA3gvw6 rTWYmQ8F/tK+EUT44g20JQPemXmSz7cUuHlskLveLbktSykCkFXmpiPXUJPS/dxAgZx4 9MFBfQykeU4G7rVTUqMKN0FmWuF7MwwQVhsW8R9RB9ZjUrHTBOndG3QMdrOSYcN984Tc B+duPoxOxefXIqopyV1+buUaf6smWwkwn0dmMOs1WOn0SBeBvU6qqlNl0AHxgzRCp+an eLcg== 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=XXRrWs5DXJwxwGqPai+zsQ4ZfWnj9YsfxyCdirfcQYs=; fh=6z+Wp25TaoUCGTBHceldmbPaEll4zFzkk1a6iGFbt5Q=; b=zCFBZyYS+jfMi4snquYSapAi/eizvX5m1YXE3RpzyjPREIQjIPFvUTv743nWz/YFBz ayb+Zk1Q4GMcEqqK1CaAYqESD9ZxrwYnrBv9TwrWJLQm7hTkZdoQWWTlkroXQ/fXdFRT CydYXQvzZlzIyUKBNu5wAZ5ddLw8S7jMcQTu8N6gbxv8GL8NoSqxEudsp263aNoZ/6xv qNAnP0zyMu0ABciVAm1eOknaPp2cTZYjVkNR1k5aEPLkPo6yzUpDmvfTf7CL5ClIrWDx QLr3r4embcU8snHEilEU17a3R3mI2ywTDZAltNRSORMCSTdmzMjE/Qe0Mc/pmKw1knJ4 sf3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ckmxY9i3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id t3-20020a63eb03000000b005b8ccf97dcesi2006011pgh.297.2023.11.30.12.34.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 12:34:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ckmxY9i3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id 0B211826EEA9; Thu, 30 Nov 2023 12:34:17 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376367AbjK3UeC (ORCPT + 99 others); Thu, 30 Nov 2023 15:34:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbjK3UeB (ORCPT ); Thu, 30 Nov 2023 15:34:01 -0500 Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A575110FF for ; Thu, 30 Nov 2023 12:34:07 -0800 (PST) Received: by mail-io1-xd2c.google.com with SMTP id ca18e2360f4ac-7b350130c3fso39670839f.3 for ; Thu, 30 Nov 2023 12:34:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701376447; x=1701981247; 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=XXRrWs5DXJwxwGqPai+zsQ4ZfWnj9YsfxyCdirfcQYs=; b=ckmxY9i30/GS3ITnNDm0E+ptKQ1Sqz7Pe/KZsG9OHs3a0QGXw2dG1+y6i+CVrD0tpU XOZzhB2QOtl00HUa5y4xkG2VeKjZl5LhrlO4KCy1VlMi4r7j3HR1K9sLbfbCQKYJBpMN IiiPOuYUzgP7UUDwxTLQVAneYXNYmNbSWCCps= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701376447; x=1701981247; 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=XXRrWs5DXJwxwGqPai+zsQ4ZfWnj9YsfxyCdirfcQYs=; b=Kdcdr32MOGPwF3JvjLXGNKPy48TKBXw8z47DSQIrsWutJEcFmT0IWk3+5KTbrEbtKU k05XMbcV9+/GisAYkuOj50tXWmVcOzFzzINeMP8pqm8xlXzBuypyeBVk48UlW0Tlsc+r NXyOmS2AEhf6rY35Ulq9UWZzITE2zCJSSIgXNu4UGkkzefe+49kky50pMnyLUiWLX5gM CzFrC4mWwehMoQbbE3CpjYeSvQKlCQGu/Lp+SDP7blujrfyRwl92WcpFVor9RBsasr7Q sy/aqNmyYoad85ivTMdaq0nZvjJttP2R/FQ1kcP15UL/fxm5RezJ1FSI3Jo/xuEU3++7 OkIw== X-Gm-Message-State: AOJu0YxD4ufEsCw97RD9VwTuuZ+l0as3PeTm5SeSSoAddvlkYWJwJhY7 UwyTBhCvAa5Ugcc8U1U7Q3Wx/9hpCxn1PFtxk38= X-Received: by 2002:a05:6602:3a11:b0:79f:cdb4:3f87 with SMTP id by17-20020a0566023a1100b0079fcdb43f87mr23799870iob.4.1701376447077; Thu, 30 Nov 2023 12:34:07 -0800 (PST) Received: from kea.bld.corp.google.com ([2620:15c:183:200:d134:ced6:d34f:38a6]) by smtp.gmail.com with ESMTPSA id r21-20020a056638101500b004665c3f56ebsm484788jab.15.2023.11.30.12.34.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 12:34:06 -0800 (PST) From: Simon Glass To: linux-arm-kernel@lists.infradead.org Cc: U-Boot Mailing List , lkml , Ahmad Fatoum , Nicolas Schier , Tom Rini , Masahiro Yamada , Simon Glass , Catalin Marinas , Jonathan Corbet , Nathan Chancellor , Nick Terrell , Will Deacon , linux-doc@vger.kernel.org, linux-kbuild@vger.kernel.org, workflows@vger.kernel.org Subject: [PATCH v8 0/2] arm64: Add a build target for Flat Image Tree Date: Thu, 30 Nov 2023 13:33:53 -0700 Message-ID: <20231130203358.879796-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=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 morse.vger.email 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 (morse.vger.email [0.0.0.0]); Thu, 30 Nov 2023 12:34:17 -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 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 '$(