From 14463ba6a4afe20b360a4cea6a7a713c61342d71 Mon Sep 17 00:00:00 2001 From: Dimitri John Ledkov Date: Wed, 26 Jul 2023 20:24:51 +0100 Subject: [PATCH] UBUNTU: SAUCE: Support but do not require compressed modules During build and install of kernel tree modules are read and copied multiple times around. Similarly, many external dkms packages are built signed and passed around. Those external tools do not support handling compressed module, or cannot process them directly for example for signing. BugLink: https://bugs.launchpad.net/bugs/2028568 Signed-off-by: Dimitri John Ledkov Signed-off-by: Andrea Righi --- scripts/Makefile.modinst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/Makefile.modinst b/scripts/Makefile.modinst index b220e33787ac..f573ec14e9ae 100644 --- a/scripts/Makefile.modinst +++ b/scripts/Makefile.modinst @@ -53,7 +53,9 @@ $(foreach x, % :, $(if $(findstring $x, $(dst)), \ suffix-y := suffix-$(CONFIG_MODULE_COMPRESS_GZIP) := .gz suffix-$(CONFIG_MODULE_COMPRESS_XZ) := .xz -suffix-$(CONFIG_MODULE_COMPRESS_ZSTD) := .zst +## UBUNTU: Support, but do not require zstd compressed modules +# Many external dkms and signing rely on uncompressed modules +# suffix-$(CONFIG_MODULE_COMPRESS_ZSTD) := .zst modules := $(patsubst $(extmod_prefix)%.o, $(dst)/%.ko$(suffix-y), $(modules)) install-$(CONFIG_MODULES) += $(modules)