Re: [PATCH v1 08/12] boot: image: add weak hooks for the decompression buffer and flush
Tom Rini <[email protected]>
| Newsgroups | org.u-boot-project.lists.u-boot |
|---|---|
| Message-ID | <20260825230506.GJ523975@bill-the-cat> |
On Wed, Aug 26, 2026 at 04:12:03AM +0530, AK Sharma wrote: > Add two weak hooks around the bootm image decompression: > image_get_decomp_buf() lets a platform redirect the decompression > destination (e.g. to an uncached window), and image_decomp_flush() lets > it flush the caches over the decompressed image. Both default to no-ops, > so existing platforms are unaffected. The EN75xx uses them to keep the > kernel coherent on its cache-coherent CM. > > Signed-off-by: AK Sharma <[email protected]> > --- > boot/image.c | 34 +++++++++++++++++++++++++++------- > include/image.h | 5 +++++ > 2 files changed, 32 insertions(+), 7 deletions(-) This seems like something that should be possible with the normal environment-based restrictions documented in doc/usage/environment.rst around bootm_size and similar. -- Tom
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTzzqh0PWDgGS+bTHor4qD1Cr/kCgUCao4fogAKCRAr4qD1Cr/k Cj2mAP9a2M3ajGN4JcAh9C3rWx7es/huMX4DPMS41evadzk+0gEA1O9F+AHnpGpp CwKVc35/iykGHZqT/kq+Et62LKOPpQU= =Rcw2 -----END PGP SIGNATURE-----