diff options
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/Manifest | 6 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.205.ebuild | 135 |
2 files changed, 141 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index ed5257bae7ea..c6f5f2d29bac 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -14,6 +14,8 @@ DIST genpatches-5.4-208.base.tar.xz 4869104 BLAKE2B 3e9038248ddcfd22d67248e65199 DIST genpatches-5.4-208.extras.tar.xz 1812 BLAKE2B 3e5b8cae462a748eb36af66c4ebc393fc09882a1fa23cce6f82a078ea5598c23c2ecbe7029d6e2060735fe342b3a7bb5c235dcf16081bba0f05a6b88501af991 SHA512 b550dce1b6d090959eaacd523ee1be258fbf9db84309054c3cce9beb0bae710ff2e1c23f480310072fb08f7456bdf825b3ba76d57e999fc1597368df93e65677 DIST genpatches-5.4-209.base.tar.xz 4887256 BLAKE2B 56d7ea7975b228df055d1bd4cfc41b49890d815409a159772230c6e9d081061a9b438b525b5e8542eb03feb0bdfc1841e5bc5e14dd1570aff8f964862b192b00 SHA512 5ea69d50d836dad1f68f000c6c1f5bd8459dcbc4d50a4fbd4ba3241c4c87638850215c0207dfea6fe06cc596957e3cfa61a3dfc00f0b60513596da43d286615f DIST genpatches-5.4-209.extras.tar.xz 1812 BLAKE2B c1cb92a600e0827b133735f3c04a98e608f5dd0b69f53b3bd64ae03d8ff7b0189b0e00027ca073c4b80a77cc23f92ced5dc4bd4fd5912b538aa4ed3131d49b9a SHA512 8046b24112d6635f76cabb7d8e429d9859553440f80fd67152f051fddc6966ddc45e4a465ee946439c23b887282f5517ab12dc7f1862d5471d2815911a4ee2f5 +DIST genpatches-5.4-210.base.tar.xz 4896412 BLAKE2B cea81eeeab39b8f83386bf5c700f1237e1de2987294a0bfd3fd8b578bdfc384b587639a833a6f6085cc8e3840f71e2e56295c8c060f11d0fa6fa2381f4f7b59f SHA512 b045f3690cad21a61382d41bd5ca8037bd9ac4c83acb8da62317da1cf25aa0550598e366c74f89239f8d0042ec7cb6c76c3cea77e4b173c1cdf038213e2979dc +DIST genpatches-5.4-210.extras.tar.xz 1812 BLAKE2B 23abb8d1adc1ef226844f9d53611793396102dedf0d4472d4adfda32277ccb60c1e270ed3716d7e5a3f1e4d29c9a1c8a6999cfd6a19613c4953e0bd88b4b316c SHA512 a95429ccd7b7cec7f45cc1adeedd9ea90c33f4e32997d954b8f29a599f59c21914aabc3798ba66688e62215b5843213a5c08120431ff672588c9f79718cd4d4c DIST gentoo-kernel-5.10.128-1.amd64.xpak 65795239 BLAKE2B ccd03c20e469543532c3df43176ab3c1dd84919930586f3e90f2fcddd6fa6b8b19531ac9b94c7f67f55acaf052ae0b11814d93c4eeec7aedb2a13765165d6fa7 SHA512 cb38dacbbe923640bd0ac679a2430d890cf3609c066196c801b562ec55e59491c1549ddab48f00d2c1e4304310fd7d45108eeccea7bf3c2667712ca8545354d5 DIST gentoo-kernel-5.10.128-1.arm64.xpak 60993645 BLAKE2B ab40edf44057745e141504d4043d1702fbdf51d0278dfc3803800632e80e7278c347cdd3d325608e0e948b2de3e4ac0bafa824800ce486f360163e29bc0a3d4c SHA512 da31c3a1c5095f28c4824588aad43d6ccf219b1c249ce0665566f732e8920f052fe916609bfa4dd5cdf1271c601c0ab67f299068da38ca695a4b14757a6d401f DIST gentoo-kernel-5.10.128-1.ppc64le.xpak 56022338 BLAKE2B ac21918bdfdbd968899393e0a323808d0dd7705a7cac07057f76737c794160ea274f78acca2abe5244228f97343f08253c365bdefde74f2e7ca7ba6086e747d5 SHA512 05f3e3a6f20d1dff3fc8c1f12634e417261a55de47df189b3b9cc28ed7ce5f1673b19726d68dd00c1af4980c46769d029d83094efd98cd8865970f00b41d69c6 @@ -46,6 +48,10 @@ DIST gentoo-kernel-5.4.204-1.amd64.xpak 61580136 BLAKE2B 0ff31874ff35df3aa4eae56 DIST gentoo-kernel-5.4.204-1.arm64.xpak 57691500 BLAKE2B 0a3117a6eb7b52062ca33db77039b569df80564de861c8a6d3879b40a3763ee782bf2e4dcddec239fe576a503224cd30dafc44bd512eb1ac79cccfbe908c12f7 SHA512 1ab5b66f0930ec5cd41d61e359fba1fdd9d71b8e4f0a61b578a196dd36cbacb5621b5a710efdd359b4317cfad14072d5088132d87ef3b21d2111aaf439a00a22 DIST gentoo-kernel-5.4.204-1.ppc64le.xpak 55145574 BLAKE2B a3d2d691959143875c7b13e8a398af2f38417fd35c555137e649ae0ec622e6015dcb21d4b82b969b4b00aa1b452a9a6099180c500d706feed33fbcee2f5b3ca2 SHA512 a791b8f4036f54abe62397532f41f18edb2f4c3c85741e0dc2e165b0a5c8c4d3b723d685887cd435ca83b1ad4e8d526dd90062ab4e03d003049ed1930bc20985 DIST gentoo-kernel-5.4.204-1.x86.xpak 53305740 BLAKE2B ab5d481fd297c12a17e331bc15b87a42d2f0c38abebec5a53c530cf6258e5617a49b70c85775125613554cbba94a07bdb599868ea06f45c45731b2365fa14155 SHA512 a4300e3bd5e548297c97b73742be46882d0306a14b7b12784ce076b16373d1257e49551299c727ac09c4065dd64029374bd0f8e2a0da1b670ff04195832bb4b9 +DIST gentoo-kernel-5.4.205-1.amd64.xpak 61545551 BLAKE2B 7a5aa3012a12881465eb7b2b7d699fe9f958d091bc8ebf872f25d1d63402291717b8cfa201ac9b02a2d3cd6fc9e04f99d77509c59199e132d933d9865c5c5b58 SHA512 646cf2d14f8832aad0617f36f6800b92100222b0a1cdc809005de33d34c7f2bfc31544a58ca07894723dbd2df5c7736ecf52b3a7ed588dbab592cfb81290394c +DIST gentoo-kernel-5.4.205-1.arm64.xpak 57697680 BLAKE2B e21d4653791296aa37b613a473bafa9186f1e95de65949e61a63f83b9c450a16ef4636923a5a53e1bf0cd25460a1df70cd7f40f28e4203d7e48ca8632e7c5e1c SHA512 fb80e7b369d6d15f44915df78a1cd2aa9657b884365792b9f68c2a60a1b6c4b578845e5ccc431f6a29368fde2a680a1bccb2f754a475a005c547192a21f22450 +DIST gentoo-kernel-5.4.205-1.ppc64le.xpak 55161738 BLAKE2B c3260d8694efa53c219bdba3fe00f1004899d2cb8366e28ba1e24bf39b7088a4a1462893e6b57d5910696ae376b423de6cee2975e402a9092daf8d14671a59e7 SHA512 508ecb26c04aa0814183cf0670a91517466117064078a497227c49fc66edadec41b64e4e9c97753eb7e74b2693127eda879bda8cd486f1064b6a8a775883ed1a +DIST gentoo-kernel-5.4.205-1.x86.xpak 53299500 BLAKE2B 035669af08357c77feb0b90e3f674e01fb2655d9d4cdd9a8a2b5eea69c242b8ddb364ea08f80ae5eb8e595def0ab37acecd23d21fa9a113a6a809a3d8f9a182e SHA512 94916bfd8811879394fb58793f4bea9b9ec300146b45e94f5a5316449518ddf8583f1108c76019c1b8d290cef6b00b44c441d26191b9cd97ee50814b7a652c41 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.18.tar.xz 129790264 BLAKE2B e2745a69eb70169e90505a9318a3993046eab3020496eecde7d8352ecda0eb71a25b21becf7ce93fc593507dce7d1cd61b94ddcdf82b3094d79c0d3d48508eeb SHA512 dbbc9d1395898a498fa4947fceda1781344fa5d360240f753810daa4fa88e519833e2186c4e582a8f1836e6413e9e85f6563c7770523b704e8702d67622f98b5 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.205.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.205.ebuild new file mode 100644 index 000000000000..b6c3ce9ca64c --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.205.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 +} |