diff options
Diffstat (limited to 'sys-kernel/gentoo-kernel-bin')
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/Manifest | 7 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.152.ebuild | 127 |
2 files changed, 134 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index fd7e526c2490..b96d2d525a65 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -2,6 +2,8 @@ DIST genpatches-5.10-159.base.tar.xz 4292244 BLAKE2B f2afd1af247c7c7833787f4fcba DIST genpatches-5.10-159.extras.tar.xz 3868 BLAKE2B 2cd0fc67c5b6f89303e3dcf5492b944eb048623c3ee865521933793af8cc2837d841e5f740035b1ad46a5b2f805f6fa8f1004f824ee3967c545c417e7c3b2513 SHA512 3b5b76c7220c1068ee2d29c48635655af4a227f542a870c3c140f7eea256f3d3e2c3df160c6bf193e595f150c2b51f66818c646af1ba679f94ec0c4086fe8b27 DIST genpatches-5.10-160.base.tar.xz 4292896 BLAKE2B 23f6fc8d45f13b190f6fcf4532c266550dd186d48b67d8d48b839f683d453394b29c8898abbe730699c52385e28815d9353fec8c2efd8fdccb25d4102f5c2f3d SHA512 0f5ad6a3fad45ffc8ec01d43f02caf872d819e7f5e744207b2f6bebab3ec356e83e5208ac08ef23065ace4a67295621d2a5aa74b1c720f1643311b2819ecce08 DIST genpatches-5.10-160.extras.tar.xz 3872 BLAKE2B 4168fd4f59232f91d3f50faff5bdff7da05e6b0decbfe5fa8b0cf7ac21a083eaec162d0be6422667a2e895b0005ea526ff134a4a353f035b442687716033178c SHA512 2876f3dcaee91cd20d5f41f77e0f375c3548b9d0a988ded464c9a39ca53f3b0ab7eb1f9cbe75b6397106fc48a869131724814cd7d01261d5f511dc3e6c00a3e5 +DIST genpatches-5.10-161.base.tar.xz 4314064 BLAKE2B 1f083e3d49ab20680612144efb9bd5202146c7790b572710417df25ce6825f3126e08efc404c3c83d8af5912478da44516112319804a59aed27aaa363c4567f6 SHA512 a18ac16bcc00b19b3803ad731f10a69af2d50f8dedab85e021dd77221840caff81c1c0ed8565b4f0f4ae283eaaf7b2239c12493798cfd7d8ac34dbf245c75bc0 +DIST genpatches-5.10-161.extras.tar.xz 3868 BLAKE2B 4bee960a0372d930fd91c93ef6e25467e814fab8afdcfdb19a5e31b0b900b9189322efa84fa02483a1db2f25477a2b1a3cd2e5ccee50a4db1e068f6a4ceac11a SHA512 fa2eb3d7914620282810ffc65a2ba9287c19c5819e67969d0800e7ebc9e67e9b2b8fc239c913b9b38f28f2ac55fcfb158949b55219f709abbe1b76194a22864a DIST genpatches-5.15-79.base.tar.xz 3195612 BLAKE2B bf8edc209ecc99da4f4c05b575b095992e64ca421e9848a75ef1ff7bca84377eec93ac3bc7d23bfd4c91d529cbf1693e231b606b27ba2ead46e9c3037db10c21 SHA512 c8cdadb66f904f2083f713a58bce743e56e27440f01fe98b3ddf82aaa43401c2fabad029060e7c01590dc294edcdfa8ec6c784f24ca87a1b9fa8703ed626e4f3 DIST genpatches-5.15-79.extras.tar.xz 3932 BLAKE2B df50c7ce655f1f81d46ab6f077963afb0997ed2f6c0b70aa49c34a445d3f8938cce7201b75221705fe27c0a6f699dc553f932eeee7960a21dd89e3c55dde9306 SHA512 31e8c8aeb98e01dd1e0b25c51cfe48d5b6bc98617833229b283d35da6d7572b95dd8141592a2350ff01554bf80d918d2137ef2eb248c483ab22fc3db20a11fe3 DIST genpatches-5.15-80.base.tar.xz 3218432 BLAKE2B f2478969a4e7a24bd7a30328e2d17d5daafa9fbd741dd7eb295c025f27c08ccf8efbde13003e084c509a8bcf5f1d28f45189a28467b31c48c2a4d344a726ec4f SHA512 60737de4d0f8e3acc02ed07a82853d9226daf54b3b5a1b990d94e78b3dcd9fae26b9e6cf8854e5074b88dd826d286440155b70c4fc19f271ce795b2bbcc61b1a @@ -24,6 +26,10 @@ DIST gentoo-kernel-5.10.151-1.amd64.gpkg.tar 66478080 BLAKE2B de66ec7f8f6c301bf4 DIST gentoo-kernel-5.10.151-1.arm64.gpkg.tar 59648000 BLAKE2B 76c0de6e34bc1e821aa940d371b7b505ae2ca57cd398ca011d7bb6c2c36bc8a8f76e62b4cccb85f4c65c9d5a2ee08c06f6131124dd0f04e20bfb1a08a69d4aa0 SHA512 46bc4e6ecb6c77e609c27ff6a649678e959ec5fb5d57651099da862e831952ebf727b5d7cf67ad047ce6df8c6fa8af719d63fd8aa2ee0328a6c90b56125fcbbd DIST gentoo-kernel-5.10.151-1.ppc64le.gpkg.tar 55029760 BLAKE2B df852e64d4ece8d209b7827cd298370b2d18d916e10c286bf7fd038164706a208c16e9cb3617b9e0b186cf6a3374177c8ed0108de54b837223d0d091efa2a7f0 SHA512 d0679b789340622d099a157f53fadc928bf658aaaa78024cb16fd90a0d02b90d4f66adbf137c0ce95bade560f2fd0d1758d8c0345a7df173ef60e7d1569a04b8 DIST gentoo-kernel-5.10.151-1.x86.gpkg.tar 56412160 BLAKE2B a826d5d2e769e65652e5c08458de8b239d752bcf34360e8430ca7eeec44f2e25f4e47b314632d1c03961646ac53ced0daea80b759a0c6897f83f0bc0ee9e20e4 SHA512 5c9fec62d0d84fb0080ef212758231144dd98180eeb573dbff4409071b89418ff6904125a598ae6ca723fdc399041b982a74bb85679b453aacf63a6128f0e7bf +DIST gentoo-kernel-5.10.152-1.amd64.gpkg.tar 66519040 BLAKE2B d186b850a080206d4ef6ab201ef505b8051dd5250eb2e320fa603bdd78ff71c295c7905a58be9c5aba977c069ffd3dd1cb88a17c0739d2301a8d35fbe90429a4 SHA512 c1312d62d917809cb1758a18bb1dececa8dcb131f0ce71f5b8d65a2bd33d85359d6e8ad306c88a4694c5697d05f3484846ba420ef8ecf04037212b8fed04cbef +DIST gentoo-kernel-5.10.152-1.arm64.gpkg.tar 59658240 BLAKE2B afeff9e4bda9ac67d1d486fc64891a81ba0f2eeff6f6b988650d92ae8269ec866f70f6685c5c93ab143294d7889f1734312cdec7ed53d5e12c26d42a1d6cf694 SHA512 b5b296767a8f0a21bd5d7777139e9cd0b50b38d76a80ab7b13df7b6d11e64b2327584425c10ad1e19e0c6bd3bbb63f176881812d1ddcb90b70da1db0adda4d69 +DIST gentoo-kernel-5.10.152-1.ppc64le.gpkg.tar 55040000 BLAKE2B c18d8c8218890fce2067f9ae6cb53425d8a100546859dac94c71673a2c95c16f516b42d431ae101e52019ef95035724eb4784c74bf39f40a690f0598a742d35e SHA512 a94bfa9574a1820e8aca6dc09cadf6c52770e922e7e00659e5b7d943e0f2808b49099a2dad7999e9f914df0cc34c7a7ba2238a23bf39c87238c4289824291c91 +DIST gentoo-kernel-5.10.152-1.x86.gpkg.tar 56422400 BLAKE2B c3905cb65af9ee28d1bfbc7de22f3d13c48334c0fd183170fc6e100ddaab800de4d2b9d8171dd34b924c807e249193fe7beace63498793bc81e68cbc12064fb4 SHA512 bdd3eb5b17dfb889ad2cf125c3e4911b4f1e8439cc4302dce8530edd3dd28b3abd3e35a63a4c3cedaa718c5c7172ee67f27fc548b9b692517cbce11f851674d7 DIST gentoo-kernel-5.15.75-1.amd64.gpkg.tar 69816320 BLAKE2B 738b6bc811c9af719007d4333c90751117281d2dc7db5722c289dd5d44ffe52381510e927c6e48e35f6204f67049b0962ffd1e4406401f0d712baaebd8f79511 SHA512 c732f731e0d9438305142ff6f8ca1deb2935ad23b694892e0885ac40a08265e40fc134cf31351fd0602d43276d8d08dda777a6baf2492589fa0ae50b1ebe8070 DIST gentoo-kernel-5.15.75-1.arm64.gpkg.tar 62873600 BLAKE2B 823661948b075c438dff583c5b19602d2a7faa9f1e05bd5d8f036d034d468f91605600c15bbe62970ee436510ac1898afaec6d58461749a5eb34b4175a63f1db SHA512 9e9a19bd2c2120bf77918047a4ae728074a88d29d207628c077b0c4ee425ae0b9c266dfcd22dc1204e7c3871927d797aa7bbfc759fca0efd484edeeee1a2f637 DIST gentoo-kernel-5.15.75-1.ppc64le.gpkg.tar 57241600 BLAKE2B ba82e45ea411b343c92fdc8d9c06565694e12955287451bb148d34a374004f68f9e32cfe1535dcdbc3e574018d8a3119e7d8c97c2d5f2b3ccbd0acf8ce497669 SHA512 c3a6d0a85d227608d5b2416360b9d597176b83643160b6b4a61f8a6bcdbe15c89ac9b6f0aa13cd4edb9100fdb666ddeb09de765b1faf5970360bed2546e93898 @@ -59,6 +65,7 @@ DIST linux-5.4.tar.xz 109441440 BLAKE2B 193bc4a3147e147d5529956164ec4912fad5d5c6 DIST linux-6.0.tar.xz 133886176 BLAKE2B c09a9c877ac0fac83dc31d2d04d96f0a3331d4ed78e3ad4edfd4dc077e1c11d0c49f419fdac4008b5c93d1b09c2b724e12ef0b38371ad0962908abf85dfa95fa SHA512 bac41a7aeb6e809616cee2f13dcd1c45e829dfd1ccf60aee1dc4c46b1e28532f4485c7d819a32940de84fdfbf89db80a4e919bce8a74b2948c5a01551771b714 EBUILD gentoo-kernel-bin-5.10.150.ebuild 2999 BLAKE2B 93c1a0cf84370f61fe9ec23bcccad5e2421ac6206411610653a1d8484c835de9def37872c3838f875767032d4331a245beff6cd619ccf53a43312c8331d86d3e SHA512 e4ced34e4d178d478f71d3199615f6b4b6d28127783ece7b7a04bbf376427c533539d75b07baa1692edb43a53a71c0a738982f34d68f6de1e0ef9a3c4260f4d9 EBUILD gentoo-kernel-bin-5.10.151.ebuild 3003 BLAKE2B 1ef35e23fee13cc5319e61805de11434e3b2fb31c444d3924834ccc46e1bfabb553ecb8157355c344b71f66eb5013dd0e9f93aadc0ded81bbfa52e49faf574b6 SHA512 3b9af766614931f4c0c2d5ea26365a7f9aaaeeddaddb4aee6a4935fbe96c3c626ddec9ff25c5ac3f21342eb2bec896c6ae9ddf6d52baabd5081cd00dd0f74616 +EBUILD gentoo-kernel-bin-5.10.152.ebuild 3003 BLAKE2B 1ef35e23fee13cc5319e61805de11434e3b2fb31c444d3924834ccc46e1bfabb553ecb8157355c344b71f66eb5013dd0e9f93aadc0ded81bbfa52e49faf574b6 SHA512 3b9af766614931f4c0c2d5ea26365a7f9aaaeeddaddb4aee6a4935fbe96c3c626ddec9ff25c5ac3f21342eb2bec896c6ae9ddf6d52baabd5081cd00dd0f74616 EBUILD gentoo-kernel-bin-5.15.75.ebuild 2999 BLAKE2B bf50105e6cc148a793b36139a419ac66f4f14b4a73394b21af62803ab61347d87f800f066ccf7c9e33951c2efbb6d6dd77e7b7f296293cee6b0b7f17f3d1e7e2 SHA512 85bce161a2af46e8b9a2a005200e29e30e1bffc8c2263b7db2a756a73d411168dfc0e7720df907e58ccafe059f72558a47d8c93d9240222c093990de08d7500b EBUILD gentoo-kernel-bin-5.15.76.ebuild 3003 BLAKE2B fe1fbf1260aaff760932d83c23aebec1313e9198d8332dece2d5f060bcdea5db46fbbabd1e0f5f125439247b64adaff285cebf06a566a9b4094f43e72089d690 SHA512 b90451d89a4c700892b682862015ac63e5153e30711a2f8acabb2157d84ab8705995460d8a58beba26873830ec85cab81bc734a94c68aa79173e35daf5b0ac23 EBUILD gentoo-kernel-bin-5.19.17.ebuild 3003 BLAKE2B 4ab34ea587fa8ccd865b3e236c492fb68a9d0f39c17503fe507107af52934cc14ec4dcf1afe08b92a78f6e4515da77cee078872b631e0711126b8c5b5661ef74 SHA512 6face53807c8ee8f1c1f9129d692514344491fed96102dd6579fd1ab3b0bcd02a730487a50b6a64da5f64050879231696c4d35b0d9862dbf98f4166ec1d55c4d diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.152.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.152.ebuild new file mode 100644 index 000000000000..26eed75d6c06 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.152.ebuild @@ -0,0 +1,127 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-install toolchain-funcs unpacker + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 9 )) +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}.gpkg.tar + -> ${BINPKG}.amd64.gpkg.tar + ) + arm64? ( + https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.arm64.gpkg.tar + ) + ppc64? ( + https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.ppc64le.gpkg.tar + ) + x86? ( + https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.x86.gpkg.tar + ) +" +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_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 "${BINPKG}/image/usr/src/linux-${KPV}/.config" modprep/ || die + emake -C "${MY_P}" "${makeargs[@]}" modules_prepare +} + +src_test() { + kernel-install_test "${KPV}" \ + "${WORKDIR}/${BINPKG}/image/usr/src/linux-${KPV}/$(dist-kernel_get_image_path)" \ + "${BINPKG}/image/lib/modules/${KPV}" +} + +src_install() { + mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die + + # FIXME: requires proper mount-boot + if [[ -d boot/dtbs ]]; then + mv "${BINPKG}"/image/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 +} |