summaryrefslogtreecommitdiff
path: root/eclass/linux-build.eclass
diff options
context:
space:
mode:
authorBertrand Jacquin <bertrand@jacquin.bzh>2019-08-29 00:15:58 +0100
committerBertrand Jacquin <bertrand@jacquin.bzh>2019-08-29 01:07:58 +0100
commitc9380cf82353854a185413482cbaae6813596e04 (patch)
tree957e9d8cba9f8e2c4a2154e7d21a0e9b86356651 /eclass/linux-build.eclass
parentprofiles/common: Enable lz4 (diff)
downloadportage-c9380cf82353854a185413482cbaae6813596e04.tar.xz
eclass/linux-build: Abort if compression tools are not available
Diffstat (limited to 'eclass/linux-build.eclass')
-rw-r--r--eclass/linux-build.eclass26
1 files changed, 26 insertions, 0 deletions
diff --git a/eclass/linux-build.eclass b/eclass/linux-build.eclass
index e7ff10ec..afd02c4e 100644
--- a/eclass/linux-build.eclass
+++ b/eclass/linux-build.eclass
@@ -239,6 +239,32 @@ _linux-build_src_prepare_build() {
_linux-build_configval FHANDLE || ewarn "CONFIG_FHANDLE is needed for >=sys-fs/udev-210"
_linux-build_configval NET || ewarn "CONFIG_NET is needed for >=sys-fs/udev-210"
+ if _linux-build_configval KERNEL_GZIP ; then
+ if ! has_version "app-arch/gzip" ; then
+ die "app-arch/gzip is required for CONFIG_KERNEL_GZIP"
+ fi
+ elif _linux-build_configval KERNEL_BZIP2 ; then
+ if ! has_version "app-arch/bzip2" ; then
+ die "app-arch/bzip2 is required for CONFIG_KERNEL_BZIP2"
+ fi
+ elif _linux-build_configval KERNEL_LZMA ; then
+ if ! has_version "app-arch/lzma" ; then
+ die "app-arch/lzma is required for CONFIG_KERNEL_LZMA"
+ fi
+ elif _linux-build_configval KERNEL_XZ; then
+ if ! has_version "app-arch/xz-utils" ; then
+ die "app-arch/xz-utils is required for CONFIG_KERNEL_XZ"
+ fi
+ elif _linux-build_configval KERNEL_LZO ; then
+ if ! has_version "app-arch/lzop" ; then
+ die "app-arch/lzop is required for CONFIG_KERNEL_LZO"
+ fi
+ elif _linux-build_configval KERNEL_LZ4 ; then
+ if ! has_version "app-arch/lz4" ; then
+ die "app-arch/lz4 is required for CONFIG_KERNEL_LZ4"
+ fi
+ fi
+
if _linux-build_configval MODULE_COMPRESS ; then
if _linux-build_configval MODULE_COMPRESS_GZIP ; then
if ! has_version "app-arch/gzip" ; then