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: 13543187 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 B6BE614C594 for ; Fri, 2 Feb 2024 17:30:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706895043; cv=none; b=CIAdODI13wlbEWzYESpRW8gCJOMHusZG0bR1WJmLRSgFd8LF2munFqwlkog4zZOuQz7q4BWPd6NdBocHUsgPq3aYFbOv4pYVvk6Ake+1Fn66vHnD4d8ECsi3K5Ts16u0F3oIPw7HgZ7MkrM1IIcfLmNaXUY4HU14yLTnMBgjTcE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706895043; c=relaxed/simple; bh=2doe7Rnh2cfYTExP59GbRKeFESMtXfgH6+kHay/XYgs=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=rUcRHSwVHS4X5CABhKyVjMjOc44697VvGH27D6K9J2HiRmWebdPHT48MDec47BmMXaUptSvtZRz5UWXKDidgAvQY/9qfaBpX6SIMrxRMoWQ582Sjz/OekP/wnRg+TCfz6d5RYbBESHxaVdSK8Dh0xrP6I1bSt5KKtd73Z+n7xjw= 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.49 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="SHWnzrlu" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a35e65df2d8so320959966b.0 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=Y6NhSos6KIXp728wZyqKXnuo+KQuC7keuAQIW+9FgHeeRF2LXSV5EkoT5yuk/Fj4Pg WuO5lY41BuZkKu9jThAeSqWA8KpAfWhwaLFFbEs26ob09Zs3Abk+p/2Mrk0PRbCVOXYP B+Eyu3jaEvbqlV3xZpJ+zbUA04ClL/7HsxQIFFr8JonuAAWjm6k0TZyMMwEtXyjHtyG7 L1C1txEeNYr8GDKKC9ejui3Qykbc07kuN7FxoXbsgz0/pwg1mr/ba41rudyOnXsYKwZw 96vkseakh9+LyXo/19AYyFQLCfPjWcSG/OtSxmeCjZGpceRTTep4RrBbXb6zHHLjF938 aq2g== X-Gm-Message-State: AOJu0YwOCQ07KuIaVsRuaatDEIE7560LdfWynACoAnNddeGjkP9igXci idix6AFPbfKV9BFPqFGoD7yS4Omm6CTAYiJ9Jimcc7sc+UnsBbh5bwbe0HeMhQ== 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 Precedence: bulk X-Mailing-List: linux-kbuild@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 '$(