diff options
author | 2021-11-26 15:38:39 +0100 | |
---|---|---|
committer | 2021-11-26 15:39:21 +0100 | |
commit | 57f824dbc9140b03c8fcf832db4a83ee29eb230b (patch) | |
tree | bf3b3c40d28a318b3fad0c0be9c2d9917ab130a3 /sys-kernel | |
parent | sys-kernel/gentoo-kernel-bin: Bump to 5.10.82 (diff) | |
download | gentoo-57f824dbc9140b03c8fcf832db4a83ee29eb230b.tar.gz gentoo-57f824dbc9140b03c8fcf832db4a83ee29eb230b.tar.bz2 gentoo-57f824dbc9140b03c8fcf832db4a83ee29eb230b.zip |
sys-kernel/gentoo-kernel-bin: Bump to 5.4.162
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.4.162.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 7387e32139d3..0180088d64a3 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -24,6 +24,8 @@ DIST genpatches-5.4-164.base.tar.xz 4167868 BLAKE2B 62abbdb5c0284dbfcb1d6342b81f DIST genpatches-5.4-164.extras.tar.xz 1788 BLAKE2B a1c49d863d28e352a89a8ef344e2b9fa7d634147190ef2886e1725ffa0a0acac0a8a1a8eca633dae7213e39f6030951c7af7828449b810d32b987ee8645edfea SHA512 841638c80395371d41aa45fc3cf5af0a4225e312495346514e078fe7d5e0d7dfc758e62402816ababb8f0df020206469920ec6b53fc71d3fbb6fe15cd8cb34ce DIST genpatches-5.4-165.base.tar.xz 4172064 BLAKE2B 5533ca691df2b2eae12f1ddfbdd4a38625569bafbe2a90d8b7c8020013587f873f03eb0b177191a2fa4a060cb4146ad98c5a36555d5efc99a952cd5016ae127d SHA512 377e4298bf5aa6e3537969adddfb6028937035cd1ea39bc49108dc11196bddff4771ea01fea17eb06be88126da8284c8846c33ac800eb55eaa2527de15612cf6 DIST genpatches-5.4-165.extras.tar.xz 1788 BLAKE2B b724b539ecc76ffb7ed1186b71ae33ed066ddc823647c6da87e6afc3c0348bef83ce7cbade88f80579e00de1d2c32af76e5756f71d617c70714656ee60f2b295 SHA512 428c5204967d8bcef77c80c3146294fafe676501e72187c8a5c6a6882cde732635bd422ae690cbf365bdf033891a0f54605e953daf542251692af92a873f06b1 +DIST genpatches-5.4-166.base.tar.xz 4193772 BLAKE2B 0a06f3f716f07f15a01f96fc0f736300a90a7f5be47f1cea7c9c245bdb93f8d255178d0b6b2d1ddf015ef1b51d2f86ee1fb9f45aa17f91ccad41601069d15632 SHA512 ce3ecaea43b7cd15af93a3e4076bc6cac9815f820891ba4b4127a4f8581d812a4c6adbce34cb284d189110df34f64d61d4a7c2619ad0da62ecda94185230aec2 +DIST genpatches-5.4-166.extras.tar.xz 1784 BLAKE2B 29955fdfe9d1f4a9f373cab61b9931a3f4d816e78766db02cb942951283ee5ba1968d3ed208164681fed488126210d93cf20731fe0b4e1d0274333bab75da360 SHA512 799d99c155d060e959728c311df73c6ae184be5a8a7b113f8714ccca0fc30a7b390bc534c138b6d37e00b7ae2e2277229caeefa047dc3b110df9d2e7a74b2ee6 DIST gentoo-kernel-5.10.78-1.amd64.xpak 65516317 BLAKE2B 444139b73822a88abf4ff033858cd4514f09c689bf68a24659477f5106b4faf89678ba7ed0b80c831d16456c04309bbfb1593cdcab9979991cf86052ffa9632b SHA512 4034c53b5c8f3dad7f8bcc146d3827978040daad6e05dbdd683202467a8ad62c29fa0d79236b1fdae404993f42ac301088f89605e4f6d32158cf867b498a8e62 DIST gentoo-kernel-5.10.78-1.arm64.xpak 60916561 BLAKE2B 4994d703ca272c6ad296cf50c498e992a799e5129ff758c9797fbc4d29c5ddef3a865b529360b189c27c751213ac5f7d3822a9473f0596494c739ddedbdc6f95 SHA512 f1c9eb8fe6f3997ff90ddbcc9b7dcd6c7544edd69301da9e2e803a01d288c503269ec1295883975da3dbdc6928bd7a8e27f4037cfcb890545fe7d86db7df90d9 DIST gentoo-kernel-5.10.78-1.x86.xpak 57263133 BLAKE2B d4f3ade0de191584fb2022aadf5223a917d77f8e0aaa885d919d22477230661a47c1e8849d5c78f3fd283097c2f509bf1e7db9e6a02bb8aa745a4a4fb45a1436 SHA512 340d4a59b417e872f0a2aab2b8b0a2ddaefd29abd3c51882f08bce93cfd72e44d2a4798e688a33e36162fb9cfc33b8c173fe0d4551e956ad7d4fec2ae7d2286b @@ -59,6 +61,8 @@ DIST gentoo-kernel-5.4.160-1.x86.xpak 53205051 BLAKE2B 9b67b07cb0b05d8f68d958432 DIST gentoo-kernel-5.4.161-1.amd64.xpak 61397959 BLAKE2B 9b213988ec360726a154c855355116fe118ac2350df7f0ef1349ca16ac6de5cf61ba3ec414e6b4f862fd1fb4b3942fd6bb6c43c707b436e7a49f0936da4b0c4c SHA512 a604e7e6520a34af6f2033d62602707cc1be5d5aebbc598ec068b1be7e841b43ffc8ede98cbc19a62a8b07eeb40b7951567144f5a6a0ec118460c8be302864c3 DIST gentoo-kernel-5.4.161-1.arm64.xpak 57696274 BLAKE2B e2c6edf9cec49fe7715b5a2f92266367a64af9be9aa5f25fcdda1ac69f2ba3bbb19c6b45420d3a39053ddd5d1bc9aa30c079c5c8a87f5ce62b12ffe889238721 SHA512 a4bfcbb83267e78f6e52fca130fc3e0aacbedca6b91594d22d083431c4cf92b0fb8e2f85647438c7f1bc94cc0253f9c9f6e3cffbadfc99aeec5fe9aac177a1fe DIST gentoo-kernel-5.4.161-1.x86.xpak 53165081 BLAKE2B 9bc7c8f2fe7754630edbf9f6df30912e435d9118395b529d732c12b1b1549815810df2e0714476bd4e545311b2c474b9258ebfe293b20dda338e92e3feb3e5ef SHA512 9e1d201483befe38604bbb06ffb5a27da4a643a648bb7d732470007eddde22766f9934cdb2a3bee81d5bfe213d13c7f776708ce8a5b7900b5a4e3f2431c9cd59 +DIST gentoo-kernel-5.4.162-1.amd64.xpak 61399544 BLAKE2B 45083bfa44957a5c0d54cd8e0633fb0ef59b403015071c58a3dc214cd2bd02744ff30d5dfb99d884d74aaa17183c93df96d56618902f69350b52dc08f4f5ae8b SHA512 f12044d63e5191229252f007d023ca6722c3926ded98bf3a219bd61d44a6dadea02dbd2d2c56206f04a526d8a471b0c0a34a11dfd5788a79449c13635cf14003 +DIST gentoo-kernel-5.4.162-1.x86.xpak 53220282 BLAKE2B de783135d68ccd12a3f15aaa33c3905135ece4560bb089691f907df9e091fd00ef34f1e6be805d6a58f7fa25edc905bcb29c196d802b1d05069a3bcaf4b29ab5 SHA512 421a96c49eb997157475d6cc030e27316f42f909605a4ce0d705c95daf5a348d9bacb102b77be4817c5f988c01c29a4b5b04addce7305d9688b33933ca607b1c DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e DIST linux-5.13.tar.xz 119297284 BLAKE2B 9c4c12e2394dec064adff51f7ccdf389192eb27ba7906db5eda543afe3d04afca6b9ea0848a057571bf2534eeb98e1e3a67734deff82c0d3731be205ad995668 SHA512 a8edf97e9d38a49f1be2bde1e29ad96274bb2c6f7e8a2bebaa1161dd4df9cabcbaec4ff644c45bee94f86ae47725087d6deed0cd954209cec717621d137db85e DIST linux-5.14.tar.xz 120669872 BLAKE2B 0047f5aaa3940dff97f4055ef544faafbbb5282128e6afe21d2f47d8dc8c395806a17016febfa050117d16f59e74b882cb8b9c5011d68f119c230d0a4d120524 SHA512 8e4f3ec3d36f774280f75dc7b004a43e09417af58f12e9c9f8348976659d4cfda7ad905f306f43fed66a27922e5c45db22e46bbfa7a0b9f365012380de3b6f64 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.162.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.162.ebuild new file mode 100644 index 000000000000..19484744cb5c --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.162.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##*.} + 4 )) +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 +} |