* [PATCH v8 0/6] scripts/make_fit: Support ramdisks and faster operations
@ 2025-12-27 14:21 Simon Glass
2025-12-27 14:21 ` [PATCH v8 4/6] kbuild: Support a MAKE_FIT_FLAGS environment variable Simon Glass
0 siblings, 1 reply; 4+ messages in thread
From: Simon Glass @ 2025-12-27 14:21 UTC (permalink / raw)
To: linux-arm-kernel
Cc: Masahiro Yamada, Chen-Yu Tsai, Thomas Weißschuh,
Nicolas Schier, J . Neuschäfer, Ahmad Fatoum, Tom Rini,
Simon Glass, Alice Ryhl, Ard Biesheuvel, David Sterba,
Ingo Molnar, Josh Poimboeuf, Kees Cook, Nathan Chancellor,
Nick Terrell, Nicolas Schier, Oleh Zadorozhnyi, 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 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 MAKE_FIT_FLAGS 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: c53f467229a78287efa5b9f65bd22de64416660f
branch: fita8
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v8 4/6] kbuild: Support a MAKE_FIT_FLAGS environment variable
2025-12-27 14:21 [PATCH v8 0/6] scripts/make_fit: Support ramdisks and faster operations Simon Glass
@ 2025-12-27 14:21 ` Simon Glass
2025-12-27 16:36 ` Nicolas Schier
2025-12-29 11:16 ` Thomas Weißschuh
0 siblings, 2 replies; 4+ messages in thread
From: Simon Glass @ 2025-12-27 14:21 UTC (permalink / raw)
To: linux-arm-kernel
Cc: Masahiro Yamada, Chen-Yu Tsai, Thomas Weißschuh,
Nicolas Schier, J . Neuschäfer, Ahmad Fatoum, Tom Rini,
Simon Glass, Alice Ryhl, Ard Biesheuvel, Ingo Molnar,
Josh Poimboeuf, Kees Cook, Nathan Chancellor, Nicolas Schier,
Oleh Zadorozhnyi, 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 MAKE_FIT_FLAGS variable for this.
Signed-off-by: Simon Glass <sjg@chromium.org>
---
(no changes since v7)
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..a5641a6538b1 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)' $(MAKE_FIT_FLAGS) \
$(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] 4+ messages in thread
* Re: [PATCH v8 4/6] kbuild: Support a MAKE_FIT_FLAGS environment variable
2025-12-27 14:21 ` [PATCH v8 4/6] kbuild: Support a MAKE_FIT_FLAGS environment variable Simon Glass
@ 2025-12-27 16:36 ` Nicolas Schier
2025-12-29 11:16 ` Thomas Weißschuh
1 sibling, 0 replies; 4+ messages in thread
From: Nicolas Schier @ 2025-12-27 16:36 UTC (permalink / raw)
To: Simon Glass
Cc: linux-arm-kernel, Masahiro Yamada, Chen-Yu Tsai,
Thomas Weißschuh, J . Neuschäfer, Ahmad Fatoum,
Tom Rini, Alice Ryhl, Ard Biesheuvel, Ingo Molnar, Josh Poimboeuf,
Kees Cook, Nathan Chancellor, Oleh Zadorozhnyi, Petr Mladek,
linux-kbuild, linux-kernel
On Sat, Dec 27, 2025 at 07:21:48AM -0700, Simon Glass wrote:
> 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 MAKE_FIT_FLAGS variable for this.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
> (no changes since v7)
>
> Changes in v7:
> - Add a new patch with the MAKE_FIT_FLAGS change
>
> scripts/Makefile.lib | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Reviewed-by: Nicolas Schier <nsc@kernel.org>
--
Nicolas
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v8 4/6] kbuild: Support a MAKE_FIT_FLAGS environment variable
2025-12-27 14:21 ` [PATCH v8 4/6] kbuild: Support a MAKE_FIT_FLAGS environment variable Simon Glass
2025-12-27 16:36 ` Nicolas Schier
@ 2025-12-29 11:16 ` Thomas Weißschuh
1 sibling, 0 replies; 4+ messages in thread
From: Thomas Weißschuh @ 2025-12-29 11:16 UTC (permalink / raw)
To: Simon Glass
Cc: linux-arm-kernel, Masahiro Yamada, Chen-Yu Tsai, Nicolas Schier,
J . Neuschäfer, Ahmad Fatoum, Tom Rini, Alice Ryhl,
Ard Biesheuvel, Ingo Molnar, Josh Poimboeuf, Kees Cook,
Nathan Chancellor, Nicolas Schier, Oleh Zadorozhnyi, Petr Mladek,
linux-kbuild, linux-kernel
On Sat, Dec 27, 2025 at 07:21:48AM -0700, Simon Glass wrote:
> 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 MAKE_FIT_FLAGS variable for this.
The new variable's name is a bit inconsistent with the other ones.
I would have used `FIT_EXTRA_ARGUMENTS` or such.
> Signed-off-by: Simon Glass <sjg@chromium.org>
In any case:
Reviewed-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-12-29 11:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-27 14:21 [PATCH v8 0/6] scripts/make_fit: Support ramdisks and faster operations Simon Glass
2025-12-27 14:21 ` [PATCH v8 4/6] kbuild: Support a MAKE_FIT_FLAGS environment variable Simon Glass
2025-12-27 16:36 ` Nicolas Schier
2025-12-29 11:16 ` Thomas Weißschuh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox