Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gen_initramfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ print_list()
append_modules() {
local group
local group_modules
local MOD_EXT=".ko"
local MOD_EXT=$(modules_kext)

print_info 2 "initramfs: >> Searching for modules..."
if [ "${INSTALL_MOD_PATH}" != '' ]
Expand Down Expand Up @@ -821,7 +821,7 @@ append_modules() {
}

append_drm() {
local MOD_EXT=".ko"
local MOD_EXT=$(modules_kext)

print_info 2 "initramfs: >> Appending drm drivers..."
if [ "${INSTALL_MOD_PATH}" != '' ]
Expand Down
4 changes: 4 additions & 0 deletions gen_moddeps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
modules_kext()
{
KEXT=".ko"
if grep -sq '^CONFIG_MODULE_COMPRESS=y' "${KERNEL_DIR}"/.config; then
grep -sq '^CONFIG_MODULE_COMPRESS_XZ=y' "${KERNEL_DIR}"/.config && KEXT='.ko.xz'
grep -sq '^CONFIG_MODULE_COMPRESS_GZIP=y' "${KERNEL_DIR}"/.config && KEXT='.ko.gz'
fi
echo ${KEXT}
}

Expand Down