mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 11:37:20 -08:00
sys-kernel/gentoo-kernel: Bump to 5.8.6
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -16,6 +16,8 @@ DIST genpatches-5.8-6.base.tar.xz 253496 BLAKE2B 691638688887676a60639683b75a51a
|
||||
DIST genpatches-5.8-6.extras.tar.xz 1768 BLAKE2B 0ce3cc9c79e236e98da9b799d3d82aaafadc33beb4e373ecaa9ac7c9e0c29a43706633b2d9708e3548914c1088140030b1905274ffff286eaf45d2d33991979b SHA512 f5705f850fb6b9b14f70193ec258041bfdab9c3a93122f9da5e6a92633a6b130568efcadde4aaa59fd90a18426689a40e0dc14e4df7cfcf460a502f565e6f47d
|
||||
DIST genpatches-5.8-7.base.tar.xz 256688 BLAKE2B d4b30859f73f8da89d236181f5d9ee45c4b60728090153e6c068bf77b9b21210402ee4843969888d287c2ae74a4abda42334b1add83bcab2f6635d7fd276fa69 SHA512 960d483b0592f691628899808f1537c16cf204d4f9d512d0cb1fb40c940c0cfd5a127658b9ac6cb75d7f13c2fe8a7b9430fa006435bc04ab9b6f109d7030f115
|
||||
DIST genpatches-5.8-7.extras.tar.xz 1768 BLAKE2B db9b7e4916695a491803c5f152877597294ac4ea07453579b63b1d7f18331d083ee5b3362139da173374ba212223823bda6e32307b96b18dfe5ee6e51506e542 SHA512 ddda697285266c098d40f511304d00cc7bec9cfa6a245f263cb3f109e55fd00f9b8623a7cf0807ab204c15bdda526f19ad2e542956c9fa531231815f5f112e60
|
||||
DIST genpatches-5.8-9.base.tar.xz 340332 BLAKE2B 07cf6b878e42ba269c93179c99c376936e992fc6d8d5751329c7f4e63f7a78540cf2bf3404ef0ff00edaa050d2f8cb3da61850d58aa178734d81e719fd9bdf90 SHA512 216ceff89ee2b7a4903e91814639034d89dbf7da827c6a0f87f6f62f315e513dd31d4d41bb8d69f2f624c45563798f14c2c483c07112de2bebfb6e0ca7e7c579
|
||||
DIST genpatches-5.8-9.extras.tar.xz 1768 BLAKE2B 60e864404bf061eaad2034fc8bb4109d060041fbd149a533dd239895b3a89a2466d84617bd6deaf9c4674db821780399a47022c55fda6c7e8742d4497081d561 SHA512 b7e0a30938b7ce1ab296a54f31c77aa22c59f360a72a15c0f395403d4b49e8135acfdfdee1b4ff4b627e4c49fcf9b753847dd78fd64b46a8c7bc437f86b14f31
|
||||
DIST kernel-aarch64-fedora.config.5.8.1 215181 BLAKE2B d29bdc80f90f8ff22f43439ec03c8f391ddeae8d299dd36cb4d4d51c7d37851900faef728a94eca069c08fbb22a8ef5c2bdfb2b850e4f669276d967cb47dc331 SHA512 99f9a4fa65082d09b38bd05021a9f7577b98eb8b101928ff7862139461f603484722ed19aefe34540da6aa15908abee99a5287c1594e45f0c12afa4663820fa0
|
||||
DIST kernel-aarch64-fedora.config.5.8.4 215181 BLAKE2B d29bdc80f90f8ff22f43439ec03c8f391ddeae8d299dd36cb4d4d51c7d37851900faef728a94eca069c08fbb22a8ef5c2bdfb2b850e4f669276d967cb47dc331 SHA512 99f9a4fa65082d09b38bd05021a9f7577b98eb8b101928ff7862139461f603484722ed19aefe34540da6aa15908abee99a5287c1594e45f0c12afa4663820fa0
|
||||
DIST kernel-aarch64.config.5.4.21 199104 BLAKE2B 578ad451a76204df2a9bbbe34b5cb27051d2ac5e2c33967f562b01338c43f35da6dc33a4c2cc67ea6c3b32b155729360d3748ec28dcaa750f18449245b2e8a09 SHA512 66e9a437beb350fdc59512c17b8f72c5b5bfacf2b35070d810d77e66f49cf7929026cc28ad44b04a016d61e65d9fb4a10af6996ba09b604bf97e9c467d08f8ff
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
# Copyright 2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit kernel-build
|
||||
|
||||
MY_P=linux-${PV%.*}
|
||||
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 3 ))
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
CONFIG_VER=5.8.4
|
||||
CONFIG_HASH=d5f320566eb00901161a51fbd50b5ebbc51f47be
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="https://www.kernel.org/"
|
||||
SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
|
||||
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
|
||||
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
|
||||
amd64? (
|
||||
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
|
||||
IUSE="debug"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
arm64? ( savedconfig )"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/vanilla-kernel:${SLOT}
|
||||
!sys-kernel/vanilla-kernel-bin:${SLOT}"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/dwarves )"
|
||||
|
||||
pkg_pretend() {
|
||||
ewarn "Starting with 5.7.9, Distribution Kernels are switching from Arch"
|
||||
ewarn "Linux configs to Fedora. Please keep a backup kernel just in case."
|
||||
|
||||
kernel-install_pkg_pretend
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local PATCHES=(
|
||||
# meh, genpatches have no directory
|
||||
"${WORKDIR}"/*.patch
|
||||
)
|
||||
default
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm)
|
||||
return
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local config_tweaks=(
|
||||
# shove arch under the carpet!
|
||||
-e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":'
|
||||
# we do support x32
|
||||
-e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:'
|
||||
# disable signatures
|
||||
-e '/CONFIG_MODULE_SIG/d'
|
||||
-e '/CONFIG_SECURITY_LOCKDOWN/d'
|
||||
)
|
||||
use debug || config_tweaks+=(
|
||||
-e '/CONFIG_DEBUG_INFO/d'
|
||||
)
|
||||
sed -i "${config_tweaks[@]}" .config || die
|
||||
}
|
||||
Reference in New Issue
Block a user