[PATCH] Add support for zstd decompression
Norbert Lange
nolange79 at gmail.com
Wed Aug 18 07:53:42 UTC 2021
Am Mi., 18. Aug. 2021 um 04:36 Uhr schrieb Jeff Pohlmeyer
<yetanothergeek at gmail.com>:
>
> [EDIT: The original message was rejected because it was too large; I
> am re-sending w/ bzip2'd attachment]
>
> This (rather enormous) patch adds the unzstd, zstdcat, and zstd -d
> applets; as well as zstd support for modprobe, etc. (Arch Linux is now
> using zstd format by default for its pacman packages, initramfs, and
> kernel modules.)
>
> When enabled, this adds around 28kb to the statically linked musl-x86
> 32-bit busybox. But the patch adds some ~14k lines of code and
> comments, mostly in the libarchive/zstd directory. The code was pulled
> unmodified from the current https://github.com/facebook/zstd.git
> repository, only the bare minimum of files needed for decompression
> are included.
Hello Jeff,
I started the same feature some months ago, dont have time to finish it.
But the idea would've been to use the parts from contrib/freestanding_lib and
contrib/linux-kernel to process the sources.
ie. remove all non-gcc non-linux litter legacy stuff, make every
function static,
use functions from libbb if possible.
Norbert
>
> Among the files is an xxhash.[ch] implementation which might be useful
> to other applets in the future, but I left it in the zstd directory
> for now.
>
> - Jeff
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
More information about the busybox
mailing list