Linux kbuild/kconfig development
 help / color / mirror / Atom feed
* [PATCH v9 0/6] scripts/make_fit: Support ramdisks and faster operations
@ 2026-01-06 16:27 Simon Glass
  2026-01-06 16:27 ` [PATCH v9 4/6] kbuild: Support a FIT_EXTRA_ARGS environment variable Simon Glass
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Simon Glass @ 2026-01-06 16:27 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Thomas Weißschuh, J . Neuschäfer, 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, linux-kernel

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH v9 4/6] kbuild: Support a FIT_EXTRA_ARGS environment variable
  2026-01-06 16:27 [PATCH v9 0/6] scripts/make_fit: Support ramdisks and faster operations Simon Glass
@ 2026-01-06 16:27 ` Simon Glass
  2026-02-03  2:45 ` [PATCH v9 0/6] scripts/make_fit: Support ramdisks and faster operations Simon Glass
  2026-02-05 19:23 ` Nathan Chancellor
  2 siblings, 0 replies; 6+ messages in thread
From: Simon Glass @ 2026-01-06 16:27 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Thomas Weißschuh, J . Neuschäfer, Masahiro Yamada,
	Ahmad Fatoum, Nicolas Schier, Tom Rini, Chen-Yu Tsai, Simon Glass,
	Nicolas Schier, Alice Ryhl, Ard Biesheuvel, Josh Poimboeuf,
	Kees Cook, Nathan Chancellor, Petr Mladek, linux-kbuild,
	linux-kernel

In some cases it is useful to be able to pass additional flags to the
make_fit.py script. For example, since ramdisks are typically large,
passing -E to use external data can be helpful.

Add a new FIT_EXTRA_ARGS variable for this.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Nicolas Schier <nsc@kernel.org>
Reviewed-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
---

Changes in v9:
- Rename the variable to FIT_EXTRA_ARGS

Changes in v7:
- Add a new patch with the MAKE_FIT_FLAGS change

 scripts/Makefile.lib | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 28a1c08e3b22..e8da632d5348 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -400,7 +400,7 @@ FIT_COMPRESSION ?= gzip
 
 quiet_cmd_fit = FIT     $@
       cmd_fit = $(MAKE_FIT) -o $@ --arch $(UIMAGE_ARCH) --os linux \
-		--name '$(UIMAGE_NAME)' \
+		--name '$(UIMAGE_NAME)' $(FIT_EXTRA_ARGS) \
 		$(if $(findstring 1,$(KBUILD_VERBOSE)),-v) \
 		$(if $(FIT_DECOMPOSE_DTBS),--decompose-dtbs) \
 		--compress $(FIT_COMPRESSION) -k $< @$(word 2,$^)
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH v9 0/6] scripts/make_fit: Support ramdisks and faster operations
  2026-01-06 16:27 [PATCH v9 0/6] scripts/make_fit: Support ramdisks and faster operations Simon Glass
  2026-01-06 16:27 ` [PATCH v9 4/6] kbuild: Support a FIT_EXTRA_ARGS environment variable Simon Glass
@ 2026-02-03  2:45 ` Simon Glass
  2026-02-03  4:51   ` Nathan Chancellor
  2026-02-05 19:23 ` Nathan Chancellor
  2 siblings, 1 reply; 6+ messages in thread
From: Simon Glass @ 2026-02-03  2:45 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Thomas Weißschuh, J . Neuschäfer, Masahiro Yamada,
	Ahmad Fatoum, Nicolas Schier, Tom Rini, Chen-Yu Tsai, Alice Ryhl,
	Ard Biesheuvel, David Sterba, Josh Poimboeuf, Kees Cook,
	Nathan Chancellor, Nick Terrell, Nicolas Schier, Petr Mladek,
	linux-kbuild, linux-kernel

Hi,

On Wed, 7 Jan 2026 at 05:27, Simon Glass <sjg@chromium.org> wrote:
>
> 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?

Regards,
Simon

>
> --
> 2.43.0
>
> base-commit: 7f98ab9da046865d57c102fd3ca9669a29845f67
> branch: fita9

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v9 0/6] scripts/make_fit: Support ramdisks and faster operations
  2026-02-03  2:45 ` [PATCH v9 0/6] scripts/make_fit: Support ramdisks and faster operations Simon Glass
@ 2026-02-03  4:51   ` Nathan Chancellor
  2026-02-03 21:59     ` Simon Glass
  0 siblings, 1 reply; 6+ messages in thread
From: Nathan Chancellor @ 2026-02-03  4:51 UTC (permalink / raw)
  To: Simon Glass
  Cc: linux-arm-kernel, Thomas Weißschuh, J . Neuschäfer,
	Masahiro Yamada, Ahmad Fatoum, Nicolas Schier, Tom Rini,
	Chen-Yu Tsai, Alice Ryhl, Ard Biesheuvel, David Sterba,
	Josh Poimboeuf, Kees Cook, Nick Terrell, Nicolas Schier,
	Petr Mladek, linux-kbuild, linux-kernel

Hi Simon,

On Tue, Feb 03, 2026 at 03:45:36PM +1300, Simon Glass wrote:
> On Wed, 7 Jan 2026 at 05:27, Simon Glass <sjg@chromium.org> wrote:
> >
> > 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?

Cheers,
Nathan

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v9 0/6] scripts/make_fit: Support ramdisks and faster operations
  2026-02-03  4:51   ` Nathan Chancellor
@ 2026-02-03 21:59     ` Simon Glass
  0 siblings, 0 replies; 6+ messages in thread
From: Simon Glass @ 2026-02-03 21:59 UTC (permalink / raw)
  To: Nathan Chancellor
  Cc: linux-arm-kernel, Thomas Weißschuh, J . Neuschäfer,
	Masahiro Yamada, Ahmad Fatoum, Nicolas Schier, Tom Rini,
	Chen-Yu Tsai, Alice Ryhl, Ard Biesheuvel, David Sterba,
	Josh Poimboeuf, Kees Cook, Nick Terrell, Nicolas Schier,
	Petr Mladek, linux-kbuild, linux-kernel

hI Nathan,

On Tue, 3 Feb 2026 at 17:51, Nathan Chancellor <nathan@kernel.org> wrote:
>
> Hi Simon,
>
> On Tue, Feb 03, 2026 at 03:45:36PM +1300, Simon Glass wrote:
> > On Wed, 7 Jan 2026 at 05:27, Simon Glass <sjg@chromium.org> wrote:
> > >
> > > 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v9 0/6] scripts/make_fit: Support ramdisks and faster operations
  2026-01-06 16:27 [PATCH v9 0/6] scripts/make_fit: Support ramdisks and faster operations Simon Glass
  2026-01-06 16:27 ` [PATCH v9 4/6] kbuild: Support a FIT_EXTRA_ARGS environment variable Simon Glass
  2026-02-03  2:45 ` [PATCH v9 0/6] scripts/make_fit: Support ramdisks and faster operations Simon Glass
@ 2026-02-05 19:23 ` Nathan Chancellor
  2 siblings, 0 replies; 6+ messages in thread
From: Nathan Chancellor @ 2026-02-05 19:23 UTC (permalink / raw)
  To: linux-arm-kernel, Simon Glass
  Cc: Thomas Weißschuh, J . Neuschäfer, Masahiro Yamada,
	Ahmad Fatoum, Tom Rini, Chen-Yu Tsai, Alice Ryhl, Ard Biesheuvel,
	David Sterba, Josh Poimboeuf, Kees Cook, Nathan Chancellor,
	Nick Terrell, Nicolas Schier, Petr Mladek, linux-kbuild,
	linux-kernel, Nicolas Schier

On Tue, 06 Jan 2026 09:27:30 -0700, Simon Glass wrote:
> 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.
> 
> [...]

Applied to

  https://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux.git kbuild-next

Thanks!

[1/6] scripts/make_fit: Speed up operation
      https://git.kernel.org/kbuild/c/621fd65adc825
[2/6] scripts/make_fit: Support an initial ramdisk
      https://git.kernel.org/kbuild/c/26428e7dd6a51
[3/6] scripts/make_fit: Move dtb processing into a function
      https://git.kernel.org/kbuild/c/873c2836982e1
[4/6] kbuild: Support a FIT_EXTRA_ARGS environment variable
      https://git.kernel.org/kbuild/c/9a329df6e0041
[5/6] scripts/make_fit: Support a few more parallel compressors
      https://git.kernel.org/kbuild/c/fcdcf22a34b07
[6/6] scripts/make_fit: Compress dtbs in parallel
      https://git.kernel.org/kbuild/c/c7c88b20cd422

Please look out for regression or issue reports or other follow up
comments, as they may result in the patch/series getting dropped or
reverted. Patches applied to an "unstable" branch are accepted pending
wider testing in -next and any post-commit review; they will generally
be moved to the main branch in a week if no issues are found.

Best regards,
-- 
Nathan Chancellor <nathan@kernel.org>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-02-05 19:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-06 16:27 [PATCH v9 0/6] scripts/make_fit: Support ramdisks and faster operations Simon Glass
2026-01-06 16:27 ` [PATCH v9 4/6] kbuild: Support a FIT_EXTRA_ARGS environment variable Simon Glass
2026-02-03  2:45 ` [PATCH v9 0/6] scripts/make_fit: Support ramdisks and faster operations Simon Glass
2026-02-03  4:51   ` Nathan Chancellor
2026-02-03 21:59     ` Simon Glass
2026-02-05 19:23 ` Nathan Chancellor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox