Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp989687rdb; Fri, 2 Feb 2024 09:55:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IFkPR4/0dbZvJnw3DHJ0IycAZkSRA2Y9QX4FHhbZdYh9T46IvWQUPpVzNsq5eNGe81wbHpA X-Received: by 2002:a17:903:94d:b0:1d8:b6c8:d9e0 with SMTP id ma13-20020a170903094d00b001d8b6c8d9e0mr3229790plb.68.1706896539637; Fri, 02 Feb 2024 09:55:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706896539; cv=pass; d=google.com; s=arc-20160816; b=Z8QEhjBZkLtZ743tRK4AQOHbBWUtMt6MnkGc2Hrboc2NV8jg+YOfFlhfBZ9QeX6pFz N7IKhEIJPwR/MOzesC8YhE69kxQYrHAJCqI4Xnf3pj3aQEzBJO1PgvNO8qvgjXSXjuZB ccVpjN85KqEiXEqhtX5SnE1y31bFkPJCC5jub98VAL3ZZZX4t8GK8G7l7EK/9Dmsz8Af rMtaBlsc//bN499ivRyOqyUFiw/GnpiOmtnG9KYLh6XG4kNGE+L9dhlODcC5xwicwOSQ Ympwv00YlSpGiEFbINzA8wHiFQ3FyndTu/Kz6HI8O50CGWXqj4LXUUOisR77pR/RnuYm 2dgg== 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=qfHwkfMEv+zqNmhBbB1H2cuBJvPGwK8airRfVCGe5xQ=; b=sWg93A4wgnUIo0cfASVNeoCgJhx1tDgIQ4w5r7rvGSeyA/XL7VGHsqVhjLxni1frn0 pub7Eiv30hcFs1Jh66AM/fBoRTu4jXuND/RhwErOblgGPBPtga/wY4KPEby3e+h/F4x/ mqkPpQZcveLpIECpN0k+5iXtWZkH3HAMdgowxpu2bWZGFHjVuapAlo5asfdFVkPsS0br y2NwpxnStpVXeZwLlGLq7TxRlFWQdVZAtXplPHTcv4z9qhKPdqXOvv3m3R8vkoX6lmB9 AMBsblZi/H6As/SQA7crdBw22hbHzrKNVJzsusxTGodtkgyVpTNhXW+3T+BmKvDyR7iX 4lVQ==; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50237-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org X-Forwarded-Encrypted: i=1; AJvYcCUO0hZNoi4nQXvB4f5k+LLocS1v5mj6RAGXZIvfrbt+/35+w21UKuVMkZ3FNX0paQqOPC/dMDmlJ771mw2HGd8zDWhO+1bAVeCkWctZbA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id a11-20020a170902eccb00b001d4786a4cdcsi2075386plh.497.2024.02.02.09.55.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 09:55:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50237-linux.lists.archive=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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50237-linux.lists.archive=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 64E0EB2127A for ; Fri, 2 Feb 2024 17:31:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AE90014C5AC; Fri, 2 Feb 2024 17:30:43 +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 Content-Transfer-Encoding: 8bit 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 '$(