From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D478CC25B6B for ; Thu, 26 Oct 2023 07:26:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344354AbjJZH0m (ORCPT ); Thu, 26 Oct 2023 03:26:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229647AbjJZH0k (ORCPT ); Thu, 26 Oct 2023 03:26:40 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 751E7D6 for ; Thu, 26 Oct 2023 00:26:38 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1cc0e78ec92so1437575ad.3 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=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=crl60Str28pt651eqf4nmclTHVudykiY/eZ0krpY9aQ=; b=b4ogdCd3QD6WQGnED/7tM731vD17+bzFrUWgb2eoYgx4ug0MLbQZIe/JOswW3WVMiS SmZt1BK2rB9WXOqDjWc0U9kGGNTP17+nlA8D3YtzosAnKaUP76CNVbAQfg1NP0RZFgRf bjUm7Os9sdUv0iWWY+NXphIbA9i2y1+zM8riU= 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=mr01ATb4y8uxMgPjf/HD1vqaD3lJ/o+q+oI5yJKdb/LS1M7dnDcJCEybDmFjkKP6Px OElg8e93Do1jljBSevXWFjVvhWax3j6lUfYwjupk1p0l2tigAEmvo0LaqMAp4Av+LuDC Os53KeD7qzR/Rlu/MvZ5fk+KPNbRK2PmEgcYqWLXidY0qZ901I92KWMuhtu0c4Qz7OUM LoDGfevTyLsb80EqQExUm0z2AtjpY+kFg55KiHfxPoVa7rb3XMKIMwtbzJJ6k3iih6HV zgw5M92AiP0BPTeGeeJtmjFVcA+jzpPAmP2ENigsHLzBYzSX2lloyEVkLtUP2Lr8oUo0 QOYg== X-Gm-Message-State: AOJu0Yw59x0DsJxx5hFV/4WmeCBGs2J/JwbPQiaLt1y3MAK0VBRTM4Ck wa2OIJAoHssQ4GE071lIlHIo5A== 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 -- 2.42.0.758.gaed0368e0e-goog