[PATCH v9 4/6] kbuild: Support a FIT_EXTRA_ARGS environment variable
Simon Glass
sjg at chromium.org
Tue Jan 6 08:27:34 PST 2026
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 at chromium.org>
Reviewed-by: Nicolas Schier <nsc at kernel.org>
Reviewed-by: Thomas Weißschuh <thomas.weissschuh at 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
More information about the linux-arm-kernel
mailing list