From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f181.google.com (mail-pg1-f181.google.com [209.85.215.181]) (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 566BC8BF0 for ; Thu, 14 Mar 2024 04:27:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710390458; cv=none; b=aNyGYBrPbnc+2oHyc5gw+oZaeKhE8BLsHtZuCBFjEuHIp08l92Is7IPwY2P7WYSOB04PjVl7gtu45MKt0etdniMQQhtLpBHJ7NFnGuZwOxg1okTx1dk2XyeG2RfwariNHQvVAIMLFiBYkk7xY6Ziu+naDD6FpDIQmase/zVesig= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710390458; c=relaxed/simple; bh=JKNjXwrEAhTcPx0IcTiV0urqEE4apMQabqJ3HGrQyjQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=iPapAcXSxbfgfESoyI2+G+MLKv2NCCYLlr3vspZwH4BUbTYy2nto2c4jOdXO0JlT3aMrOLWKQVgU0vyL/ZqoY06Fp/m7v/Ejn2vmFa4JnioOYfIwVqRECiLajL/j4suIdCtre8b7Qqhq2TL7ydjit7Wlf30PCQoD5YOUcxuCAYM= 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=IGn8WO7P; arc=none smtp.client-ip=209.85.215.181 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="IGn8WO7P" Received: by mail-pg1-f181.google.com with SMTP id 41be03b00d2f7-5cddc5455aeso383868a12.1 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=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=7cTJjdrBktqdx3YztHJVlXtN8MmvjL+jR5a4blf9J9E=; b=IGn8WO7PAJQCBmbvp4ZHz5ZIcXTGrFH3Fs8Iej3Kc9WsigNQmCL5uxPq8AOgtAeEDD O2MuKnxnVJ/+r147mLyL0jlWCr8wcoFRbnbrvC6K2kAZ+R1MsJ8+mrxoyPoQ3tbvbwfu /hE52UP7shXH4B0aER5RxnCjMg3YGabGDc0FU= 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=SoTTXRRkieQm25XFGxcYuIdMwVIW9G7c9Wbrt8SgQ/CYj/OyIcARuykXaqsp3+nWMw MLNa+ErgofjgVrwh33MFBDUqedAPtLbtzzgXMtEIgCAbjrpdNcHxvx7jp+/mxT9nGfdY 3pbr923EvbaBn1HfSdANNZ+NyL6mUmV4PZzdGKYHRi4xuqWuP5+bCp0b45g1WX/25g7w nAu8kuWJxVc5L83MfSVriwWIgA1kVNlA9JeFFfYMxzUmCcRzXtZID894l/4MdFwhthc9 5F591vZvVP1sKpxI1816rLs5NFmd7wSGPIdMNmOWdb//Q6HLOq6PsgujO2LNu0OO1x2h zlhQ== X-Forwarded-Encrypted: i=1; AJvYcCVvbHpsRk565DJWlGc+W8ockMpZmWDwd8gpLEuTFjU8Qos7Epte+FNuTv0A+aOzkNs4BLsXe+1JDbeHB0ZOZ8G+SDTQmgOf3qWv X-Gm-Message-State: AOJu0Yw+uTBZ+XfiYjSoFu3CJ9PvcR5/eOvWvYFZw4f5b2efl2jwjvPv izAdH8143bdn4w1/p7X2CLnRSEHimkm4SMsD8vk7i77d7OFhbGYr5aAm5QKA9w== 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 Precedence: bulk X-Mailing-List: workflows@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 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 '$(