[MANTIC][PATCH 1/3] UBUNTU: SAUCE: Support but do not require compressed modules

Dimitri John Ledkov dimitri.ledkov at canonical.com
Wed Jul 26 19:24:51 UTC 2023

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 <dimitri.ledkov at canonical.com>
 scripts/Makefile.modinst | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scripts/Makefile.modinst b/scripts/Makefile.modinst
index 647d2b0bae..c2482c119f 100644
--- a/scripts/Makefile.modinst
+++ b/scripts/Makefile.modinst
@@ -24,7 +24,9 @@ $(foreach x, % :, $(if $(findstring $x, $(dst)), \
 suffix-y				:=
+## 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))

More information about the kernel-team mailing list