From a98be5ba1deea4f0b46eb4273ea278e3e0eb87ea Mon Sep 17 00:00:00 2001 From: Erik Nolte Date: Thu, 6 Oct 2011 14:31:37 -0600 Subject: helper/init: Handle compressed modules transparently. Detect libz and, if present, define HAS_LIBZ and add -lz to Makefile's LIBS variable. Add entry on optional zlib package requirement. Detect both uncompressed and gzipped kernel modules. Some Linux distros (like ArchLinux) use gzipped kernel modules with filenames like ext2.ko.gz. This change modifies the filename pattern from (e.g.) "ext2.ko" to "ext2.ko*". When available, use libz to read the module. The init_module system call requires uncompressed kernel module bytes. On some systems (e.g. ArchLinux) the modules are gzipped on disk. Libz is used to read and uncompress gzipped disk files (*.ko.gz) or transparently read uncompressed modules (*.ko). --- README | 2 ++ 1 file changed, 2 insertions(+) (limited to 'README') diff --git a/README b/README index 99c4d36..2c42b2e 100644 --- a/README +++ b/README @@ -59,6 +59,8 @@ are building: qemu >= 0.13 kernel >= 2.6.36 + zlib - if your kernel uses gzipped modules + Building and installing ----------------------- -- cgit