summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-05-14 23:46:46 +0200
committerMichał Górny <mgorny@gentoo.org>2021-05-14 23:58:39 +0200
commitde08695e37b4cc88e9a34a34f8f9b06c1a7006a5 (patch)
treee99972bb7e109c0a6c0af51ff4ceca3619138231 /sys-kernel/gentoo-kernel-bin
parentsys-kernel/gentoo-kernel-bin: Bump to 5.4.119 (diff)
downloadgentoo-de08695e37b4cc88e9a34a34f8f9b06c1a7006a5.tar.gz
gentoo-de08695e37b4cc88e9a34a34f8f9b06c1a7006a5.tar.bz2
gentoo-de08695e37b4cc88e9a34a34f8f9b06c1a7006a5.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.10.37
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel/gentoo-kernel-bin')
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest4
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.37.ebuild117
2 files changed, 121 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index 5964d53f7012..8af508afc514 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -4,6 +4,8 @@ DIST genpatches-5.10-38.base.tar.xz 1136868 BLAKE2B ef49a1c931f52d3edc2c3a02143c
DIST genpatches-5.10-38.extras.tar.xz 1772 BLAKE2B 45c74393cea275509e93d37d13f9cb85a5863e6bd810fea2ed9e00f7056bdf5070c801cdbf7594e461a1f8a2e2a5f6c9451b9110c1dce296829164b9f4f1914c SHA512 d2fee843714eca319a7653ccad316df0488abaa3b48b27247a5b8c71057166a30b1e08a78f3f87db3603dd079a081eca4a049b835adc9ee6a231d2b97307c763
DIST genpatches-5.10-39.base.tar.xz 1213832 BLAKE2B 8fdae4f5c9665c8ec3f7fa4f202da702a76fb7cfdc2b73166577e8cf023e06bc79afa583c31b09ad5841b8e4f197971349be44fd26ed26e74d928bd7f4d06a7d SHA512 93235ea58cbbdf84b9c606c74c3aad1fc4844dab6a55861034069c286bfaeffbd44513d13d8802182428dcf74729b039e64bdfcfa6786aef54992c8e439a83c0
DIST genpatches-5.10-39.extras.tar.xz 1772 BLAKE2B 2551e576e899dfb659a5b0ef1851697462ffb9625882ee6d737abe1c41d0738ae25e94146bbd09de0f6d98b0f7754d0dc72d30367f94ab38d88bccbe60430b23 SHA512 c03e8ca3735c53af9fa84ff0148a02af5ff578a83198482bda8f2a67cf4ff501916a2dbf89b7d7bbfd3aa97b748eca56bf42e18c7394b980b52dd24f10875bdd
+DIST genpatches-5.10-40.base.tar.xz 1346696 BLAKE2B 1e7ccb8b9ecbaabe1c325428fe2a40488dc93c97da51ec50941ddc71443b1b8014928742007d240bd963c3e54a0b7b936c8dce12215b08af11ff8918f908befa SHA512 8c62a5127614eff1740177f9b463d231b45b8e864f80bdcaa2a0973cdaccaa1b2b6be3a97b2659da5a83cca6a0dba43c8638549766823793f8ca06dc2fba564b
+DIST genpatches-5.10-40.extras.tar.xz 1772 BLAKE2B 1695374f5c2951b763b9e2af67f47475c1de3b8038e5ff106cff4683e6430808490ea2ce19e4e8371c3d1b3e7433720bcbdbe8bbb7547a8002e06ab24ad9b908 SHA512 ee7eb2371e92a516b20ee984fcbeb20f67233d78eb74cbe4f6f8fdb856bdf7759b5a1b1beb6139a2125b157908bbc8eb538b4c7cf2a6011294cde296367201ec
DIST genpatches-5.11-22.base.tar.xz 684008 BLAKE2B bd081c8a40b4ebba531a93be0288e50ab526b5bb588ac3332757a3a20be15158557f31b6a0c82d616739192d73bd6507817cd403d04460ab955caddfb7ef764f SHA512 0a08fdf3f5f9e3ba8217d2e25820fb2da39a712eb919273465ad3500ba0c4359f0524b016e0d34c10d93bfc7acd20220c39f3aa71ba092f5ad328ff0c066229f
DIST genpatches-5.11-22.extras.tar.xz 1772 BLAKE2B d0cb5b3c5b27f9f7ad9049541d0e19f37198d29c1bc4cf2dc0f2644c7cb46638e6adac030ce033eae048ab10de4a9adf60c3791733fcc01b1e7e6e1bf63a027d SHA512 c91a0538702f83869c75140af61eda6b4e889007117549eacd0877007dd5136eae45aac72390418e1791101e8a4dc19440678b7912bb01677ba788c76239bc9c
DIST genpatches-5.11-23.base.tar.xz 780560 BLAKE2B 1a825e657879f0d6d6ec51c24ff52e844de9ed644f781057a7d901ae9e8a02f7b90ecee465f608502c0af510e58461b64a1f5125f5234272d6d79cd912fda828 SHA512 8c746072e5667ff35caf2bc44917a0016052cd8b8d67000f9a8ae666a75db4c42e2a5a8bbab8e7c6ec8cb85d0b71afc50aff7df88019ac3774f4b43527e6a88b
@@ -25,6 +27,8 @@ DIST gentoo-kernel-5.10.35-1.x86.xpak 57305784 BLAKE2B 2ec3a3bf99684986bea532600
DIST gentoo-kernel-5.10.36-1.amd64.xpak 65513919 BLAKE2B bf171d4535cb040bb8fc9ac6918836b56ea3ce39950a875ddc0b07748f1da7bb902a00691caa0a16725863e8a901b535077cf536c30c88e977763d1ba9c2d12e SHA512 fb2836557ac54fe77b343da97b00c4feb67770526185b13e7dbe5a61bc1b1504497707d5a6745bb034a71dfbde7ae0828c9584f0556bc878758dcd78dbf8a287
DIST gentoo-kernel-5.10.36-1.arm64.xpak 59285325 BLAKE2B a0e202bb94e60632c9330152c61cad8ecca619f75ae1503b9cc04aa579995c8380143a4b9a9a53a35c06bf0321b32d0328d903210fff5d91d9796cccddc8d6bb SHA512 6a642e21f87f9be6e414375c0606fedd09ee18826e17105de41bba9c4b845e1f7ad4b8f3e28e490b3912a12e916771d124b6670e305bcb3d524985d380c165d9
DIST gentoo-kernel-5.10.36-1.x86.xpak 57246018 BLAKE2B 990349168a8ee58f30392afbd7798196ccc245741c2ff2b59c976c0efd7b26d98b0b9339d59b67d2eb5d60ceb91bab1e3eaddd1e5162ec9e572e6c669665e461 SHA512 7e83c274e54a7646efcbcf1ad6074c1d21d969b020d9713d07bb861c21fb3c5d878511bafee9d62ad359f204464a9537d72f2029d7484319256a5d29cfbeecbf
+DIST gentoo-kernel-5.10.37-1.amd64.xpak 65507544 BLAKE2B 352874a4908597f0ca341c2ef2f2c392bf371feb7bd1ed740e32456b82b6358e923465f6ac1320acd3904b0969991c2d36a235a9e46922c931ee3853f783ea22 SHA512 f8ce7ad55404117c2d572e934e10cb017bb1a9d3b9ae52ab754fa4abf2a3037666696f48934098d4a70689a3488b79793b96f869e1af41cae8cdfc2bdbc4664b
+DIST gentoo-kernel-5.10.37-1.x86.xpak 57235922 BLAKE2B 7d5ae9c3159a6240dc95bbec78b502ea1fcadba932064ce194d36524beeb8c0b54303ac43c6a17167e6a14e782f063073683f8678ec90bf7616c3f2b13e22a48 SHA512 71958bfb241bf1235d5ac1f7d14cde0eda0423a96461f4026be5442b3583311208cd0ad2e76c57463431e88cdc498684b2a4e9f064e9844e1a7e37e777191ef5
DIST gentoo-kernel-5.11.19-1.amd64.xpak 65896925 BLAKE2B 7bad7ad368668bf79b5ac630b4e9bedfee4c81d7a27459fac002d5d4cb40496922f134bf41a2c479a184b64fbda0da6eb45e37724b1c6e29ebb56e3838b81052 SHA512 56c49da22f0a7c8870e7a57e2bdced8eba2b0295ffe7e3a5977b22e39fa43000077cccdad893643a0abb9a82aa9f57a32a8a47873839d549627cbba435b3010b
DIST gentoo-kernel-5.11.19-1.arm64.xpak 59764011 BLAKE2B 719a3282547c4980ae5b1980be86e4a0b7f881577aee11fec21dcd374b1b89303d0cd6f9528b373a48a61ce0d5bbc6304ca2302a038e81e1bccb34b6d3af2139 SHA512 8b526f37e6d444d43e0b39936b6fa6e644d986794333bb33381fcdb6d78d3e9343ba4353ad558955eee4ce15c777bc2c13224851254fa84868d8e16a29d0243e
DIST gentoo-kernel-5.11.19-1.x86.xpak 57672197 BLAKE2B 6df796e0b3ea63700742825665e4c5703290b00d2fc205b46e01a6da1609c4d44bb4e8a9c8c7631bfa85da76c93ea3eb01f16aa1614440bac55f466ba2f0e15f SHA512 a2106657d40dad990a7034c5fb0a13e2cd16025a88e3dcac861f5bd16f755e2268b1b8622c6be293fda457dfb5e20583db9f56d792d7fe679f3e7f2c65d6396d
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.37.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.37.ebuild
new file mode 100644
index 000000000000..6208453ad7c9
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.37.ebuild
@@ -0,0 +1,117 @@
+# Copyright 2020-2021 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##*.} + 3 ))
+BINPKG=${P/-bin/}-1
+
+DESCRIPTION="Pre-built Linux kernel with genpatches"
+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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz
+ https://dev.gentoo.org/~alicef/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
+ )
+ 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 ~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
+ ebegin "Unpacking ${BINPKG}.${ARCH}.xpak"
+ tar -x < <(xz -c -d --single-stream "${DISTDIR}/${BINPKG}.${ARCH}.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
+
+ # 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
+}