Message ID | 20231107144917.48304-1-sjg@chromium.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:aa0b:0:b0:403:3b70:6f57 with SMTP id k11csp282910vqo; Tue, 7 Nov 2023 06:49:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IEbWh6++AXoqWBu5WktAGVeIYDAhxR03Qc0WXbX2EBFyo4zI8AJYZBQqZN1wOZcrlrCeKHb X-Received: by 2002:a05:6a00:3a03:b0:68e:2d59:b1f3 with SMTP id fj3-20020a056a003a0300b0068e2d59b1f3mr28765999pfb.13.1699368573615; Tue, 07 Nov 2023 06:49:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699368573; cv=none; d=google.com; s=arc-20160816; b=RdPOPwRR+AKcgb+AI9sYzG46CyHQ9cOxh1CuAB5ILf7v6mNZpimCll6y85Oae7LbWR b+PsNuhP/PemqSup914lLlDNNaADPq07dy5xCQELwUa/e+1/TjENdIkkvRcOSzHxORzP AtM+uIt/WHL5greujMZA8sZWXX7mDeldKjr1g4oN7Z/9c4/c+kOnLCO5eUwWq8GDnJlW PnYRCD6N6lpt/oKU4vKWotm2CIvBtTwXhGSXSwLHaDnfBzMlimUOsbdK2ByFgUnVNwg+ AXm8ZPofB1VP5ty08yQ/vE08iak6f6iSjyWqhY/WLaCpvbGkWlGZYx0OfhL+WjpzDiId /vaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=mGdhwZC1aoWv4hm325gNK3bTc4NhbyLb0VzfJImw0Uw=; fh=gMYtiOnikXPU57D4E0yjzqpcGVTKtIdXI7et5S29+d4=; b=tA99Mnua0H+6KsJnwG0j5ApEHEILNLODi8y0fblGe4PzU58pP1ErHbncGdX189KtAl 7bwnrkEVdtIGEnLxXQ48bk87Mo3TGoSvxmjdVPA9KJ2yWB1cEifJ+qptm7r8JhTd0gHV 8UUkIUdEcZO+kZwlYnz84G3x7i9aFZv/Ez+x3pWuulUPxMTtb57FBBII95zW5F5ttUtq I9dQlaJ6fs+WId5vojsC273eWXdLy9hKEpyCrQuw6GjBpVZzfyr6pNb6Q1+z+V4s5p8E nmUuUVTG1p/27E1/1WdOXK6VNaj9g9jdYIsx3+x06NrHi+yixztBV3Fkhh2dON0xduRK Bo1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IVnuJ4CN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id q1-20020a056a00084100b006be0f4747e3si11096501pfk.123.2023.11.07.06.49.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Nov 2023 06:49:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IVnuJ4CN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 8689082159F4; Tue, 7 Nov 2023 06:49:32 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231201AbjKGOt1 (ORCPT <rfc822;lhua1029@gmail.com> + 32 others); Tue, 7 Nov 2023 09:49:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229886AbjKGOt0 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 7 Nov 2023 09:49:26 -0500 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7913F9E for <linux-kernel@vger.kernel.org>; Tue, 7 Nov 2023 06:49:23 -0800 (PST) Received: by mail-io1-xd30.google.com with SMTP id ca18e2360f4ac-7ad501cb1f9so90664939f.0 for <linux-kernel@vger.kernel.org>; Tue, 07 Nov 2023 06:49:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1699368563; x=1699973363; 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=mGdhwZC1aoWv4hm325gNK3bTc4NhbyLb0VzfJImw0Uw=; b=IVnuJ4CNTqYJhb0nPDjbKLEq5xIz8X+BWoLSOxuj2LhiAF+m6JKIe3EyF2rM9qjUkj Xj01ekrwxTLHPmlsRvkq/l72d0tIAvzp0ShUy/Sf2eiDc5iqSrbmUkxJbZ0e4XD31+QF u/x8/mmPokz7GOInxcOppgB4pG4W5u9ja0hos= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699368563; x=1699973363; 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=mGdhwZC1aoWv4hm325gNK3bTc4NhbyLb0VzfJImw0Uw=; b=Vr6uIfFYYXCRFvTiNAXND2Fpjjb7h2r85YQk3STRWgsSe315w3a1OGF2PdFPKMi81m CA1/ncEcIM5fPkxhBn3DMsnRQmnu7TP8wAVhlrcUR4m+oqGZZcjR++FQQIJfXStWEmzM yTXyGPh4OakBI3bGb4QJRKiVjZj8AbmlC1RGSC5LtZGRVdfzOuFxfSD2vpn7xLdARd19 D8PZfD+gpXrga40GkvSuuYSFploUV5i99MHg0K4cFOd4eRg4dMeBLHgpQl8AwjedZUn+ QZhGNMqgU5FLSxoNgUUGEJlY9Qr5Jsl69w+7fDpr99JLTrBsggIucJf9euwKwMiJZkZz dm/A== X-Gm-Message-State: AOJu0YxI/Qkonj6Pvt+BA6xdncfpZGJuKAYYHnMycI742GfxDsDAb9OQ 5n2xSOVjOKbR6xyYAkY+TFXFmQ== X-Received: by 2002:a05:6602:29cf:b0:7a9:509c:961 with SMTP id z15-20020a05660229cf00b007a9509c0961mr36574184ioq.13.1699368562862; Tue, 07 Nov 2023 06:49:22 -0800 (PST) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id b16-20020a05663801b000b0045a66a26208sm2815200jaq.128.2023.11.07.06.49.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Nov 2023 06:49:22 -0800 (PST) From: Simon Glass <sjg@chromium.org> To: linux-arm-kernel@lists.infradead.org Cc: U-Boot Mailing List <u-boot@lists.denx.de>, Tom Rini <trini@konsulko.com>, Masahiro Yamada <masahiroy@kernel.org>, Simon Glass <sjg@chromium.org>, Catalin Marinas <catalin.marinas@arm.com>, Nathan Chancellor <nathan@kernel.org>, Nick Desaulniers <ndesaulniers@google.com>, Nick Terrell <terrelln@fb.com>, Nicolas Schier <nicolas@fjasle.eu>, Will Deacon <will@kernel.org>, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 0/3] arm64: Add a build target for Flat Image Tree Date: Tue, 7 Nov 2023 07:48:48 -0700 Message-ID: <20231107144917.48304-1-sjg@chromium.org> X-Mailer: git-send-email 2.42.0.869.gea05f2083d-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 07 Nov 2023 06:49:32 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781911927259007181 X-GMAIL-MSGID: 1781917101708927831 |
Series |
arm64: Add a build target for Flat Image Tree
|
|
Message
Simon Glass
Nov. 7, 2023, 2:48 p.m. UTC
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 v4: - Add a patch to move the single quotes for image name - Use single quotes for UIMAGE_NAME Changes in v3: - Drop temporary file image.itk - Drop patch 'Use double quotes for image name' - Drop double quotes in use of UIMAGE_NAME - Drop unnecessary CONFIG_EFI_ZBOOT condition for help - Avoid hard-coding "arm64" for the DT architecture Changes in v2: - Drop patch previously applied - Add .gitignore file - Move fit rule to Makefile.lib using an intermediate file - Drop dependency on CONFIG_EFI_ZBOOT - Pick up .dtb files separately from the kernel - Correct pylint too-many-args warning for write_kernel() - Include the kernel image in the file count - Add a pointer to the FIT spec and mention of its wide industry usage - Mention the kernel version in the FIT description Simon Glass (3): kbuild: arm64: Add BOOT_TARGETS variable arm: boot: Move the single quotes for image name arm64: boot: Support Flat Image Tree MAINTAINERS | 7 + arch/arm64/Makefile | 7 +- arch/arm64/boot/.gitignore | 1 + arch/arm64/boot/Makefile | 6 +- scripts/Makefile.lib | 20 ++- scripts/make_fit.py | 289 +++++++++++++++++++++++++++++++++++++ 6 files changed, 326 insertions(+), 4 deletions(-) create mode 100755 scripts/make_fit.py