eclass/kernel-2: Sync with Gentoo

It's from Gentoo commit 6eb0dc54a2c89c9f73e1d1e68841d2940961ebce.
This commit is contained in:
Flatcar Buildbot 2023-08-07 07:12:10 +00:00 committed by Krzesimir Nowak
parent 1f0b03c3f2
commit 7a6d48a029

View File

@ -680,7 +680,8 @@ if [[ ${ETYPE} == sources ]]; then
# Reflect that kernels contain firmware blobs unless otherwise
# 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 )"
kernel_is lt 4 14 &&
LICENSE+=" !deblob? ( linux-fw-redistributable all-rights-reserved )"
if [[ -n KV_MINOR ]]; then
DEBLOB_PV="${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}"
@ -710,7 +711,7 @@ if [[ ${ETYPE} == sources ]]; then
elif kernel_is lt 4 14; then
# Deblobbing is not available, so just mark kernels older
# than 4.14 as tainted with non-libre materials.
LICENSE+=" linux-firmware"
LICENSE+=" linux-fw-redistributable all-rights-reserved"
fi
fi