From patchwork Thu Nov 30 20:33:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 13475048 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 C7F01C07CA9 for ; Thu, 30 Nov 2023 20:34:39 +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=hL8N+MR5Y0wYYnOdbY2eSjKNo9SQ/TVy6Jy3lmis8xE=; b=QTj+0bvF7HrSgd CEWoJ78jeA9rxVpsnQpVtvjn/Y7gtZ9RyL42laA4A93aHFp5upebC4MmG2492U/hT8OnlxWIpVaEq NsOo3cDW2vb8CGxEzRXd+gd39LmadZqKJtVNKzYEnNC+y1363oB73jvEEaWwlqdLftevNXpL6q4Ac reQl0y0fnZwUpx652PT+tbH+X+g84oOMlj2ihiL0GPeVlkyqv/cCQ5nLUEN7zJG5zEDtYzlZ5IZSH upnVDs2fJqlG1LY27p+54oi435P7urkGwjs+0R2SgUr6koFGqFBltz6reV+yumMBf6r2NWa6Y56CM Ng+cddYOTZacQlWsDVeQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r8njh-00Brd4-1T; Thu, 30 Nov 2023 20:34:13 +0000 Received: from mail-io1-xd2b.google.com ([2607:f8b0:4864:20::d2b]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r8njd-00BrbP-2o for linux-arm-kernel@lists.infradead.org; Thu, 30 Nov 2023 20:34:11 +0000 Received: by mail-io1-xd2b.google.com with SMTP id ca18e2360f4ac-7b350130c3fso39671239f.3 for ; Thu, 30 Nov 2023 12:34:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701376447; x=1701981247; 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=XXRrWs5DXJwxwGqPai+zsQ4ZfWnj9YsfxyCdirfcQYs=; b=Xe7fxnz19rQQQYBXc16L4qvW3tEY8E+AGtOna94tRbQNLlPNbGMbPjTPgMU4kZgc09 BkwaATB40anfBZSKxJ/rqCFoRGNnhOnCcGgnmiTng0pczBqVksAbs3d3OAtRfVyEB9ZC 77Q7yJ+lToUk5YZ1Xlv5/TWv5kq4zpPYwaBAc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701376447; x=1701981247; 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=XXRrWs5DXJwxwGqPai+zsQ4ZfWnj9YsfxyCdirfcQYs=; b=m4g5K8dsMFwTrGi5PC2EcrBs54su925iCicsp7ehtRJQndfY/6dNBTq8rsXLwOxp0r f16BUH3fusJFM/4aeG6hIRnCMZMsjIWbWgZeFkZMY/5FDZVDhn+6z7KxxuBcM+KYUrNR VsiCIFyJJNNe4OoTyNthL922tfLfVUUfrA8dt1NV59+I9VSMMt1AR/+6LA39jReBm+30 qa5ZP5iN6C5IubiHRgUYeHfdbqY8eDnzmHRrQrxl12x8TaiHqjd0Rp3xvziz6lzhhp0W M0ea64t6w/iCyAebRaKhQPYR0rEBCN5drMLLiInkLoTNf7gJtrJuylUVy8hpjj3kT+rI ixAw== X-Gm-Message-State: AOJu0YycGtNmBHVxTgQkzfDPERV+1U8bqN4Nb0yscRZAvZmUiKHYNc4Z Z7OP1r0G+n83yKFdU5MMpxNLE3fw62MnJ8eWYoY= X-Google-Smtp-Source: AGHT+IE4ZiKtC3C0LWUhphjc5pFc+x3DQeUolNyPVmSK92iDtbxcs0WdG2nxUMCfHZ7sJr/zWX/9nQ== X-Received: by 2002:a05:6602:3a11:b0:79f:cdb4:3f87 with SMTP id by17-20020a0566023a1100b0079fcdb43f87mr23799870iob.4.1701376447077; Thu, 30 Nov 2023 12:34:07 -0800 (PST) Received: from kea.bld.corp.google.com ([2620:15c:183:200:d134:ced6:d34f:38a6]) by smtp.gmail.com with ESMTPSA id r21-20020a056638101500b004665c3f56ebsm484788jab.15.2023.11.30.12.34.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 12:34:06 -0800 (PST) From: Simon Glass To: linux-arm-kernel@lists.infradead.org Cc: U-Boot Mailing List , lkml , Ahmad Fatoum , Nicolas Schier , Tom Rini , Masahiro Yamada , Simon Glass , Catalin Marinas , Jonathan Corbet , Nathan Chancellor , Nick Terrell , Will Deacon , linux-doc@vger.kernel.org, linux-kbuild@vger.kernel.org, workflows@vger.kernel.org Subject: [PATCH v8 0/2] arm64: Add a build target for Flat Image Tree Date: Thu, 30 Nov 2023 13:33:53 -0700 Message-ID: <20231130203358.879796-1-sjg@chromium.org> X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231130_123409_910767_6B8418F1 X-CRM114-Status: GOOD ( 21.31 ) 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 few minor clean-up patches. [1] https://github.com/open-source-firmware/flat-image-tree 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 '$(