I noticed for my buildroot environment the only componment that was pulling in zlib was dropbear. The patch included drops the zlib dependency when compiling with DROPBEAR_SMALL, pruning ~70kB for a LZO compressed root which is handy for me with my 4MB NAND. No idea if the patch is 'correct' by your standards but it gets my usual stamps, 'seal of approval' and 'works for me'... Cheers
Created attachment 3301 [details] drop zlib dependency
Committed with small tweaks, thanks