Thread (11 messages) 11 messages, 2 authors, 2026-02-05

Re: [PATCH v9 0/6] scripts/make_fit: Support ramdisks and faster operations

From: Simon Glass <sjg@chromium.org>
Date: 2026-02-03 21:59:10
Also in: linux-kbuild, lkml

hI Nathan,

On Tue, 3 Feb 2026 at 17:51, Nathan Chancellor [off-list ref] wrote:
Hi Simon,

On Tue, Feb 03, 2026 at 03:45:36PM +1300, Simon Glass wrote:
quoted
On Wed, 7 Jan 2026 at 05:27, Simon Glass [off-list ref] wrote:
quoted
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(-)
Can this series be applied, please?
Who are you expecting to apply this series? It does not look like it has
gone through one tree consistently and it is not clear from the
addressees. I guess it could go through Kbuild?
Yes, that's what I was thinking.

Regards,
Simon
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help