summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-04-22 08:04:40 +0200
committerMichał Górny <mgorny@gentoo.org>2020-04-22 18:02:35 +0200
commitc4024a5bb4dd32306b4e46bd7682fb2cda18d430 (patch)
tree76d839cbad21bb168f8214cc45922ac6b50ed075 /sys-kernel
parentsys-kernel/vanilla-kernel: Bump to 5.6.6 (diff)
downloadgentoo-c4024a5bb4dd32306b4e46bd7682fb2cda18d430.tar.gz
gentoo-c4024a5bb4dd32306b4e46bd7682fb2cda18d430.tar.bz2
gentoo-c4024a5bb4dd32306b4e46bd7682fb2cda18d430.zip
sys-kernel/gentoo-kernel: Bump to 5.6.6
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/gentoo-kernel/Manifest4
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-5.6.6.ebuild73
2 files changed, 77 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index 0cb178b29e03..18ee5540d7d6 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -18,6 +18,8 @@ DIST genpatches-5.6-7.base.tar.xz 39068 BLAKE2B 72665ab749b603ddff485eaa88316f82
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
DIST genpatches-5.6-8.extras.tar.xz 1752 BLAKE2B 7a8611f7c2e277cc67612b7aceb0f926f1c54b140625c65345417813a1a07571e43c861669862e921215fdb74e6b4a91f056e476e0d095c73ba8b1c9d82ee3e9 SHA512 2bd27ee643fcbe5f67265b2aff3388d551d4f1d7b37b9d2aacf4d4b0e23c699eb6c22d1cbd6189dc79aa0793c8e90ae702e8cb0682511b06649acc276af747f8
+DIST genpatches-5.6-9.base.tar.xz 140640 BLAKE2B 06dbe9bf9df8cacc03db6d9548d994aaad4282a8e523bf70338a49efb703a635b23676b247dd42d9b566d49d169dd8561e218ee0c0039787b0986374a3ea72a6 SHA512 d6099207cfb3ff2693a65ba8ec05f24c38a9830f55fcf8369ea5dd5c1cde3c047a2d717b43514745f475f91cdcde8f732da46809d5477593372448fd1ece0452
+DIST genpatches-5.6-9.extras.tar.xz 1756 BLAKE2B eb2ec83cd435634c0ee6b1d04d19ab1f6d82192831f42ca80396709d3a9bf8d427722377c95245df5743dd2dcdcefe73633faf01ff64ebd30c1a688eb483fc4a SHA512 9f33e9eb09d30dab64b7db8ae4fd6a8643e782878c70e069b41a5624305b3bcd56f1e21b408bb0ae9a1f9c697f97430f320a509daa7424717dd507116223ab24
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
@@ -28,6 +30,8 @@ DIST linux-5.5.6-arch1.i686.config 243301 BLAKE2B c5fdd9dc2a0baed1ea421faa8f254d
DIST linux-5.5.tar.xz 110713660 BLAKE2B 36b990d3650c409652206c319c93c0cf68885334050bc286b479c8b844bc47354547e19eebb58caafb026b96d134f39f0c7ce38b4eebe9da7ea6d1610a1e2af2 SHA512 fa74fdabb5e63384a39e54da05b86a9ae9ea16179524b041fbbdffc7177e80b53600ae98d76be127ba216148f9dc55fe07ab20637e22c6d6030cb4aa09eb2f86
DIST linux-5.6.3-arch1.amd64.config 246166 BLAKE2B 150977291d2e9f44bb58894ce8511fc507274b1e06d7fb88d623e649b30a99bbef878b46bbbc4f148fca7460b47ec930c421dc90cd67787658a2809465137f41 SHA512 6a9bfb99cbafad5dd1d7835b0e5b4571913a126b9d160c0516b8c15187a852c449d86360b414d8a249b9a43ec8e7ae8bc9365e3cbcda9c953fb5791949356280
DIST linux-5.6.3-arch1.i686.config 245339 BLAKE2B 537b5445869089f6e0ef8782dba018a1b2d15362df61eecd84401a51c6f79a1f47b2dc8b79c62b4966b3e08dcc21d4fbbc47f5ba81227110e041d2f3fc731197 SHA512 93d9e93b82d66e0ddac0785beec07440914c2e8bdc2f3a069595fa736832ba72c0ac5416aeb9b6af237f725300d99d434ca3c7db7d4178b212799b8b33bc39f2
+DIST linux-5.6.5-arch2.amd64.config 246155 BLAKE2B a30fa47b1384574076d5e3f02e1ea752ed3db5c4a6df2fcce6e81ec8b761a6d633fea1d275886b2b23ceb3b50f0e2324222ac96464fd4a19506caa57e4abbf34 SHA512 ff7b18d282d642c4dc5ccb12cf493b1889871078723d50dc7e08eb328c54030624cde673193bb75db701248661963741ffbf2c41261ccd4c2169175e6043cc49
+DIST linux-5.6.5-arch3.i686.config 245328 BLAKE2B 58f39c963aa4276360df1e61526bc3ac575f5d4a364ca888b4f82eb74c6f609d94236715860a47a824ecc4c4b52ef1e59ba048bc2ab3b9e9157a8393846413cd SHA512 3e9db780b3607d839c2bf5fbb18f150024c65782e79879ee4758ed89e914a7d4fd39c0014addea0bcff3c2082730bbd458c69bf4770ec7255135b18cebae3858
DIST linux-5.6.tar.xz 111785252 BLAKE2B 8dbe02a8ca7fd3dcf512a15c5d8098c1e7f94257e65173fed43fcc45480e4ab790df8cd39bbbb4e2a21dc9a00385bc9bbe98215a31e7f7e1d9c8f21cd8ace69e SHA512 80846fe2b4e4a7ff471d2dde28a8216ae807a3209f959e93d39ea4fc9a189ea28ec3db9d303b3fe15a28c2cb90e7446876678e93e23353c2d6f262e364a06bc9
DIST tinycorelinux-10.1-amd64.qcow2 16842752 BLAKE2B e013e76503c335739a9623c0901ca791937a0e6b177854535cadec1e2c2cd2df588283ed3128cf652595f32264fbfe5b3bd3a8c97665fd4da344e308535be366 SHA512 c3aeb20ff8769da9211694b7f701907cc7ae7582cdfad2c2fdc008d97ebcbd9dc08245b4e8f8450e1cb304bd705345a11fe79f901a47979fee91443841d55641
DIST tinycorelinux-10.1-x86.qcow2 14876672 BLAKE2B 3c760eb7438b13261e52ecfaa33a53649ced95f1ab40aae52134b8cdc31a16d7aa0d6a6dd716e268ed148e9d77a10b7c700b141b61d70c82d271ffe88e8e2a3c SHA512 9964538dc42f232a11949f74b61d46422ea5da3bdc253a217119bd0b8a750c40fd2da0b07157067be9ac0226472614f210a1248114df0d331df390979867a895
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.6.6.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.6.6.ebuild
new file mode 100644
index 000000000000..4ad4c8acf9a3
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.6.6.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
+}