Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp244632rdh; Thu, 26 Oct 2023 00:27:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHuVr/WPkIY6O0j4Ulx089FUh0ofCVCBw/k7+neTcUiatmbOgoKbvouGOceg/rOeuAmxseS X-Received: by 2002:a05:6122:2512:b0:49c:b45:6cba with SMTP id cl18-20020a056122251200b0049c0b456cbamr19609970vkb.12.1698305260728; Thu, 26 Oct 2023 00:27:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698305260; cv=none; d=google.com; s=arc-20160816; b=ljoyENs+Covzs/2cEyU2VBHEXLbWJ0K4FafIKwzwcz0Mk7EJyRisIH19Zn9V5khtD/ B4X/f19ACcEXoCijqYNpIYKBH326wOYnRlj2unTDVakkQnFbZs8lyJnVpaHdGPzmiJxQ oKFZSmPE1i0JK4NIqM6chFUjAsf6LfW5ctKojAywyGWzD5l3F7FZS1UxM7/smLbljmYD fORBKD0CO/fXoH9lCQYZG3mztcLj9pUwQGLy+oybOPN6WiqmzBCg80DCRmxg0t089Q/3 xuAAg8OLMQnKJ/+fAUcatYjy20tC2/agVrWtkylxgjTzxMY2odzi0VSgiMz3PLUhRTAc rsjQ== 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=crl60Str28pt651eqf4nmclTHVudykiY/eZ0krpY9aQ=; fh=hDGuM9SMVqOObg2b4e9VtC/AP5QXfb69Vl8WjvNFn+I=; b=WU5xsTRlanTXVxCvrVMrNNRWbQhIVYsABke6Gmih2iLFNcJwo2XBk0ylGZr7ZiGggC BEZFCIUgQc/JoeWzKdKSfLs0UZBR4SkxAsY7jXHf+UC14XayQhuCNszZFYKHgffl1quy gd/Mm5qMuNdO4NI+fHoA+TRIDmaCs895MRsqcqMc8PnC6FYMLIjlUdwgn60YfXDQT9KZ 1W0XwbggZlbu1VJGvXnK9ebxgLA+1BFotDyA46T/Y2szelwY2O/aAH/ziDEEDRKMjZml qWaXH3Sx0FCKjfn33htPplU2TWK4L1PJuz6nHHbOWLyuol1btCQ8BbRdzPNOHY17T+R3 dLQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=b4ogdCd3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id d4-20020a0df404000000b00583acdad086si13454876ywf.542.2023.10.26.00.27.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 00:27:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=b4ogdCd3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 1A570807D427; Thu, 26 Oct 2023 00:26:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229785AbjJZH0m (ORCPT + 99 others); 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-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 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 26 Oct 2023 00:26:51 -0700 (PDT) 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