diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2016-02-06 17:30:15 -0800 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2016-02-06 17:30:15 -0800 |
commit | f9324a84796a5dbcac9d3a3fe2bead24f2853aa1 (patch) | |
tree | 5a205f34047c309f9179a0761c1f15fa5c3ef516 /gen_moddeps.sh | |
parent | Major version bump: due to kernel changes this is considered a major unstable... (diff) | |
download | genkernel-f9324a84796a5dbcac9d3a3fe2bead24f2853aa1.tar.gz genkernel-f9324a84796a5dbcac9d3a3fe2bead24f2853aa1.tar.bz2 genkernel-f9324a84796a5dbcac9d3a3fe2bead24f2853aa1.zip |
Use KERNEL_OUTPUTDIR more consistently.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'gen_moddeps.sh')
-rwxr-xr-x | gen_moddeps.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gen_moddeps.sh b/gen_moddeps.sh index 415e095..053a183 100755 --- a/gen_moddeps.sh +++ b/gen_moddeps.sh @@ -4,9 +4,9 @@ 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' + 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} } |