Re: [RFC PATCH] x86/boot: use zstd -19 if building for 32-bit
Xi Ruoyao <[email protected]> Tue, 28 Jul 2026 22:42:48 +0800
| Newsgroups | org.kernel.vger.linux-kbuild,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 2026-07-28 at 22:31 +0800, Mingcong Bai wrote: > When using native build environments (that is, 32-bit x86 chroot/containe= r > as build environment for 32-bit x86 binaries), `zstd -22' requests more > virtual memory than that could be allowed on 32-bit hosts. >=20 > Introduce `cmd_zstd_with_size' for CONFIG_X86_32 builds. >=20 > This is quite possibly just stupid... But there doesn't seem to be a way > to detect the host environment. So I'm sending this patch as a means to > ask for your opinions. "readelf -d $(which zstd) -h | grep ELF64" ? But it's also stupid, if someone is using a script wrapping the actual zstd executable or cross-compiling from a non-ELF platform things will still blow up. --=20 Xi Ruoyao <[email protected]>