summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-05-04 08:02:18 +0200
committerMichał Górny <mgorny@gentoo.org>2020-05-04 15:58:59 +0200
commitc2eb2d3ac253488d92af486161e4630bb0cb140f (patch)
tree2bae87416cdc474d8df0802264ee3933be4ec227 /sys-kernel
parentsys-kernel/vanilla-kernel: Bump to 5.6.10 (diff)
downloadgentoo-c2eb2d3ac253488d92af486161e4630bb0cb140f.tar.gz
gentoo-c2eb2d3ac253488d92af486161e4630bb0cb140f.tar.bz2
gentoo-c2eb2d3ac253488d92af486161e4630bb0cb140f.zip
sys-kernel/gentoo-kernel: Bump to 5.6.10
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.10.ebuild73
2 files changed, 77 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index 109fa78b5c78..35db33d4e90e 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -10,6 +10,8 @@ DIST genpatches-5.5-21.base.tar.xz 767444 BLAKE2B 812732ed230a0605a40bd0a0d80bb6
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-13.base.tar.xz 273740 BLAKE2B 7b314a9df316f4a05f1eb677ae78b0969d65edcbdc9669cd668e9f81b7fbfe498568b0fcdd51a23904f9e7c5390dff7e47d7c57d343698405562aa183dca17fe SHA512 e052eb8af814de249440b60c5ff36e1f86da7393de8c2386847604ca65d944ae7cccdab2bc99e4052c74e876b98f61b6402dc6c84e293cb873c8c35060ad7326
+DIST genpatches-5.6-13.extras.tar.xz 1756 BLAKE2B 5ea8930fdd8b27d07d053efeff5427719ba1ddfc6b583803a06bbaada3373efb4cc64e8ca8e5450a68908b828ca9b72c42cde43a49f2c4e0a3f1b7146372c744 SHA512 9d2859ac64e14120d557548918bfcd97b967641ec7e7f1f466197e7e4cc32eef874e0e179eb021accceaf842e990376c54bd2cb6b60942b35b2b102c47fb8c5e
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
@@ -20,6 +22,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.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.8-arch1.amd64.config 246166 BLAKE2B e749472cf4bcd1fae509bf524367106c07111f5d385b5cacf335fe03188c30c184e3535603de2b855f81538fa6fb09cedfec16ff02db5b5583a90e5cb150dba5 SHA512 873275e0ba75fb5670ac7f90abfb16ab912b1a94e5f8f39845283230763118d244c1b02e33f1b05b5d86fce90cd274c944725465dabf2dd0e79fa735fabe4d4f
+DIST linux-5.6.8-arch1.i686.config 245339 BLAKE2B 746b39cc8d8d880eadd3a04eaed7fa978ec73a412428fbd99e7e3543ac722a86a004b5fc31b4a307e8f4bb706224e032f22681dad8dea0340652cb4aade0d65b SHA512 a97487a842344e8dbda758b602c2b2095641d3e504c866e12afefa6744cbea39fe0d23900b0749cf4896160baf2bcde5a77a9614b23132665f1c7e3a580c7ca6
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.10.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.6.10.ebuild
new file mode 100644
index 000000000000..5014d5381428
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.6.10.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.8-arch1
+AMD64_CONFIG_HASH=7dcb86e3e6f24c6d5462c5c8d25c3fa09e7e9f55
+# https://git.archlinux32.org/packages/log/core/linux/config.i686
+I686_CONFIG_VER=5.6.8-arch1
+I686_CONFIG_HASH=bc42cce2cca0d42b5cfeb8c6bcbf9f39430791f2
+
+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
+}