On Mon, Sep 21, 2026 at 6:47 PM Heinrich Schuchardt
<[email protected]> wrote:
>
> On 9/18/26 12:52, Alexey Charkov wrote:
> > ZSTD_LIB_MINIFY is offered only inside "if ZSTD", so a board which
> > enables zstd for SPL alone gets the full-size library in the phase which
> > can least afford it.
> >
> > Add an SPL-scoped variant of this option and key the build flags off that.
> >
> > Reviewed-by: Tom Rini <[email protected]>
> > Signed-off-by: Alexey Charkov <[email protected]>
> > ---
> >   lib/Kconfig       | 12 ++++++++++++
> >   lib/zstd/Makefile |  2 +-
> >   2 files changed, 13 insertions(+), 1 deletion(-)
> >
> > diff --git a/lib/Kconfig b/lib/Kconfig
> > index ec6f162dfb57..1292185e03f8 100644
> > --- a/lib/Kconfig
> > +++ b/lib/Kconfig
> > @@ -1023,6 +1023,18 @@ config SPL_ZSTD
> >         buffer and takes its window from there, so the compression level
> >         does not change what the SPL heap has to hold.
> >
> > +config SPL_ZSTD_LIB_MINIFY
> > +     bool "Minify Zstandard code in SPL"
> > +     depends on SPL_ZSTD
> > +     default y
> > +     help
> > +       This disables various optional components and changes the
> > +       compilation flags to prioritize space-saving.
> > +
> > +       For detailed info, see zstd's lib/README.md
> > +
> > +       https://github.com/facebook/zstd/blob/dev/lib/README.md
> > +
> >   endmenu
>
> Why wouldn't you want this in main U-Boot too?

U-Boot proper already has this symbol, so I'm only mirroring it for
the SPL use here.

Best regards,
Alexey

Reply via email to