summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-04-24 07:24:31 +0200
committerMichał Górny <mgorny@gentoo.org>2020-04-24 11:03:10 +0200
commitab883b6b758fca9ec20049eb4de566c27eec1d61 (patch)
tree6dda134e13582a6d31e17feb12cd0d527227be6a /sys-kernel
parentsys-kernel/vanilla-kernel: Bump to 5.6.7 (diff)
downloadgentoo-ab883b6b758fca9ec20049eb4de566c27eec1d61.tar.gz
gentoo-ab883b6b758fca9ec20049eb4de566c27eec1d61.tar.bz2
gentoo-ab883b6b758fca9ec20049eb4de566c27eec1d61.zip
sys-kernel/gentoo-kernel: Bump to 5.6.7
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/gentoo-kernel/Manifest2
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-5.6.7.ebuild73
2 files changed, 75 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index 06ba39ff6ce0..c76c1ed48e28 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -16,6 +16,8 @@ DIST genpatches-5.5-20.base.tar.xz 750164 BLAKE2B e8469c3093f66567538585f9650a7a
DIST genpatches-5.5-20.extras.tar.xz 1744 BLAKE2B 4ca85454446b99cffcda2e738789de908acb09bf0195066c79cd03ac466b32d532f6d21fc50b744c0feb935591c0180512319af2e89c10a8bf7f30400f91c489 SHA512 c4f12364b694278130eb5172446b29d94f5216ab8ead2d7ad18ab44329dcee585a67fba3c0f9ed0059474db178186fc00c75703637340d27e99265dfd6f4abc2
DIST genpatches-5.5-21.base.tar.xz 767444 BLAKE2B 812732ed230a0605a40bd0a0d80bb64cf3582e0bcb94cb26e53aee7a69c0e66b200db8787abec14466287d9f9bfaa6f71d15d0cae56c5c820070833aa1996d81 SHA512 ed48a01f132d1dabc2bf2fe6b29156d1303cafdc53bcd843924f4ce14f6e0e35fc4d930b055b37a24365a6a31b36034d79f25112e1bd8526a6e0922e66dfc561
DIST genpatches-5.5-21.extras.tar.xz 1756 BLAKE2B f277d12cbb65f109e49d96a47ba0a8429b2a791872b16548656db9f4275259fc774169a75f310edb7392b0c548b1ea7559eaa841376cb6a7c507cce31385cc37 SHA512 ce1c4b6ac121ecb6bbe1c738abd9ce967e4875654eb5aeb373f59e116c4b29fc2fb3f8383db6d093005ba85be1a36d1023780a35f27bf2e1c3bfaad15abdc084
+DIST genpatches-5.6-10.base.tar.xz 191312 BLAKE2B 71aa053ae13888a5b453da03f4942357ad60226505a43e0308c28ec865b605f16179ceba117034949d448345029442796dd0889f89d7d42d86948b53f82a404b SHA512 10aba07f2978ebd7dd4e0b35aa3c8a458359fa823cf6a050e6c61f5dd19f94d4e67a52c720af6dd46068a0654deab5dbdbc5f4d557ea31bb7163267b404c0990
+DIST genpatches-5.6-10.extras.tar.xz 1756 BLAKE2B f4c70bc80dc569b3c943cf4e136fc4cd88a74621f4b25c760659eca1178cb059d595103702c23a078e39ad82b0803691cfc74f7e74d2d941834c5a74b446ffcb SHA512 1f3c06736b91be3018301040632891b06b8d9bec2e6b05e6747a3d93da6004ca01acc1cd9c4ffb2a668940f7e13185a639a6d2b0111e89a3abe62e6944de2a39
DIST genpatches-5.6-7.base.tar.xz 39068 BLAKE2B 72665ab749b603ddff485eaa88316f820a96ffa663297c3890a1418e3bf1db19c5030c43ee2d2c5154aaf5caac246866745eadc842293a73e3d87ec748740ae2 SHA512 b8b8cbe3d79b141af6fab0b9052b71fc64d89eec593f184ebb3f57409434a38de529432c053d2e7f6307bcc60a01254f1d4f1cd8c52ba7bbf522575afe7059f0
DIST genpatches-5.6-7.extras.tar.xz 1744 BLAKE2B c30863a8e9f6ad56887e9e93c5d40cc27106dfb0e06edecda8bbc7b4568c83747e2f0dfefabc6d192b86cdc077732561ebb0cd7cc13f662148fa2bd8eebd7684 SHA512 9a2b410a47a00872df9b1f0adf5e1e95489ddf1c741eeffdf9e343be505a91da421319230797c9fc2efb1c95f635696a98ac60cfa1d589d505ccf1d863332760
DIST genpatches-5.6-8.base.tar.xz 120624 BLAKE2B 51c10c70351c8208d1d8e1f1f7604ff0b9356894dfe4ed97e55cee3dec7fe38d7ab1db5f03986fc1e1dc0b00c977907a875cd1eb46b78ab692bea214ac04575a SHA512 b735712ca16fbe04e16fcd7bf81f854a5d977a6ad510c61fb9e60d0d4c72a5a8c64125af286a93b388b1df3cb3aeaf2adfd37cd078acefc1d62f926b5838c0c3
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.6.7.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.6.7.ebuild
new file mode 100644
index 000000000000..4ad4c8acf9a3
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.6.7.ebuild
@@ -0,0 +1,73 @@
+# 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://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux
+AMD64_CONFIG_VER=5.6.5-arch2
+AMD64_CONFIG_HASH=fdf9d6f7ce59ea8e64911c1a1e7992026b57f552
+# https://git.archlinux32.org/packages/log/core/linux/config.i686
+I686_CONFIG_VER=5.6.5-arch3
+I686_CONFIG_HASH=e36c1ea7991eca34f6d80d325da9413a4827eabf
+
+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://git.archlinux.org/svntogit/packages.git/plain/trunk/config?h=packages/linux&id=${AMD64_CONFIG_HASH}
+ -> linux-${AMD64_CONFIG_VER}.amd64.config
+ )
+ x86? (
+ https://git.archlinux32.org/packages/plain/core/linux/config.i686?id=${I686_CONFIG_HASH}
+ -> linux-${I686_CONFIG_VER}.i686.config
+ )"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ !sys-kernel/vanilla-kernel:${SLOT}
+ !sys-kernel/vanilla-kernel-bin:${SLOT}"
+
+src_prepare() {
+ local PATCHES=(
+ # meh, genpatches have no directory
+ "${WORKDIR}"/*.patch
+ )
+ default
+
+ # prepare the default config
+ case ${ARCH} in
+ amd64)
+ cp "${DISTDIR}"/linux-${AMD64_CONFIG_VER}.amd64.config .config || die
+ ;;
+ x86)
+ cp "${DISTDIR}"/linux-${I686_CONFIG_VER}.i686.config .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'
+ # disable compression to allow stripping
+ -e '/CONFIG_MODULE_COMPRESS/d'
+ # disable gcc plugins to unbreak distcc
+ -e '/CONFIG_GCC_PLUGIN_STRUCTLEAK/d'
+ )
+ sed -i "${config_tweaks[@]}" .config || die
+}