git subrepo pull (merge) --force deps/libchdr
[pcsx_rearmed.git] / deps / libchdr / deps / zstd-1.5.5 / contrib / linux-kernel / README.md
CommitLineData
648db22b 1# Zstd in the Linux Kernel
2
3This directory contains the scripts needed to transform upstream zstd into the version imported into the kernel. All the transforms are automated and tested by our continuous integration.
4
5## Upgrading Zstd in the Linux Kernel
6
71. `cd` into this directory.
82. Run `make libzstd` and read the output. Make sure that all the diffs printed and changes made by the script are correct.
93. Run `make test` and ensure that it passes.
104. Import zstd into the Linux Kernel `make import LINUX=/path/to/linux/repo`
115. Inspect the diff for sanity.
126. Check the Linux Kernel history for zstd. If any patches were made to the kernel version of zstd, but not to upstream zstd, then port them upstream if necessary.
137. Test the diff. Benchmark if necessary. Make sure to test multiple architectures: At least x86, i386, and arm.
148. Submit the patch to the LKML.