]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scripts/make_fit: Speed up operation
authorSimon Glass <sjg@chromium.org>
Tue, 6 Jan 2026 16:27:31 +0000 (09:27 -0700)
committerNathan Chancellor <nathan@kernel.org>
Wed, 4 Feb 2026 00:20:10 +0000 (17:20 -0700)
commit621fd65adc825b69a59367b97a7c2aa73e382909
tree3fffbe0404459cfdd7dc4d4632969745b6a5109c
parentf2445d6f264c64e90b5094d4e8ed33f30cfb7fc4
scripts/make_fit: Speed up operation

The kernel is likely at least 16MB so we may as well use that as a step
size when reallocating space for the FIT in memory. Pack the FIT at the
end, so there is no wasted space.

This reduces the time to pack by an order of magnitude, or so.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Nicolas Schier <nsc@kernel.org>
Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Tested-by: Chen-Yu Tsai <wenst@chromium.org>
Link: https://patch.msgid.link/20260106162738.2605574-2-sjg@chromium.org
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
scripts/make_fit.py