diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-11-22 11:32:42 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-11-22 11:39:56 +0100 |
commit | e4560d73ef6e2c3a3a0443e5eea663d6977658b6 (patch) | |
tree | 4e0d4adcd3a0d33903c57940c8f6e8dfb64ecd66 /sys-kernel | |
parent | sys-kernel/gentoo-kernel-bin: Bump to 5.14.21 (diff) | |
download | gentoo-e4560d73ef6e2c3a3a0443e5eea663d6977658b6.tar.gz gentoo-e4560d73ef6e2c3a3a0443e5eea663d6977658b6.tar.bz2 gentoo-e4560d73ef6e2c3a3a0443e5eea663d6977658b6.zip |
sys-kernel/gentoo-kernel-bin: Bump to 5.10.81
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/Manifest | 4 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.81.ebuild | 117 |
2 files changed, 121 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 4dbd68467629..072b08ae51bc 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -2,6 +2,8 @@ DIST genpatches-5.10-85.base.tar.xz 2458980 BLAKE2B 56a0fe583f9db1bd5d1a051c584d DIST genpatches-5.10-85.extras.tar.xz 3840 BLAKE2B 42ce8a5ec14ebdb8067853fc388b30e178e705e53d6ca547e21ab76bf94ddad1368000226ab455116758cb6ce01e8a8624332dd217b2d49d6ab3393d6f740966 SHA512 10bb7747d4d23203c39cc0f15abc70e5dbe8f3e390b2c95338982225634b3008e415c372b81029b85e0f6619112c65327e6acac5de0fa3cdf58bd8ac30607803 DIST genpatches-5.10-87.base.tar.xz 2594680 BLAKE2B ee5823f80add6faad8cfea1c36e3597ecc0292c5f98b64844fab7c76605fb369e07f4ae48b2e39d3d17879f0befe37cd58a45734c47c73c7572522afb01cc6ad SHA512 15b8d5e3e8403c4c9139fad59382e37a5e211ecec363c43ca385b529fc292a0439c9f93e7b525949bf1519c553111acc96107d0195e11cdad77b03d905bbfdd5 DIST genpatches-5.10-87.extras.tar.xz 3844 BLAKE2B 7d06efb6943f262cd37cb9c93ed4b0477943fc267499a80fcf1a419641286c072fb8cc7bdb061593be0861e437bc347e9cb4443257fa40887c0875780c76e80e SHA512 c3331486191e9e7e51dd4bde83c2f9a3c76f7753f0e2ff3b1c0dd661e8eb73d39653efdce7e084aadffb55e840de84fe2f9a4878101334bdf0d52e2389e67156 +DIST genpatches-5.10-88.base.tar.xz 2600948 BLAKE2B 31505fdfdf40fa4ae446a496eade8243b74dec54cacf3ed38d06e4e0d6c3088451f9b85d0a32707a609f6f233ace2544f358e24851a0cfd561800b99986d189c SHA512 d1ea1aaf5efd894fe97a937cb591680a4b74e0c3ebc0c747e6a75c813ae784825a3f50ea846f6c3e38a36c94b1d110c172697ca2e63e22ae813da140065893ce +DIST genpatches-5.10-88.extras.tar.xz 3840 BLAKE2B d6d4ec32303320ac6b45cbb2bff67442d45a723efaacecbd7bd45df1cfeaff98683b30e06cba2f2286c24179978aa17a5de5915e8fb1af3558869274ba4caab6 SHA512 815f1ea9ed87300c81a5b4dda27314ad6a2b88505b814ef266bc8d0e72b66ab04310f05c009a9c8173401caf236c53e0bf3b7b083fdd46d8ebd82007efe0f75c DIST genpatches-5.13-21.base.tar.xz 951176 BLAKE2B ba681ca3732dd42d0242c2b4e95f90f92bf4737eee326a33297c03d9cefd5da3182262626caf4635a3c66329df5fd0f28d55a963b5fbba110f025e7874f00726 SHA512 55f21fa1711464d686dcac9886ed0420cf48d2ab4e1b98ec1d8ac52c8828d4d8c2d71c4e57df989d23df670d46a00ec2c7dcdd4dfb7f411e904e379f9fb702f1 DIST genpatches-5.13-21.extras.tar.xz 3852 BLAKE2B 5f1b6adf7944a5f8b8394ad651e08647284c685838309f4ae9c58e2fb6ad127ac48e8ba10b65f058793731ae39ea683c290e30425aeb306ee8e6baf7bc7f812a SHA512 397e625d456feb5aa3ee75c18348401c976556a38c401afdf7e242e036fb432c3fafaa6bc8b44d046ccd64be418407927fcd366d172386765832be4877a6d3b3 DIST genpatches-5.14-22.base.tar.xz 864000 BLAKE2B 0a2ef4aa3504d23bc2ad1047d76d705ef4fb15e15ccfc59f343bb1f817ba98940d9bcf7151cac74cb02db4e946344e43679ecfd848aca65951764ede5288ad59 SHA512 b597484d880cdcb1e8e7450c48cb5ca6a5902109182ac01725be00c264450e7e0d24e54940d3d55084383725398ee05159dc71ce7c152850a57aabbe5c26b1c7 @@ -22,6 +24,8 @@ DIST gentoo-kernel-5.10.78-1.x86.xpak 57263133 BLAKE2B d4f3ade0de191584fb2022aad DIST gentoo-kernel-5.10.80-1.amd64.xpak 65555264 BLAKE2B d1dc0d0c31ea77a806c0081ea7cf5c13b19079acd542eb9ce62457b8956755e70e75392b9315c93dec8ed5be990a76d3b832b01f7769977f3d8f48014dda9bfc SHA512 1f6538c49a78bb61c5dbd24a30c10156747b666fe90528b7dde58f25ac96032a7148cb65d4202e6f86e868870ca9fccfd469beeb00211ffff858de48f0014f03 DIST gentoo-kernel-5.10.80-1.arm64.xpak 60925011 BLAKE2B 88684720fb6d4f9ca5927540de6dbe96b27aa0894756d8438947e5f5da909e1eace19a69e9f352a34cb4baa2a98a024125b005a611ee6cf9c8233df99323f17c SHA512 d74953b24dbe685e1933611cb1192fb96d45bef2429bf145f174448bfe0224521e2883e85616e610ba49fc9807572924f4e1c1e9b2d08437f9bac12ab474822a DIST gentoo-kernel-5.10.80-1.x86.xpak 57272943 BLAKE2B d2b6b55a4eb046efbb097508d5f8e96d340fcbc499452620a7150200978f7f80832a281db6dc147f1552419c19f3e1910b0f6cbeaf7baa45b1e3e34a0ac37bc7 SHA512 ec1e841644e9fbfee2fbf319048cb3c911a67191a8e0f81b57dc59f5b165f925b07588a2fe9669edd811f40231b59df242c064bbbdac63222aab94df7538c042 +DIST gentoo-kernel-5.10.81-1.amd64.xpak 65556252 BLAKE2B a99616d6ffe7148aea6c670ee52e97376f0065b69846d8ef08d82d262d118d79971fe1c489a7c0b443b96f8c732050804f23c26084edc51cbad66a81dbca7da0 SHA512 4b387b0f5cda026916a225c2bf126317e53a6e04d878a28faae0b19f2c915c6f8f6ab2308367b90048ae37813942874ec312106c374b3c031831d5f1c704ce00 +DIST gentoo-kernel-5.10.81-1.x86.xpak 57303215 BLAKE2B 6ed2e1add88191aaa12d2e2b62ce565619164070edfc2d4a429af6d6f95c08809afc0967d281cc4bef711f859fd07bfb9673a2e4ead2b259299687bed15b9694 SHA512 f6ee8e53438988f51f3f7735b3f7ab407dfbc8d3298a715b51025261144a8956dbc44ec09376038eab750afa8dc79982a150b372808248db5fe5da57fe8fd643 DIST gentoo-kernel-5.13.19-1.amd64.xpak 67338326 BLAKE2B d9e718a94bf9a341f5b57063cbde2f3f1f0ea6d03f1805051c084b792388789494a49786d643f1570871ca2b6366a206497aed83f9ed00837c542ac970a71fc6 SHA512 aea74f6f39861752f7a5dae16d955d541f65d3e7b8a0e5fba593011d9ca8583f3dd0964e76aa21daa6583d5d26e3616885aeca8a04dbba222e0aae2a85062b40 DIST gentoo-kernel-5.13.19-1.arm64.xpak 62747957 BLAKE2B 1981ddb4e35d2210e1c678856ac58e088cd100ecbd70d2b5c88ffe8eb25b56f3f0c90e45d12adb74c7a0fb881dfd36b1d46d6fdfb837dbdff1881ded066b906d SHA512 d8c1e524a3e58def5352b3faae07c42074a2d67015cc62b9601e20bb9b7f29d44d2843e7771e0399e9150be1de2be2b28776f96f7fe75ba7ec4e8f2c31e1f715 DIST gentoo-kernel-5.13.19-1.x86.xpak 58517020 BLAKE2B 1dcd347af7693696f93f7a28326aff4c7936c4b71238500b6dd2a4b7cd2b88891436c7c8b7c6a56f638182b722ba5e75f52a1befc74eef4bfe9e6f6fd7d8ef8e SHA512 7bf1cf45d06cf4c6331d8d0c0378d253f6760dbd2f564cac6f7e53d30748ea01ea2d96a6c409a0d653ed74366d319e28ae1e2924b07f4ce7899c5bae121a3630 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.81.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.81.ebuild new file mode 100644 index 000000000000..ee3f48106146 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.81.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##*.} + 7 )) +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/~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 + ) + 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 +} |