summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-06-18 08:35:34 +0200
committerMichał Górny <mgorny@gentoo.org>2020-06-19 08:02:25 +0200
commite64c977153ba670ca240966f1f93db9372f72c88 (patch)
tree879246bed45280fbcd2499627f5a82b7090081fe /sys-kernel/gentoo-kernel
parentsys-kernel/vanilla-kernel: Bump to 5.4.47 (diff)
downloadgentoo-e64c977153ba670ca240966f1f93db9372f72c88.tar.gz
gentoo-e64c977153ba670ca240966f1f93db9372f72c88.tar.bz2
gentoo-e64c977153ba670ca240966f1f93db9372f72c88.zip
sys-kernel/gentoo-kernel: Bump to 5.4.47
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel/gentoo-kernel')
-rw-r--r--sys-kernel/gentoo-kernel/Manifest2
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-5.4.47.ebuild73
2 files changed, 75 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index 3e00cf275eb1..e655d0027665 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -14,6 +14,8 @@ DIST genpatches-5.4-45.base.tar.xz 1513092 BLAKE2B a727965734e146e93b04468d6dc62
DIST genpatches-5.4-45.extras.tar.xz 1764 BLAKE2B dcd5f69470511643fae8e6a6239dfd44c9553e1a361c35a57c7101bfb460cec366c26a19cc7a754594f443081c89294bfe5cde2b29d4687fe45faf433f2fa9ff SHA512 ad0e39cdb48083ce3aeaf080897063c95c2b79664f258b6b66c4ba28bc5333888ce9ed31786a0e6e324f56693de3130bfcb8e15aa97982dcc35e876178f52e2d
DIST genpatches-5.4-46.base.tar.xz 1524648 BLAKE2B f51069d6f459762242f172f5bdd3d0c8e68ac333c5cd3dbe81604c5c243be88718352ace650dd4eb31783645b5776e73b61a41bf624ade5fdea947e7e5800010 SHA512 c5ae845dc87f2efffd1674cb0cd6b0d0d8addb62a0e3689e1bd7ac62966b284f647f28c728db5c1a8790d34f6207d3e148e4af332d79f2e3d664942b825f2483
DIST genpatches-5.4-46.extras.tar.xz 1764 BLAKE2B 80470783d8e6f2fc3ef681e113bc51d8edb3093e0eaa5274412536b35fd23f486df5aaaf749bfc2f5cf6420c647fc96690718d78e10aea9b4bc0d0ee251fe84a SHA512 2c88f9edb3fe514676034b189bf239c7bffed9b4965b696099accf8b9c3d30c125e056772a6c327d2e4b00597d4c53901466fd15140f8815819bc3df5e3d47a4
+DIST genpatches-5.4-47.base.tar.xz 1555488 BLAKE2B 4662bd4c69d3c3f59c85620c2be6dcefdb31ebd76ecbd8e65f264fe6815c6f4619693329e9d2ae30aad7c4a2b7bd726be0bf3ba77bd35b489a964502feacbda7 SHA512 71a1dc9d9f3ad4ddcf323455ff0de17a8a7825d54edef4cda8c17809d213550f2cff2e7e181dd087a6cdaa96e038105a141273ed10fb5ea01d170352ee498a2f
+DIST genpatches-5.4-47.extras.tar.xz 1764 BLAKE2B e8e7f4b48c5b9d74f3a76d9dd07a9a549a96a402670207658e15e5f2c8f6f24f1e4f2f68ad8709f2d13d1b7931c421556eb2771b4854dce8d9fd579561f6d66b SHA512 d8b3daf929a7fbfb1623677f8295c70c7fb37c3a7cfe233cda909a39c429f62fd527400bda45e3956e937bbfdb607a2e155f1dc4942565d0b419e201c05d65ea
DIST genpatches-5.6-15.base.tar.xz 292284 BLAKE2B 0d80ef60c429516c2888e18704a4deaf6d293f5e60179b4dff080b1aff0088c69d5629a2bef1f57ccd90ca694460f3d57cfde7ed3274d30e982b506edf2bb5f6 SHA512 afb1c877d5317881deda321c87aae3138b147b45aeb4af5c1c377d87c142626904db59a5b26758a9f873bd8760c26e305487156438a553c9dda11f3ed1801875
DIST genpatches-5.6-15.extras.tar.xz 1756 BLAKE2B b28a36cb3ccbfb9b79757e1684535eb8283157accdfa357d47ee8a699a4837f75f4aa0dfedfbac3d9e402b36bb669d8623f37b0c8b9dc24d095457a0da40ffe0 SHA512 107ab66357f3ae9183488fdf0d963561e1b862dedc0863310d78e6607c380c8dce54d555e1190b6aa8b09c1222e6fd137947b489e84e91a3bf3f98fa7d85df20
DIST genpatches-5.6-16.base.tar.xz 305568 BLAKE2B 90609dd7eb9cda256927fbce372f24898098f933cccfb90d73f88ab0d6b4caca29b3f2e8d016eb344394e9828e5fd493f38b3b2c0f621fd08c99f54acff58fae SHA512 19b460551fe26dd7b7dcf929914710f0d7aa51bca384a5184518d97776e14d2ff40ae74e81c2d1f2c833e9a1b61cb513867b5243994dd54ed4aba62cb49291d3
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.47.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.47.ebuild
new file mode 100644
index 000000000000..1412b2980be3
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.47.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##*.}
+# 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 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
+}