[PATCH] init: add support for zstd compressed modules

2021-03-30 Thread Piotr Gorski
kmod 28 supports modules compressed in zstd format so let's add this possibility to kernel. Signed-off-by: Piotr Gorski --- Makefile | 7 +-- init/Kconfig | 9 ++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 5160ff8903c1..82f4f4cc2955

[PATCH] kbuild: add support for zstd compressed modules

2021-04-07 Thread Piotr Gorski
kmod 28 supports modules compressed in zstd format so let's add this possibility to kernel. V1 -> V2 * Rebuild against linux-kbuild tree Signed-off-by: Piotr Gorski --- init/Kconfig | 8 +++- scripts/Makefile.modinst | 6 ++ 2 files changed, 13 insertions(+), 1 delet

[PATCH v3] kbuild: add support for zstd compressed modules

2021-04-07 Thread Piotr Gorski
kmod 28 supports modules compressed in zstd format so let's add this possibility to kernel. V2 -> V3 * Fix a typo V1 -> V2 * Rebuild against linux-kbuild tree Signed-off-by: Piotr Gorski --- init/Kconfig | 8 +++- scripts/Makefile.modinst | 6 ++ 2 files chang

Subject: Re: [PATCH v3] kbuild: add support for zstd compressed modules

2021-04-08 Thread Piotr Gorski
No, the --rm option is essential. xz and gzip have the --rm option built in as opposed to zstd, which is why I used it. I've been using zstd module compression since last december (although I set a different compression level on mine) and everything works fine. Oleksandr also tested it at his

Subject: Re: [PATCH v3] kbuild: add support for zstd compressed modules

2021-04-09 Thread Piotr Gorski
I originally posted the patch in a different form [1] even before Masahiro's changes. I've been testing this solution since December last year and posted it in March this year, after I made sure everything was working fine. This patch was tested by Oleksandr and he also didn't report any