From patchwork Fri Feb 2 17:30:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 13543185 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 31EE9C4828F for ; Fri, 2 Feb 2024 17:31:04 +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=XkOWWxAWfvdZmUM1QAC1+718MpWVvPkTAsv4/s4t6Nw=; b=iPRXPuYqHCWHws TnBYAEkP9wS6KwDLw8HjU/Rk3c3gIc35OJT4XqzFEsILR1Qey7V2Ki348778tVHwtktxqZbkZ/rqq gVIzt+i50XB4+WaJY0zW4gigEsLVsl7FZJ7RPK5CgnwgHEETY2OsEORUqTUZ0bY6iJJrpTR/RF5rD IjYB3TDfpUm8S3fTBpaKtCurzhgaf9gabacXKo333SgM1GrkCeVHjlI7SHz+QdS8OFpOIMQCRTLbZ ENEvV5DWRk4EOD0NDMjanvdGm08Ca7TG2BqVSNW7UyQBjefAzzX7ElsUePfLk5lELl9UPrsUozca3 IU1OdrsZ44TJNsV6UQ1A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVxNJ-0000000Cb4I-3Avb; Fri, 02 Feb 2024 17:30:49 +0000 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVxNE-0000000Cb0Y-1b2p for linux-arm-kernel@lists.infradead.org; Fri, 02 Feb 2024 17:30:46 +0000 Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-a35b32bd055so306050666b.2 for ; Fri, 02 Feb 2024 09:30:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1706895039; x=1707499839; 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=VC5vJdORBChkJeHwFEmBTnLuqGC0FMrsRwyZcN+KE/8=; b=MzVqRRHSz2N+EKAtB0BL04ueR2uhnmINhBZBbJeTqI/z432e8s1/uMARlxh1efZq6H NK/5h8hAeLkD4BhHoJeDQ4b9KDNawaPuvt7xShLI4R9dM+A03Ej4chukhgsdp23TDWBl fxLnMsBFEd81rU524f4Cs3hi27SKHhEhn6zJg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706895039; x=1707499839; 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=VC5vJdORBChkJeHwFEmBTnLuqGC0FMrsRwyZcN+KE/8=; b=UIaxnHCq8BfsVGRKhYe7Uz77KQJ1jzmQkzTGrSiQ4RfBjq1sIs71Gtt7f1SIIf5BmQ wM85sS1zDVujS8nSfWs0NuHJo0rI31tR/riWtTxgVKbXvei4AD721606X/zacrIZfy0R Avb9LxHfTLP/WHqSDmff1GD77+E8aJRngvKqwdRcJeoD/hAq9obB6GG7VrpNSZ0Wmt1T zzrSuT9/dcyMTTLu2KKi3zko29WSfweBkv1DpPNs1f4Jbw39WFpZ7SRxWurVAOFQxz5K mA+b84S4FVxzVtWxLkxiWhbKNvu3er76J3FPmHAuFQGKi/oHcybvlpwake6RH0VescQh s3/A== X-Gm-Message-State: AOJu0YwshaFVPQuJqLFqsE1+HX33CrH2/HRtJjPZqVQj3K8fOVcUg9Si DL7PIU1rzgkXQo/RRgVvwto9ZKPmPGteKdNTQ4bG9mJ22ujVrX1Q5lwFQWFv3uqYbiBpxK8dUCP qrGaF X-Google-Smtp-Source: AGHT+IG1HErWZnyyHQSeGiKtyMdVerFNECncUUd+5zGq4gXzObiZ/ksbYjQQAYMUm32Ai9vzo+62Ow== X-Received: by 2002:a17:906:3ad1:b0:a36:84f5:5186 with SMTP id z17-20020a1709063ad100b00a3684f55186mr1897465ejd.77.1706895038981; Fri, 02 Feb 2024 09:30:38 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVoNRQtsktnhKqsQgth/Jzy6fvhViLBtHaC32Wc+CfldyFICiQswcGmg+tYTe6fcJJE6SXBOebY7AGhCY5TzPSpu4khIX5k0IXeiDWk81gBRjuVesFgMX/8Wu1MYjfMMllrYbHe0K3zUhWjUjZpQg1l753MWXySN6XFuLTBo2aAZ1MPnhZZEkmye7WfxY/NRJH52N1zQg5E9swSHq+1EvebLk5jvHJv4Jxvkh7CVb2MLxK9c3pC/yUovmZWkOWwnAfaf/8Md0JFVNR/e5BkCobQNpZ2eIBfyeTBFgordCWD11YYQ4ugXx59ZzhTsGKtYSSxfTVibDKASHZ76EiRDyWR2YjGKfAiPtGb69vlRTSxvOSLhqokzBsOCLx2hZLMx7s0C4OCD0FQbYkzHLEBhexR1nrEC73ENVUC Received: from chromium.org (66.224-78-194.adsl-static.isp.belgacom.be. [194.78.224.66]) by smtp.gmail.com with ESMTPSA id hd34-20020a17090796a200b00a36f314daa6sm1083392ejc.46.2024.02.02.09.30.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 09:30:38 -0800 (PST) From: Simon Glass To: linux-arm-kernel@lists.infradead.org Cc: Ahmad Fatoum , Masahiro Yamada , Nicolas Schier , 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 v10 0/2] arm64: Add a build target for Flat Image Tree Date: Fri, 2 Feb 2024 10:30:32 -0700 Message-Id: <20240202173034.221790-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-20240202_093044_473974_E1707311 X-CRM114-Status: GOOD ( 21.59 ) 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 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 '$(