diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-01-10 07:42:55 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-01-10 15:54:16 +0100 |
commit | 8a4d711d44da421637edc0940f62ca5c2971ee16 (patch) | |
tree | 107bb4dcb9417c5b914415fd85e41de2d5b508ba /sys-kernel | |
parent | net-dialup/accel-ppp: Fix patch name (diff) | |
download | gentoo-8a4d711d44da421637edc0940f62ca5c2971ee16.tar.gz gentoo-8a4d711d44da421637edc0940f62ca5c2971ee16.tar.bz2 gentoo-8a4d711d44da421637edc0940f62ca5c2971ee16.zip |
sys-kernel/gentoo-kernel: New package
Dist-kernel version of gentoo-sources. Starting with 5.4.10.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/gentoo-kernel/Manifest | 7 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel/gentoo-kernel-5.4.10.ebuild | 79 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel/metadata.xml | 11 |
3 files changed, 97 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest new file mode 100644 index 000000000000..8b9f3b8fa0a4 --- /dev/null +++ b/sys-kernel/gentoo-kernel/Manifest @@ -0,0 +1,7 @@ +DIST genpatches-5.4-10.base.tar.xz 391596 BLAKE2B 8ee4da95c032e586bd72f7147f76e2423486a96dc69c8251e5913ffd9c22f31daf66a134f65bf11ed4feb7fd8e3c7cbb7ee93752dd5cff81787dffb87d294ccb SHA512 dff22f648a27c46fe5500186ad780d106a37bbd3bff37020947dd9e2661a0f24954347ca93f526a963ab4993bee4e0a14aad06870cce82479fc0987c621f0e50 +DIST genpatches-5.4-10.extras.tar.xz 1740 BLAKE2B 804259c95725a2366baf8254e518c11077efbf207612b58193748983e10a0e0270bcd2fa8270a7a7321f49a04112ed9688788c922fba77dced3cb704d2645d1c SHA512 abb1e10bf19fffeb66c93f6dc83333b8dcdef8a6b0d6c2b3f00e97cf42258de1c441ae1455750275bc4c311de9fd7b0905990bc842d837890738665341d75918 +DIST linux-5.4.3-arch1.i686.config 241295 BLAKE2B 795b6286bd1e7dc6aa5c1428e7bf08c204ce6c8cbee57863e9f64f8990790cc4398a7d062b54c89b1b80640f02a40fce028d9397725db0f968e8028b0611a20f SHA512 8c7387ded21c02b9cffee0e6d61a7040c44deae21764f743f7719f0d1c7adf684f6b62a501fe31709787ba741859e55fc3b8a3d3d27e52c09f2d8604212bf0a7 +DIST linux-5.4.7.arch1-1.amd64.config 241598 BLAKE2B 536cce5cc23cf20e71cba7468a125557f85d8ffc3cb194dced79bd489d39f2e4ed3960816d15d1491007d11b3af466e0a74267f983dfcc5f511f9f566f7e9821 SHA512 8658db603e180c75caf76972d85ecf8a4e9c9cf6e047b4f9fc7cba0fa426f434361528c1c29b5580f116cdd23091bf9afb6635d751f3b90c4e968d16db90eac1 +DIST linux-5.4.tar.xz 109441440 BLAKE2B 193bc4a3147e147d5529956164ec4912fad5d5c6fb07f909ff1056e57235834173194afc686993ccd785c1ff15804de0961b625f3008cca0e27493efc8f27b13 SHA512 9f60f77e8ab972b9438ac648bed17551c8491d6585a5e85f694b2eaa4c623fbc61eb18419b2656b6795eac5deec0edaa04547fc6723fbda52256bd7f3486898f +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.4.10.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.10.ebuild new file mode 100644 index 000000000000..788f632136a3 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.10.ebuild @@ -0,0 +1,79 @@ +# 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##*.} +AMD64_CONFIG_VER=5.4.7.arch1-1 +AMD64_CONFIG_HASH=ff79453bc0451a9083bdaa02c3901372d61a9982 +I686_CONFIG_VER=5.4.3-arch1 +I686_CONFIG_HASH=076a52d43a08c4b3a3eacd1f2f9a855fb3b62f42 + +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/genpatches/tarballs/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~mpagano/genpatches/tarballs/${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}" + +pkg_pretend() { + mount-boot_pkg_pretend + + ewarn "This is an experimental package. The built kernel and/or initramfs" + ewarn "may not work at all or fail with your bootloader configuration. Please" + ewarn "make sure to keep a backup kernel available before testing it." +} + +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 +} diff --git a/sys-kernel/gentoo-kernel/metadata.xml b/sys-kernel/gentoo-kernel/metadata.xml new file mode 100644 index 000000000000..b0b959adbe61 --- /dev/null +++ b/sys-kernel/gentoo-kernel/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>dist-kernel@gentoo.org</email> + <name>Distribution Kernel Project</name> + </maintainer> + <use> + <flag name='initramfs'>Build initramfs along with the kernel.</flag> + </use> +</pkgmetadata> |