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: 19858 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp595798dyc; Fri, 2 Feb 2024 09:55:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IFpLoPWkJkdJc2U/c+DBFS/nyHC2J3nHMFg3KMqatYDhaZ4R1CbF07A/JwSv06Zmr7JH47K X-Received: by 2002:a05:6a00:928c:b0:6df:f7f3:6197 with SMTP id jw12-20020a056a00928c00b006dff7f36197mr3005113pfb.34.1706896559663; Fri, 02 Feb 2024 09:55:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706896559; cv=pass; d=google.com; s=arc-20160816; b=a5tOM91vakAEuuLJwt/QtcxM+cG03TcVDXsMDAVzu+ptXIClQoNr6qE6yB3vkLrQA8 /o86Hlb36Qs9W4gcT82rwhMG8Cf8SNggpt/KvO9eyTAC+40ZdHztQfTNQUlpm+Q8RT5F dXwcz7IxFYwHIi4rUGveDj7TbKVkA2+Jm7myvsRg9IN4BHhmhOmZVfrd/HpF9jeKmdSs CTswC0mu1xViRZ1GNrHoBzHmUfxx7ULUu7M2vDEf45bsMJX5xkK/JT9Yt6MBjtGsgjBq I7GshDLoNoKE9J4dT7tAJ8LdTVIZI2lcVMFryrqNXnb/sg58QXsPc38XuW+z7V9YMPgH dFwA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=VC5vJdORBChkJeHwFEmBTnLuqGC0FMrsRwyZcN+KE/8=; fh=CT6DLAIK2pVpAzpdZHoIp1UiDEt2mFvVgNtQH/f5+hQ=; b=ivxFzSUfHWB0KvPHpwKgNyzybCZd7wq+LL3UpfX08Xb3H8u4OFW6BkQRp9m9iZuzuX jDVqNg9Sz7wNywLruw8vUIQOBFPSPDX08EqElNiCr2dzGChUCbB8IOEsDJyXiiNI5JYY ELXvzmfSM2xxuGm0PVHRsSCaxDmUTfmqS+gtjGkuckpWz+Q4cLF7/g7MWeA39lo/mPqW CAO9MDC/c9lr7bihzaefcRqq2Py1LpqC4q+Z7U+/2FBZu7wBGd3zY7BjKmQrQpk5QbU7 sZpP2Oz0r7nr/VQAxAGB3uYOqnA5pMhIF5n0ayDWe/TLls64in2Lj12MJZHz0PHMMj0+ eftA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=SHWnzrlu; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-50237-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50237-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org X-Forwarded-Encrypted: i=1; AJvYcCXJQZpmqwBL3zZyFMGxaN9eWZPgUDGH6PfxTNXY7Oztdt+X5uguVkFu3dF936UnbGbOJHmo2CeCqrEFY1vpnHF838l2aQ== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id lm10-20020a056a003c8a00b006dff98a5709si1302108pfb.14.2024.02.02.09.55.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 09:55:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50237-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=SHWnzrlu; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-50237-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50237-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E1618B2CD06 for ; Fri, 2 Feb 2024 17:31:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EAA7C14D429; Fri, 2 Feb 2024 17:30:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="SHWnzrlu" Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D676F14C59A for ; Fri, 2 Feb 2024 17:30:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706895042; cv=none; b=UI8DixIZ7JPTdIa0Da51kGKWVtuv3I6xnJb6QPLuP4gtqsGvPBNH7FLAR2ENdchgoryLomGPBqcZE10MPa8MXqXDWg9AFZ02pv6/PctK4NWWnp//Hp54I+lemUrxcZ0cRXQ+22X6VckWgyjtkfBsYbveAtTjgjLeIsW8tXlP9+o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706895042; c=relaxed/simple; bh=2doe7Rnh2cfYTExP59GbRKeFESMtXfgH6+kHay/XYgs=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=SoXCjNTd/keeXbE8DjrzNgi7XauUCQxT+W2IjjPjDMEwBvWX4a/Xhdz2rWQHQj91IhmgSgBMutcjA9UlI759uyk2w33NNLciCoHbqi95jfjmLXLVac8Q8PRyYj0N7UaXIsUzXnQSD5Xxh+MgXB3MeZ0WhthSBuYZDJXRTpMZTgQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=SHWnzrlu; arc=none smtp.client-ip=209.85.218.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-a35b32bd055so306048966b.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=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=VC5vJdORBChkJeHwFEmBTnLuqGC0FMrsRwyZcN+KE/8=; b=SHWnzrluA44ZDiQCs6yI/CNYRyFWJ5cvRemavkE4kIZ1+kC62SBVDCEP3dx77s1X0R 6gqMkKBVuIy0x2QI+IyX3uXf5I0ohB367/y2hO5Y5hnouYwOoBeODS+gwPyYfPgGkhC0 IxPYXlox7nL87jEQbqF4uwYe8DTv3YfUaHldc= 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=hhjIKiw2BeMBwnKpTp6+Bl40ShUzw4hgZPnHGsY5uHZAWDvnkSfQYSvQEl+x2ms99B 0sYaq/uEo7RYbq710ysNSd28ZGYN95F6UgwFrgLgwuWhar3fas3PVdaSipVvqHl1BAOO LaSeWxiJSfrjFv549aBrCk/levYY/9kxp52X6BwEx3tKechCTer1gydhTfIIBOBi84gZ SHlpnC+eRuJU4Kg7k0FfedlBLu08bIyrfzc/D1zNoMhC9ArBvCzhOmXAkc0bSxrfQVCK eZQAJQG7pYBMK/NLwEZ856K0GCK6pa0gYNjVh5+20vlgCO+OT54RuK72c1+srlfdJPNZ pEFA== X-Gm-Message-State: AOJu0Yx2c1M6tIaT+VqU8xBatmd3U0tKOILWTONtibmHRJz5KQcVcV6R JbNDUf8HLz26fAXpa6ZovYRwaRKH6xe3K6euNsojHnp3IIOce6DsNo4hJibLdw== 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789810767300974544 X-GMAIL-MSGID: 1789810767300974544 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 '$(