From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f51.google.com (mail-ot1-f51.google.com [209.85.210.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 660742FF16F for ; Tue, 6 Jan 2026 16:28:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767716882; cv=none; b=mfVl9gprn+UI7d5AgzOINaB2kYDbto3oSTYRLvvGYsiWnFaClypYQmlreC473JPKCaMuuNBgWtxHa+gTECaWLjxHzxCDWHPZWpHxEt5QMGo3K0I13HKv8TZ1AC+nGXg+5bHHM72b6a+qeFYBz8SAUKE0dIVKE0xLHOrwX6vweB0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767716882; c=relaxed/simple; bh=gRsTO30YL2AR+uzNTkwzde4uf0f8BDd+CDEwV8OOA/4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=kNcdu//ZDQExvaK565NM1h8uaHSxyoxVMqW6ypHCqJ7MlnICi7mnWPz1fVe1Zclit3RQ0Pt0+jPBrMMAPuBv02ZrtHNsvWnf6ec3IIK+edmOTo5LUJYwQm2p0884wv1PTGjAEgUoFUpH32EbxktqO/U0hnnUgPSlpnvwtEC8ywk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=I3qavktw; arc=none smtp.client-ip=209.85.210.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="I3qavktw" Received: by mail-ot1-f51.google.com with SMTP id 46e09a7af769-7c7613db390so622849a34.2 for ; Tue, 06 Jan 2026 08:27:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1767716879; x=1768321679; 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=t4rigtaUVzceNduvRfRUzk6xTb5cP2dmlDOzJ8N2oLQ=; b=I3qavktwRBQUzSal7tMc6Tx5S80YD2FWRa99mgWTNhS3srd5WKJvJ6AeV5BL/UUE3X 8r7NlKiCGwTJxdzXtbKmTncD5OyssrlaXVTva4XwQHc1goUGQWY6e9xZt23A/YrvAy4e 2i4wRah9GqTbKAZ+1Q3kFv/YhBFCtKmnQn44E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767716879; x=1768321679; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=t4rigtaUVzceNduvRfRUzk6xTb5cP2dmlDOzJ8N2oLQ=; b=nRm1PmsfTi4+RwrvqO5wBRP48lySo863mdVNlL0s1OWZVytTgfjG0KY6gYRfzUu4dC 3NfiRhY2OyNMmuRiQpBdjjrGEiGv/Byw5DwdyrUuHLMeNlfrKFx6j+f5wBSNHbiBONfo /y4AIVA5sFcfMx5A9XBvCODNaaaOGdioBuJOG8/h9tZKiv5QIPwCR7EzIjNeNcpFogSQ ubL23poY7ulVciqzD8P6ho7urdz/U2SUANTkTAaVHrGzs8LAXOCb4TSw9aHoAvRMtcol EDjZ05+YrrDEEr2eLET3E0cmkmGK4frOMacAvQMtMu1FM3mc33/faxFI9JW0SOff22aF GnHA== X-Forwarded-Encrypted: i=1; AJvYcCUstXVDnSTrNRGa1cw2fVz+AHJAzaxG6xfVdVLWtRJS+KDlWk2Ym/eBuNT7AOtsIsNfIpbahWCXJT0fTpw=@vger.kernel.org X-Gm-Message-State: AOJu0YxuS9c7KJUpcCcPh2vM1bQRZUJV0gNQi0hLX/QfX4//bkBs2bv6 KNij44HYG+9udaVqLwgnLP3TRbCDEoThBeOmZ9xS7Axi8qG9ujup1HBH0ro2zQhol1TMpbf/0K5 hbwI= X-Gm-Gg: AY/fxX4j9uXrQU0KRgMOxkkbsHSMqRhL6exM0La4fe+2SKZU1DObhK3hP9P5Bq2fr02 xA3dT/TBQ7MG3tLx2vdU3XQAueGaSL9IYGBKWWKqcp/6yOb5KA+rFlo4gUYsOvR1yt+MhcuX799 kj6PHkCOPm9srfVdzsduPirVSuLp5LoT/npqeOXpT6S5g9Sfx76N4IyE8uPrCDA6UqW3aiq2/tu ROOxMjRNVIWfb/4V0k7GmxJZK8j/GE2EOMroE5458gUcjEIjo40Oi38mCnY5opo6jyY6Xk4R302 u6dA0S8z0VhUi8MJ4y68Dpcm5dE9ptbtRaP5t/AZ2BYGFlOY8ZZk5l3qJJmIOQ2GJ17DK+ayZFY e4910IPO4hu62YNB+4XVr5+U/7MegoshRqwc4LRzZz+42QyBpF+ZmxnxV6IPJJVm57F/JvLuVDC 8ouqV4 X-Google-Smtp-Source: AGHT+IF7S2rg0m1Mda0gZnWPSOfNwohMrdwCkO13UjUZrEBZyn1R34tSjJPAZbTcfxGrtDjxpyXlJA== X-Received: by 2002:a05:6830:3141:b0:7ca:c9db:5436 with SMTP id 46e09a7af769-7ce4662cc2amr2707815a34.8.1767716877599; Tue, 06 Jan 2026 08:27:57 -0800 (PST) Received: from chromium.org ([73.34.74.121]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7ce478af8b2sm1630951a34.15.2026.01.06.08.27.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jan 2026 08:27:56 -0800 (PST) From: Simon Glass To: linux-arm-kernel@lists.infradead.org Cc: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , =?UTF-8?q?J=20=2E=20Neusch=C3=A4fer?= , Masahiro Yamada , Ahmad Fatoum , Nicolas Schier , Tom Rini , Chen-Yu Tsai , Simon Glass , Alice Ryhl , Ard Biesheuvel , David Sterba , Josh Poimboeuf , Kees Cook , Nathan Chancellor , Nick Terrell , Nicolas Schier , Petr Mladek , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v9 0/6] scripts/make_fit: Support ramdisks and faster operations Date: Tue, 6 Jan 2026 09:27:30 -0700 Message-ID: <20260106162738.2605574-1-sjg@chromium.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This series updates 'make image.fit' to support adding a ramdisk to the FIT, provided as a parameter. It also includes a few performance improvement, so that building a FIT from ~450MB of kernel/module/devicetree files only takes a few seconds on a modern machine. For this version I have dropped inclusion of built modules, as there is still more discussion to happen in that area. Changes in v9: - Rename the variable to FIT_EXTRA_ARGS Changes in v8: - Drop erroneous line 'kbuild: Allow adding modules into the FIT ...' Changes in v7: - Add a note about the " -> ' change - Add a new patch with the MAKE_FIT_FLAGS change - Mention xz as well, in the commit message - Drop patch 'scripts/make_fit: Provide a way to add built modules' - Drop patch 'kbuild: Split out module targets into a variable' - Drop patch 'kbuild: Allow adding modules into the FIT ramdisk' Changes in v6: - Drop the load address for ramdisk, as it is not needed - Bring back the ramdisk 'compression' property, set to 'none' Changes in v5: - Fix 'use' typo Changes in v4: - Update the commit message Changes in v3: - Move the ramdisk chunk into the correct patch - Add a comment at the top of the file about the -r option - Count the ramdisk in the total files - Update the commit message Changes in v2: - Don't compress the ramdisk as it is already compressed Simon Glass (6): scripts/make_fit: Speed up operation scripts/make_fit: Support an initial ramdisk scripts/make_fit: Move dtb processing into a function kbuild: Support a FIT_EXTRA_ARGS environment variable scripts/make_fit: Support a few more parallel compressors scripts/make_fit: Compress dtbs in parallel scripts/Makefile.lib | 2 +- scripts/make_fit.py | 179 ++++++++++++++++++++++++++++++++++--------- 2 files changed, 145 insertions(+), 36 deletions(-) -- 2.43.0 base-commit: 7f98ab9da046865d57c102fd3ca9669a29845f67 branch: fita9