aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2021-07-08 18:31:03 +0200
committerThomas Deutschmann <whissi@gentoo.org>2021-07-08 18:35:51 +0200
commitceeff435c0b4dc92c30c26b7f3ec8da3fbbd77c0 (patch)
tree0d92af3017f83331c0d72b6fa8f7d0e6ec04e733 /gen_moddeps.sh
parentgen_cmdline.sh: parse_cmdline(): Allow to override AS, AR, NM & Co via CLI (diff)
downloadgenkernel-ceeff435c0b4dc92c30c26b7f3ec8da3fbbd77c0.tar.gz
genkernel-ceeff435c0b4dc92c30c26b7f3ec8da3fbbd77c0.tar.bz2
genkernel-ceeff435c0b4dc92c30c26b7f3ec8da3fbbd77c0.zip
gen_moddeps.sh: Move modules_kext() to determine_KEXT()
We want debug output but then we cannot use return value from this function. Transforming function to determine_KEXT() like determine_KV() will fix the problem and allows us to keep debug output. Fixes: 234ce29 ("gen_moddeps.sh: modules_kext() refactored") Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'gen_moddeps.sh')
-rwxr-xr-xgen_moddeps.sh31
1 files changed, 0 insertions, 31 deletions
diff --git a/gen_moddeps.sh b/gen_moddeps.sh
index 30e1709..89a562b 100755
--- a/gen_moddeps.sh
+++ b/gen_moddeps.sh
@@ -53,37 +53,6 @@ modules_dep_list() {
fi
}
-modules_kext() {
- local KEXT='.ko'
-
- declare -A module_compression_algorithms=()
- module_compression_algorithms[NONE]='.ko'
- module_compression_algorithms[GZIP]='.ko.gz'
- module_compression_algorithms[XZ]='.ko.xz'
- module_compression_algorithms[ZSTD]='.ko.zst'
-
- local module_compression_algorithm
- for module_compression_algorithm in "${!module_compression_algorithms[@]}"
- do
- print_info 5 "Checking if module compression algorithm '${module_compression_algorithm}' is being used ..."
-
- local koption="CONFIG_MODULE_COMPRESS_${module_compression_algorithm}"
- local value_koption=$(kconfig_get_opt "${KERNEL_OUTPUTDIR}/.config" "${koption}")
- if [[ "${value_koption}" != "y" ]]
- then
- print_info 5 "Cannot use '${module_compression_algorithm}' algorithm for module compression, kernel option '${koption}' is not set!"
- continue
- fi
-
- print_info 5 "Will use '${module_compression_algorithm}' algorithm for kernel module compression!"
- KEXT="${module_compression_algorithms[${module_compression_algorithm}]}"
- break
- done
- unset module_compression_algorithms module_compression_algorithm koption value_koption
-
- echo ${KEXT}
-}
-
# Pass module deps list
strip_mod_paths() {
local x