summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-04-14 07:49:45 +0200
committerMichał Górny <mgorny@gentoo.org>2020-04-14 09:59:23 +0200
commit072ccfec05433f41c13c7c23ccd73d61ffd4b53c (patch)
treeaac0a372e3e5cc3688a5fbcd6ac5e1ef616e278a /sys-kernel
parentsys-kernel/vanilla-kernel: Bump to 5.5.17 (diff)
downloadgentoo-072ccfec05433f41c13c7c23ccd73d61ffd4b53c.tar.gz
gentoo-072ccfec05433f41c13c7c23ccd73d61ffd4b53c.tar.bz2
gentoo-072ccfec05433f41c13c7c23ccd73d61ffd4b53c.zip
sys-kernel/gentoo-kernel: Bump to 5.5.17
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.5.17.ebuild73
2 files changed, 75 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index bc42da959119..3ebebb7af88f 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -4,6 +4,8 @@ DIST genpatches-5.4-32.base.tar.xz 1184244 BLAKE2B 335fa30de35222c3f8bf14d9c2ee6
DIST genpatches-5.4-32.extras.tar.xz 1744 BLAKE2B bf702c213be8e247b5c2e5e25c1d010584e7f227e7bc94c366e770ad71df46c77948c6b9ef47d10cf3dfdecc6fa31f069b35478b750c341d92784d982c99bf21 SHA512 da797e1d8766f310e40e4def65f9dfc95409f3d776cb45a5f00bfab7eb97357e565da4d95df9b425490d77b6ae21939943d39441ad4b8dc33917bd62a0a7b1ef
DIST genpatches-5.5-18.base.tar.xz 663560 BLAKE2B 3b44112e2788825d1205f89ab2930d543c896661638972a2431cad55dae7fed16aa2f881ee5b640a8876de8c472790a2bce87c20fcfe8679dcdb3cb9cab9adcd SHA512 4ef5a6e7d15e63722f19ee06a6722318a57a293298dc1b5b6faab36130d12ad1612be9060b9a00775f4216c5a822b41222c8e6b3feb26976c38fa613e58fe52f
DIST genpatches-5.5-18.extras.tar.xz 1744 BLAKE2B b236b4a9dd3180e1b984febea0f2f16742dad42eeae3c97f927ca946d08013e06b465d71cd0bcfc91b02929d9c2dcfcd2801706b7495dd5acad4178515286ce8 SHA512 507cdbffd6d419b2ca1c6a65683e2e95723fcd2d71066c4579d44877808bd8eb829586229bd31faa27e1a721691e1b30f0c3dc084a5947ef0acdd136bf071a87
+DIST genpatches-5.5-19.base.tar.xz 677808 BLAKE2B 4de5b85677fa35c6340610ebd91f659253a297ad7ec065758d6f32d33eda294c8b683a0d2660c2bdc145ff751a48d59e4c36d7df330aedc000f41e57381b479b SHA512 d31f1123b493259f134cea8abdc8c25c2e83a696b0043109910ff296d581e5ff723114f6677a688f50ace99764556b559db5ad7df223ca90bfd693664c575850
+DIST genpatches-5.5-19.extras.tar.xz 1740 BLAKE2B 0e3c41a6f03140a067657d85435ec2a6b77cd5486bcab51d781d8310683b31e3ce8dcf389431d166db297e2e0dea719d78bb2ab57ec10b42f1e719386ecd5c40 SHA512 cdb60a030ee7ce4cbca9e58393de2b9de96e0294053e1d6ef62e16508758e879e4406ea1fbc01842d1cb499d524d7fd0a293f082240f0c4b2939e1fd267a4dab
DIST linux-5.4.15-arch1.amd64.config 241498 BLAKE2B 2ba5eab2455c909878c36c6084718331042d0f6ab42127868ffb1522f4b53de38879e5707328968e943d1fa44cc504626af52b733829e943532931b49a612834 SHA512 582577bfe4139a8f50c5881cd5a9f24dc3da3124e464756f9efc3d39894eac378483d052e1142730585e40a45641166d309b5e1b5e379f4a5ea2d5ebb2d3314b
DIST linux-5.4.15-arch1.i686.config 241195 BLAKE2B d3332b83a3d57c450bb1d5e85d83c71f3be730a15775b7e1d89cec2d72d28f1921987c63d95fe7bea6778efe0012ece6186449f07f6aca35ccf86805186c0f4c SHA512 187d88bdde7325d46b4bfee8d59ace88ab7dc377606b411e1249f9deee2b571ec42bac52c29d26d67bfadece2e77aad6d5e0255a95a84c200757cb05c69160a1
DIST linux-5.4.24.arch1.amd64.config 241418 BLAKE2B b24fbeb04cb63b5f0ec7ea935b21302aec92552f1a8108c204f8529803d5eb23dc6124529ca0f9fc394af051b0d3725698fb5df95d6af25274cb51146e3c052b SHA512 d180f3cea5c9c357d482d8533dec7e641b782f501c15f749a5a5347fe737fab93a43a95e12391fcbe3d93a90d673c91b890cb66d219a8f8247074d222959e9cd
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.5.17.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.5.17.ebuild
new file mode 100644
index 000000000000..46f0dc57842a
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.5.17.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##*.} + 2 ))
+# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux
+AMD64_CONFIG_VER=5.5.5-arch1
+AMD64_CONFIG_HASH=e4d4ca36741d228042185e2a9047cd88fb5b4169
+# https://git.archlinux32.org/packages/log/core/linux/config.i686
+I686_CONFIG_VER=5.5.6-arch1
+I686_CONFIG_HASH=7d53d8a42f68648bce5b002aaf8c2b14e6298275
+
+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
+}