-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: kernel-2.eclass
IUSE="${IUSE} deblob"
# Reflect that kernels contain firmware blobs unless otherwise
- # stripped
- LICENSE="${LICENSE} !deblob? ( linux-firmware )"
+ # stripped. Starting with version 4.14, the whole firmware
+ # tree has been dropped from the kernel.
+ kernel_is lt 4 14 && LICENSE+=" !deblob? ( linux-firmware )"
DEPEND+=" deblob? ( ${PYTHON_DEPS} )"
${DEBLOB_URI}
${DEBLOB_CHECK_URI}
)"
- else
+ elif kernel_is lt 4 14; then
# We have no way to deblob older kernels, so just mark them as
# tainted with non-libre materials.
- LICENSE="${LICENSE} linux-firmware"
+ LICENSE+=" linux-firmware"
fi
fi