commit:     a6c5a46a1dac19095ef637b7b1fb01f0f036b60c
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 25 18:30:23 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jun 26 10:10:47 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6c5a46a

sys-kernel/vanilla-kernel: Bump to 5.4.49

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 sys-kernel/vanilla-kernel/Manifest                 |  1 +
 .../vanilla-kernel/vanilla-kernel-5.4.49.ebuild    | 65 ++++++++++++++++++++++
 2 files changed, 66 insertions(+)

diff --git a/sys-kernel/vanilla-kernel/Manifest 
b/sys-kernel/vanilla-kernel/Manifest
index ab149a7d342..66f2cbb530d 100644
--- a/sys-kernel/vanilla-kernel/Manifest
+++ b/sys-kernel/vanilla-kernel/Manifest
@@ -4,6 +4,7 @@ DIST linux-5.4.40.tar.xz 109535980 BLAKE2B 
4857f032d5333f3c16f0947f51d6fe632527c
 DIST linux-5.4.46.tar.xz 109542096 BLAKE2B 
99c63fc28649fc7e75a18a8a6786ca81f46516979cae9dabfe604f3353ae8a145a1a2b7e6e2747af6ea7e11d52518e7ff4261ffce0cbbd7084318da56d429e2c
 SHA512 
780d515dfb7490f3d0ea8683d4a8f7da88c2d027c1d94a0c76507f0a9b2aa3a898401eec6684206dafd281a886062c2537b8ab1865ed08a576bb1cd6c9c75f7c
 DIST linux-5.4.47.tar.xz 109535968 BLAKE2B 
0c0226343b26d43a39c7188ead8c07b0e7bd4b5c237d5327f22b60462129914dd285d1205ff249be2a8820040a3f471530737a28103881b0b3e4e00fa7eb7b26
 SHA512 
58dfd71a49543582ef3ecd1406bb82348d21ac780a01a24a3270cc3564b94169f2838fe33309a0bb9de53b29bdf55bf676456b60bac110fa1b804f0a0446fe94
 DIST linux-5.4.48.tar.xz 109547096 BLAKE2B 
b4780040ea1e619ce84055332c23a53ec52add0030b0c089cfe642b382d76c2be1fd836256cef509ddbb0d3f9d57fbebab8e23268590937a9bb72cf1eafd7064
 SHA512 
9da99a8764941330b21bf575e513b06285a1331bae661c32a88ba12048fe8634b51ea6173e40053b884f388248e4afd6140a9eb90db65f48a67162591831b82e
+DIST linux-5.4.49.tar.xz 109559180 BLAKE2B 
1e4c3dcc0f9826c2cf6211afb4fd17778abf14d50f1bd0acfe4fb675eecce9d2bc6260417edec4b11365974088ffcf9e316a0a292811c4d74bf3041371932225
 SHA512 
6ef787b4aa312929c3e0060f606be63fc430923b6f292d8961884f3ec3f8a34b0099e19eadafa9b246a79ea12a0655586616ddf765928d7f446528dbf9a74f30
 DIST linux-5.6.18.tar.xz 111817124 BLAKE2B 
a8c01860ac9e55b33709c450fb663815205260b5e62cd2bed224a47ccf1e249d2b02515f945d2508b83f1f59727d9fed29937fe584d5cfe42c5d035c020f3407
 SHA512 
4cef44b489b51bc4f826aafb36d0b767fc33adeb471c69c088d5e5f8a779a580a6992bcc0769800ecf658e77434dd513ed436813cbffa39d3f98f24ea8fcf1f3
 DIST linux-5.6.19.tar.xz 111829024 BLAKE2B 
7c0afa0e3d322314992022272614973311a8dfb85de5e0710dd4c929b0abc0a2389b49938f7df4256ea5719bf2a56a7d6eed2eebb51c337fd5fb277747a6620a
 SHA512 
0b3c64ab4f63431c2da6786b4f85237f20c86f20a1faa79440d9cbc2aa6101118b0f18b6688ca7ad27dbcc4978d197fae52886fc23a3e2deb3c0a1d9c82c386b
 DIST linux-5.6.8-arch1.amd64.config 246166 BLAKE2B 
e749472cf4bcd1fae509bf524367106c07111f5d385b5cacf335fe03188c30c184e3535603de2b855f81538fa6fb09cedfec16ff02db5b5583a90e5cb150dba5
 SHA512 
873275e0ba75fb5670ac7f90abfb16ab912b1a94e5f8f39845283230763118d244c1b02e33f1b05b5d86fce90cd274c944725465dabf2dd0e79fa735fabe4d4f

diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.49.ebuild 
b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.49.ebuild
new file mode 100644
index 00000000000..cc5e365bda5
--- /dev/null
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.49.ebuild
@@ -0,0 +1,65 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit kernel-build
+
+MY_P=linux-${PV}
+# 
https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux
+AMD64_CONFIG_VER=5.4.15-arch1
+AMD64_CONFIG_HASH=dc8d69b59a7a529ec5aaeb6b32b16e59a3cc1569
+# https://git.archlinux32.org/packages/log/core/linux/config.i686
+I686_CONFIG_VER=5.4.15-arch1
+I686_CONFIG_HASH=1ad219bd3f0ab439a81ed01fec7660eeea7daa0e
+
+DESCRIPTION="Linux kernel built from vanilla upstream sources"
+HOMEPAGE="https://www.kernel.org/";
+SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 
1).x/${MY_P}.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-bin:${SLOT}"
+
+src_prepare() {
+       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
+}

Reply via email to