From patchwork Fri Mar 29 03:28:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 13609987 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 D05BCCD1288 for ; Fri, 29 Mar 2024 03:29:29 +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=yjV9H8pC5PsTDE3adWqeyceBBLI9vibC+sx5TU8PVfg=; b=mQd2tl5k6ou1sd /ikRjDVNr+tlbGcnGC/7w927/vzu2GpDrDfWUgpOTPtbVbYbl6fX1C0Pb02YFh+3LvCwKc/Vs3vyJ hS3ekklEChlLNsgwOi9tmUAyT6PWTtfD9UiiotyYzU4XsFDNod9T+55FE2Rzowx5efng7c/mjl19/ 7tpCUCglSbtWTf9sAxPaTX/CKLw9kWAdhcylGj+H/iULTIt/fNJw3LxQaX6f1vKTC2N11xqU4XVuf XUdBYpw/tZtC1IA/4ltO1oVb+93g0wA+CuI8nld1uOIK0aJ5N6PEOl+3stxG+dZWdQ3oTcZHz+XZI KIxRAp6v30shTSh6mX3Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rq2vV-0000000GexZ-3WF2; Fri, 29 Mar 2024 03:29:09 +0000 Received: from mail-il1-x130.google.com ([2607:f8b0:4864:20::130]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rq2vT-0000000GewN-1jz8 for linux-arm-kernel@lists.infradead.org; Fri, 29 Mar 2024 03:29:09 +0000 Received: by mail-il1-x130.google.com with SMTP id e9e14a558f8ab-368a360bb1aso8246775ab.0 for ; Thu, 28 Mar 2024 20:29:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1711682944; x=1712287744; 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=s4UbQsk5JfCEGbuiJGPYChkxKlb06kKR5FuZVR4mueQ=; b=a2hC1bSU5IoaoiaZrP8TGyOCfqM/nm318JdV9DwY+nT4r5Oj6gJAoyu099VPdWzUrF IwchNvVm/jNKRzBkpHsV79c7hvMc+4zVQT0OLGu3tHtdyFIJ34tjhB9JhOA+CU3959Ra j8/HHgvtRd+ryCbbvpHdTbFpw7v6ZQher7p84= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711682944; x=1712287744; 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=s4UbQsk5JfCEGbuiJGPYChkxKlb06kKR5FuZVR4mueQ=; b=CYpJ8IN4zArWuVGH0GYor3/+v7jJjKORMXKoQuBoZ1Fa0aj84iR5MaN7muWLAUwlZB Dlt3hIxLYvetcGlKrLf6nXQLCnHy7nQT8XIpOnC12lsEFCwmO2UtWTcJEs2EPMKF6i3m XhRp4aDoTqgQGdDKBaPWpEftBVDD7kRNEbTUj/VQKjJ6bjYVAY1rCufZV0mdHb1KDwFq coX9XI8ryHFo0oCmUSYkitjeZa51RH4IkHPL/biEn8PVLieAzaUTPVqWboFcUjhwsB8/ 8SKz+FQ902ThlMs91Zgw96niDVYixp/0dMhZEP3Vx4keyCxhFBAebCrnSsSAAQ/Uwg8N H4UQ== X-Gm-Message-State: AOJu0YzOeFVCownHaM0CfbaO8dob0lP2LYFB4g9WevMdJ79EUoDlI4/h W/u0JZoJpafOdkg09i3ITHRE9OXy01+6T2VKJm+siGV3tSh9j9StdfwAWyHeI/tLhQ3/En/QZok = X-Google-Smtp-Source: AGHT+IGqWxBBoE3CxFg/cl5Fd1n0LDcdDA7ZaQ+Cun7xZlmWrNgimznfOIOY+KlqexqgjDjjC38tDg== X-Received: by 2002:a92:ca4e:0:b0:366:ab6f:f6a with SMTP id q14-20020a92ca4e000000b00366ab6f0f6amr1050509ilo.24.1711682944447; Thu, 28 Mar 2024 20:29:04 -0700 (PDT) Received: from chromium.org ([75.104.105.200]) by smtp.gmail.com with ESMTPSA id l7-20020a056e021aa700b003685b574968sm815717ilv.51.2024.03.28.20.28.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 20:29:04 -0700 (PDT) From: Simon Glass To: linux-arm-kernel@lists.infradead.org Cc: Masahiro Yamada , Ahmad Fatoum , 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 v12 0/2] arm64: Add a build target for Flat Image Tree Date: Fri, 29 Mar 2024 16:28:34 +1300 Message-Id: <20240329032836.141899-1-sjg@chromium.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240328_202907_721591_2DAFB250 X-CRM114-Status: GOOD ( 22.85 ) 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 minor clean-up patch. [1] https://github.com/open-source-firmware/flat-image-tree Changes in v12: - Avoid showing FIT message if V=0 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 '$(