From patchwork Thu Oct 26 07:26:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 13437307 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 60A61C25B48 for ; Thu, 26 Oct 2023 07:27:10 +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=pqnLIhqlahgPz2joETmodXpbEwyaT2YL4IT3gZ+f+Wo=; b=PM9B93gudEwOLX 0Fkx17JNn/NO1klWCgwQWdVIAYJ609pEIs4d4aAKvMF1dg6bXy2ziVdhyT21PVTv2VH88k5NU5miy nf+0nhBri3SrWPuR5CvcKi/mh4GiM7T8xbHcR+0xwuB4PAh0KC3RwD9c2U0lCv6S4P1km2N0SVTh+ /ZhPn4ESi/2jzarmlcdp27OwkIKcI5jJgN/tuHLn620nVSrae+udUu+mZfTjG43tCIIxL6GBm82zZ XTZKFZVK9dVX2Vpryslzy3klGCSsUAeAT9encSA3cmPciJBfVSCrXGzx44y5vXbzPiTzfGRfhOMNy eyvKdKjsHRl2Qjh+VATg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qvulO-00DqSf-1n; Thu, 26 Oct 2023 07:26:42 +0000 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qvulM-00DqSG-0B for linux-arm-kernel@lists.infradead.org; Thu, 26 Oct 2023 07:26:41 +0000 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1cac80292aeso4184355ad.1 for ; Thu, 26 Oct 2023 00:26:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1698305198; x=1698909998; 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=crl60Str28pt651eqf4nmclTHVudykiY/eZ0krpY9aQ=; b=UP1PZ9cw0PyGTRaLTh6gYy5NWl6IRtEtwe7Vg5F4L0zdta2A0mYDV1qWQibbTq6APv 1OQT4wIR1uwCXf0nPxZ8BUVwb9AR9NCAUG5smZLKG15XcFz3BsbELxriWPec+5zz629W o1lp3rld3z3vl4kzrN5Xxxtbne7kOgug26b+A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698305198; x=1698909998; 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=crl60Str28pt651eqf4nmclTHVudykiY/eZ0krpY9aQ=; b=QCdqArDqzEeDjrUWQe6za/QH0GPXFZ4lp7Q1Y26930rkv5pzA1CbtLtMZReIFtX89x qtClkK4uXo102btMYYkcbMumcDo21G/NIp9UzxkTOm7S31bp7fuIVu18kmPj9+1soNPF 7jqslpbrxpZ9Ljnx/XNkn3mD6uuEGPPFtJPl/I5II+p3O8qXaFOCtJclEZdAB6CEuHjw 2dQi3CqFV8Z90lAieE7WSdlS+snugusy4/RYGmCOKfXkpcdRfUyk7mHg64MD9XJZp9Nf ABkf5gN1/ac7eQ+/IYooAIlWyibqcyqr8+9pp35lpeZdZNWLQ0RtpRafZyOe90Zm7qYz X4Iw== X-Gm-Message-State: AOJu0Ywb/4yd1fdjouYVnoIhz/QXA1b1bhZNa5/ITpciyKWn6FxoLxkE F2YflvVOcEm+465j+2VTLI/4J03pGY/9V+Mj5v4oWw== X-Google-Smtp-Source: AGHT+IFAdvhaKLgojDavPL6jfCwALsYDKQgHxk5a0vAeNPu/TcvJvklixGPP43czx011qTe2l4IkQA== X-Received: by 2002:a17:902:da92:b0:1c7:4f87:3dbe with SMTP id j18-20020a170902da9200b001c74f873dbemr17779216plx.31.1698305197884; Thu, 26 Oct 2023 00:26:37 -0700 (PDT) Received: from sjg1.roam.corp.google.com ([202.144.206.130]) by smtp.gmail.com with ESMTPSA id n17-20020a170902e55100b001b7cbc5871csm10294023plf.53.2023.10.26.00.26.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 00:26:37 -0700 (PDT) From: Simon Glass To: linux-arm-kernel@lists.infradead.org Cc: U-Boot Mailing List , Simon Glass , Catalin Marinas , Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nick Terrell , Nicolas Schier , Will Deacon , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] arm64: Add a build target for Flat Image Tree Date: Thu, 26 Oct 2023 20:26:22 +1300 Message-ID: <20231026072628.4115527-1-sjg@chromium.org> X-Mailer: git-send-email 2.42.0.758.gaed0368e0e-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231026_002640_132553_28555BAD X-CRM114-Status: GOOD ( 13.56 ) 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. 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 build the 900-odd files takes a while, about 6 seconds with my testing. The series also includes a few minor clean-up patches. Simon Glass (3): kbuild: Correct missing architecture-specific hyphens kbuild: arm64: Add BOOT_TARGETS variable arm64: boot: Support Flat Image Tree MAINTAINERS | 7 + Makefile | 10 +- arch/arm64/Makefile | 7 +- arch/arm64/boot/Makefile | 8 +- scripts/Makefile.lib | 16 ++- scripts/make_fit.py | 285 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 324 insertions(+), 9 deletions(-) create mode 100755 scripts/make_fit.py