From patchwork Thu Mar 14 04:26:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 13592085 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 1B9FEC5475B for ; Thu, 14 Mar 2024 04:28:00 +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=Xq/aF4bbRLauVfDU+b5NF2WFu+INOmhz5Rx1EEVkUw8=; b=P+X4ZEA/aQQiIX L4jV6SBUgcemObkHzydu0/NG/m7jV97SMVZRER0SnR19murwnVSBiZo8whmWP87mk4c0QBgZHzHgs 8Z3OH6OMzq4x0V1peA/ocKsaVYvtMdCaIPFa0/h4L05lh/sUCGlrG0zNqEoqj2ZP2gPKDQIwKvDOk 9bbrkv+TU53Yrbk/SP1w4d6h2WfdqYhRYQV+SOcpExxPYdesnIvoqwq2AM/n/8zuAsXZAIXvWAT04 BHUSPicNhHeMFb8KTrgoE8Oeec3rT4x7nMFSvLKH5UIB4WsimJNcNbUfD4t4RlbRQpYb8liYCTStB iNRsCSYeDCcxRXGdo7WQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkcgw-0000000Cvf9-1Poh; Thu, 14 Mar 2024 04:27:42 +0000 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkcgt-0000000CvdU-2Avq for linux-arm-kernel@lists.infradead.org; Thu, 14 Mar 2024 04:27:41 +0000 Received: by mail-pg1-x52c.google.com with SMTP id 41be03b00d2f7-5c6bd3100fcso370690a12.3 for ; Wed, 13 Mar 2024 21:27:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1710390455; x=1710995255; 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=7cTJjdrBktqdx3YztHJVlXtN8MmvjL+jR5a4blf9J9E=; b=fEG3IXZHqQr9WpAfRzsJFnRozIQ3UWIO6TClWVlKqEplKON8gQGm8e4MquMztjr5zO bFKjX6vYAXNRw8+Fx7ztOMxQzliMu/mTTLRDwk+GknN+JhBKdKc+3iCYcUc105ohUdjC Fk+zE97f/FgaPHqikklSm9Al6cjGrGuuzknGg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710390455; x=1710995255; 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=7cTJjdrBktqdx3YztHJVlXtN8MmvjL+jR5a4blf9J9E=; b=VYjpedvu0tB5EYqzkajk5yVmb3LHE4LZwdnGOhy4zWZ+I9hFSoWmaPvvd4EgK98zSz BohEhq8rpXwn2WslXUKI5xVyPIoAHjOEyHu8X1RqT4kuE/yQML53e27WnZfD9Kiu10QL POFIMhOMRhYtFUGExeqpeHk4L0rErTXgDpor9wdZk2NBxKLQFXdeaDuBeHU4o0BvSyFb xtmMu49EJBN2+g47YcQQh4cI1Y1UEz6g7yg4ZkvdQHGoiufkdjfxRWjvWTdUFrg6WFoH Yy8tGBRtPvUaf3c/WnhUvN84pbr9qJ/CYUX6f4hDtj4QKE4Q3sSHZxZDIDi4tO5e8WX5 ozog== X-Gm-Message-State: AOJu0YxjVvJEmWNlXM7lNszCP3uikfic3pZZQ8UzgPfTJIKY5HRY4Kpf hVFeFxbJbqkB4XJD+a8rNWtRAxWACtnkBCy9pXHNyTcUa0kRmbtS22ziMT3q64ylvQp3rTis0oQ = X-Google-Smtp-Source: AGHT+IE2GvvqiEZuSI45BF1+iK8kMRqs1IBhTbrrI1bwGMdn+msU9RP/ADvzi87321MQZrj02GGl6A== X-Received: by 2002:a05:6a21:3990:b0:1a1:49e9:805f with SMTP id ad16-20020a056a21399000b001a149e9805fmr1085141pzc.35.1710390455654; Wed, 13 Mar 2024 21:27:35 -0700 (PDT) Received: from chromium.org ([118.149.78.37]) by smtp.gmail.com with ESMTPSA id u5-20020a170903124500b001dd98195371sm479200plh.181.2024.03.13.21.27.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 21:27:35 -0700 (PDT) From: Simon Glass To: linux-arm-kernel@lists.infradead.org Cc: Ahmad Fatoum , Nicolas Schier , Masahiro Yamada , 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 v11 0/2] arm64: Add a build target for Flat Image Tree Date: Thu, 14 Mar 2024 17:26:57 +1300 Message-Id: <20240314042659.232142-1-sjg@chromium.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240313_212739_635491_6C453CC5 X-CRM114-Status: GOOD ( 21.97 ) 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 minor clean-up patch. [1] https://github.com/open-source-firmware/flat-image-tree Changes in v11: - Use dtbslist file in image.fit rule - Update cmd_fit rule as per Masahiro - Don't mention ignoring files without a .dtb prefix - Use argparse fromfile_prefix_chars feature - Add a -v option and use it for output (with make V=1) - rename srcdir to dtbs - Use -o for the output file instead of -f Changes in v10: - Make use of dtbs-list file - Mention dtbs-list and FIT_COMPRESSION - Update copyright year - Update cover letter to take account of an applied patch 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 '$(