diff options
Diffstat (limited to 'gen_moddeps.sh')
-rwxr-xr-x | gen_moddeps.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gen_moddeps.sh b/gen_moddeps.sh index 918fc38..869788d 100755 --- a/gen_moddeps.sh +++ b/gen_moddeps.sh @@ -54,13 +54,15 @@ modules_dep_list() { fi } -modules_kext() -{ - KEXT=".ko" - if grep -sq '^CONFIG_MODULE_COMPRESS=y' "${KERNEL_OUTPUTDIR}"/.config; then +modules_kext() { + local KEXT='.ko' + + if grep -sq '^CONFIG_MODULE_COMPRESS=y' "${KERNEL_OUTPUTDIR}"/.config + then grep -sq '^CONFIG_MODULE_COMPRESS_XZ=y' "${KERNEL_OUTPUTDIR}"/.config && KEXT='.ko.xz' grep -sq '^CONFIG_MODULE_COMPRESS_GZIP=y' "${KERNEL_OUTPUTDIR}"/.config && KEXT='.ko.gz' fi + echo ${KEXT} } |