summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-09-05 19:30:46 +0200
committerMichał Górny <mgorny@gentoo.org>2022-09-05 19:43:34 +0200
commit53fb85661b716d3217ee28c2610ff1948963ea15 (patch)
treea1725bff3b1acc6761c8902eace23a2017afa044 /sys-kernel
parentxfce-base/libxfce4ui: Bump to 4.17.7 (diff)
downloadgentoo-53fb85661b716d3217ee28c2610ff1948963ea15.tar.gz
gentoo-53fb85661b716d3217ee28c2610ff1948963ea15.tar.bz2
gentoo-53fb85661b716d3217ee28c2610ff1948963ea15.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.4.212
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest6
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.212.ebuild135
2 files changed, 141 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index c8f8e7798af1..52ad5972be2d 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -10,6 +10,8 @@ DIST genpatches-5.19-8.base.tar.xz 643396 BLAKE2B c383c7efc908fa3e8ebdfb750d92df
DIST genpatches-5.19-8.extras.tar.xz 3808 BLAKE2B 8cad0dd5deaca8f8b379c96cfad02add0cfe7498f17e84d11e6b809e366ae0476734bd003b287456459febe2ff4c1fa7b3e54c47243cd571a34ffb1cd927a1ea SHA512 a183d09ba7b1fc3f89b7754709df8d093ba70b09f71e237844214d65bc5821b6328c436c7ef697c30bfd38fc833bd178497190a2e73914a03ec0dfa4cbcdf7f2
DIST genpatches-5.4-216.base.tar.xz 5015752 BLAKE2B fd736588b9cbf9ba0a48ad838a17eda669e56d9d0ec4dd903f5bcd31ffa2c428d14ebc7bc35a709b3da7bf7f22403c5b01a9314dda60ef955d7674af836e2481 SHA512 62cd9deb29f863babbc9dc5116e5c5bcb34c0f29325276da80fc9b040004ba9fcfcde380779bf8ea8039f3098da88c59e7fdcd2d0f6d6aa5034df59ac9b55914
DIST genpatches-5.4-216.extras.tar.xz 1812 BLAKE2B 7dfc1025fc395883debc819c3fd5840c423d8b3f1973104906545086d35a966551fec967da9ec976257e231c4270c7b091e7641353f89c254c974b848607e5fa SHA512 aaa70a72cfe0989f5ebf2e3f57cf55c6faec4e2c605fef7ecfd425c47574765fc0a2ad5a7b9fcfe33dd70060b52d4dcd44d2849fa0fe203612c0ebacd2b171a6
+DIST genpatches-5.4-217.base.tar.xz 5035852 BLAKE2B 45b15e86b35e7f669a4f009261f0f2c0b174579850f8b99be07e60ab7561a1f35ecc48be927621f31a9f97ecf08256af784650b0991aac7d35fe7fcc8ff19afe SHA512 c8f898cb5178e67bda970c273ac1e18a37f8dedc1e813fe8429546eb83ac808ef40e008935c726924557e9669888a9571a162d75965d6c8b11d052ed1c66d482
+DIST genpatches-5.4-217.extras.tar.xz 1812 BLAKE2B 5d8cdb3ee45a1180bc94540338f3dafc08da96a849e818ee54be9cfeea59e5fdca2946cebcf2211c256978242d337671398cbaba38581f5d66e7c0f1f692fecb SHA512 55b4465034fbfbefcb0e22e782dbf7f7e3c9d74975cbe737fb0e2c57ed116d84857970074507dd449d55e8b8eb61e4dde725f5fa9e24c6dbbf83c57570007b33
DIST gentoo-kernel-5.10.138-1.amd64.xpak 67522997 BLAKE2B 16679700f076e28ace346487f411c653cab4e11b391a32982b8165239121430335acfeb089f40a16261999ab36147fe259025edd063935ae9c036d38130e705a SHA512 3f967bbb188cb178301d22573e73a9791d569caf5f5452a518ab639d83dca5e8992eabf2756513aa92075b70992c7de92b0de773dc674f26387b57160d386b38
DIST gentoo-kernel-5.10.138-1.arm64.xpak 60960935 BLAKE2B f194c6e204b9efb8bf882681aed20519d3cef06dd91fc24d805fffa00e8508d0f39f244b10b896bf153a00b885e518fe766654f8d450ccd4f6d6715fcc12b210 SHA512 49dc2766fd8dbf7d77d93321e1ecffdae6217f95b7ba780de961fbb11030c16060e3a611cf85f7266e92b6bef7a55c96d22bc4460f2c441afa29809615311a35
DIST gentoo-kernel-5.10.138-1.ppc64le.xpak 56016873 BLAKE2B ccb39d42bbb9aab883ee9ed5c318d4ea1770ff969028a2e18b99bab07521309beff55c30b36eb189dcdc4259a5d8b9e083b37018481f501bef781ca0b080a818 SHA512 e148844d86e8a9bf9158c39067620226dfc5727acf7c8f21d7cd85b7c3b2123ec4d6ff727ce2c2890ef400b0b2fce0aedcb2dbe0b6fa5b140d6e2959a10a29ba
@@ -34,6 +36,10 @@ DIST gentoo-kernel-5.4.211-1.amd64.xpak 61552101 BLAKE2B 155a613cd985a819a8c62ed
DIST gentoo-kernel-5.4.211-1.arm64.xpak 57941206 BLAKE2B 2ab52e0a114fa683d9ae6c0cac7d196e409cf00b61ccab1e7abf8ed0ff274d4514c03d0162bef4a79b1f9ceee5b51e647ded4be3d006f55111ba56020ade0f9c SHA512 d4c1439f8ed418aa4b073e9c9ae0d8b0972fd652244e489d6fa9b222b8736bd4ce110f0f7fa1182c3b658a07fcc1cfb5523b27dd13f3f7e7a33a164c5765118a
DIST gentoo-kernel-5.4.211-1.ppc64le.xpak 55270077 BLAKE2B b322db72bcb47b2a3095290e4be922b11723256150eb6882beb19a64b1b47a5fa8dd033da887964411f8e5481e573f7d00842a0bf959f455a6b36ef3f56610f9 SHA512 900ebac4442e3c92e09d33818d00e9869ebe821185a757f62a030eb3822190b91c2f1f672e66192635ae2bab18505ec5860f400db08c5f14c3d916f929a2de71
DIST gentoo-kernel-5.4.211-1.x86.xpak 53322109 BLAKE2B 4927986f3107fa2ee714028a354542ee52a19037889fe7c475c4f086e46fee61794a4b01cfad297533afbb1276d881dd7ea84764f9875301d3579af08978edf9 SHA512 caa4a5456f26490f5029b7c2ca4afdfbacdc0919ee285b13dbe2abf7ece3372a4093ce3651d1e9b1d63b7aa35a18d13231dc177f0230816f2bfa3f24df8000d9
+DIST gentoo-kernel-5.4.212-1.amd64.xpak 61563567 BLAKE2B 40256b6cf9e5fcb5eb47cc288e591d72a7e83782f572ef45df3a1f540e035f88f217853e8517a2b5a4e95f895298817ca9206dc115c6f3a9877e31f16e456021 SHA512 1cce53c4521d7c543132c7d3c3fc264de90fcfd74b44c701c74f6829f818aa6c0e0db34ce6a096d9e707916da7fd4785a47879ba0f23e6618e7a5da30bf9d7f8
+DIST gentoo-kernel-5.4.212-1.arm64.xpak 57951450 BLAKE2B aa70739485b180cccd07459035fcadde0231e35eddbe047adba8320d8aed1aa8c76f8a6966cda2bbd2d59874a47e79bfd34d28e83db0678c30ac5815f54e9e51 SHA512 2f052552925ae58e6ebb0ba12cf421454c9bb5022e8b21aece343ba124873e1aeb81e02248dab57d9c5f959c672c81df21a5a41007d0c71cf94afd30a76e5388
+DIST gentoo-kernel-5.4.212-1.ppc64le.xpak 55173525 BLAKE2B 400db8d4bc7ee75af18744a8659292e220b94439136a3652061966ba07222af23c631bd7f6e138a8eec1855cd603fad1ce6b0827716fbaf914a8e60d10c5712f SHA512 0aaa4caa3dcd5999af5b22211ffdbe3f3dfdf2485788507d6a11179c71bbd7fc6d1f150f4e25ff240f735c46227bed513cbbf74c17bf6ec962eb2f382ef3fca2
+DIST gentoo-kernel-5.4.212-1.x86.xpak 53385866 BLAKE2B 481bd43cdd5d186adabced6caa356bba08d928f5620bfab96261d04c1e669fec3a7a3b9fb0564d9257c876b254567dd329a0976ecd29f61767c4e3f1b749a976 SHA512 0f66b827d7cf3a9063d731779d42ca496360328f1f787291874f5710d72473beac09973112d677ffbfc4d87b8ef81a1f9fdf25e693fe3fd0cf23d110da09c665
DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e
DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a
DIST linux-5.19.tar.xz 131581464 BLAKE2B 4db03a6830a3b3bbf0837e1912182a443d9a4aa8af20a12e6ec814ed708038452d3c0ccee1258cca671c464d76461536363a8adc56e9d098c9a44ae3484a297a SHA512 00313b2f9b82d2dc3fb8294007cf7d7599d254b717ed2de23c81fa7a1bbcbc2798ad286cb94e2f7f5bd54132d1d764facd90d30f79dbcc6616cc7f926adc2623
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.212.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.212.ebuild
new file mode 100644
index 000000000000..b6c3ce9ca64c
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.212.ebuild
@@ -0,0 +1,135 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit kernel-install toolchain-funcs
+
+MY_P=linux-${PV%.*}
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 5 ))
+BINPKG=${P/-bin/}-1
+
+DESCRIPTION="Pre-built Linux kernel 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://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak
+ -> ${BINPKG}.amd64.xpak
+ )
+ arm64? (
+ https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak
+ -> ${BINPKG}.arm64.xpak
+ )
+ ppc64? (
+ https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak
+ -> ${BINPKG}.ppc64le.xpak
+ )
+ x86? (
+ https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak
+ -> ${BINPKG}.x86.xpak
+ )
+"
+S=${WORKDIR}
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+
+RDEPEND="
+ !sys-kernel/gentoo-kernel:${SLOT}
+"
+PDEPEND="
+ >=virtual/dist-kernel-${PV}
+"
+BDEPEND="
+ sys-devel/bc
+ sys-devel/flex
+ virtual/libelf
+ virtual/yacc
+"
+
+QA_PREBUILT='*'
+
+KV_LOCALVERSION='-gentoo-dist'
+KPV=${PV}${KV_LOCALVERSION}
+
+src_unpack() {
+ default
+ # ARCH=ppc64, but tarball is ppc64le. Update if we ever introduce ppc64be binpkg.
+ ebegin "Unpacking ${BINPKG}.${ARCH/%ppc64/ppc64le}.xpak"
+ tar -x < <(xz -c -d --single-stream "${DISTDIR}/${BINPKG}.${ARCH/%ppc64/ppc64le}.xpak")
+ eend ${?} || die "Unpacking ${BINPKG} failed"
+}
+
+src_prepare() {
+ local PATCHES=(
+ # meh, genpatches have no directory
+ "${WORKDIR}"/*.patch
+ )
+ cd "${MY_P}" || die
+ default
+}
+
+src_configure() {
+ # force ld.bfd if we can find it easily
+ local LD="$(tc-getLD)"
+ if type -P "${LD}.bfd" &>/dev/null; then
+ LD+=.bfd
+ fi
+
+ tc-export_build_env
+ local makeargs=(
+ V=1
+
+ HOSTCC="$(tc-getBUILD_CC)"
+ HOSTCXX="$(tc-getBUILD_CXX)"
+ HOSTCFLAGS="${BUILD_CFLAGS}"
+ HOSTLDFLAGS="${BUILD_LDFLAGS}"
+
+ CROSS_COMPILE=${CHOST}-
+ AS="$(tc-getAS)"
+ CC="$(tc-getCC)"
+ LD="${LD}"
+ AR="$(tc-getAR)"
+ NM="$(tc-getNM)"
+ STRIP=":"
+ OBJCOPY="$(tc-getOBJCOPY)"
+ OBJDUMP="$(tc-getOBJDUMP)"
+
+ # we need to pass it to override colliding Gentoo envvar
+ ARCH="$(tc-arch-kernel)"
+
+ O="${WORKDIR}"/modprep
+ )
+
+ mkdir modprep || die
+ cp "usr/src/linux-${KPV}/.config" modprep/ || die
+ emake -C "${MY_P}" "${makeargs[@]}" modules_prepare
+}
+
+src_test() {
+ kernel-install_test "${KPV}" \
+ "${WORKDIR}/usr/src/linux-${KPV}/$(dist-kernel_get_image_path)" \
+ "lib/modules/${KPV}"
+}
+
+src_install() {
+ mv lib usr "${ED}"/ || die
+
+ # FIXME: requires proper mount-boot
+ if [[ -d boot/dtbs ]]; then
+ mv boot "${ED}"/ || die
+ fi
+
+ # strip out-of-source build stuffs from modprep
+ # and then copy built files
+ find modprep -type f '(' \
+ -name Makefile -o \
+ -name '*.[ao]' -o \
+ '(' -name '.*' -a -not -name '.config' ')' \
+ ')' -delete || die
+ rm modprep/source || die
+ cp -p -R modprep/. "${ED}/usr/src/linux-${KPV}"/ || die
+}