summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-11-26 16:02:52 +0100
committerMichał Górny <mgorny@gentoo.org>2022-11-26 16:08:20 +0100
commit0a8b8439ae81b29715f6555e281e042791fe00a7 (patch)
tree75f515856b7b1ac4f5a7aa9c94c5ba7c6fade100 /sys-kernel/gentoo-kernel-bin
parentvirtual/dist-kernel: Bump to 6.0.10 (diff)
downloadgentoo-0a8b8439ae81b29715f6555e281e042791fe00a7.tar.gz
gentoo-0a8b8439ae81b29715f6555e281e042791fe00a7.tar.bz2
gentoo-0a8b8439ae81b29715f6555e281e042791fe00a7.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.15.80
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/Manifest6
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.80.ebuild127
2 files changed, 133 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index 844e8ea76244..c2f80c72b5c1 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -8,6 +8,8 @@ DIST genpatches-5.15-81.base.tar.xz 3257712 BLAKE2B 66e0d129053b2cf3ba59681318be
DIST genpatches-5.15-81.extras.tar.xz 3932 BLAKE2B 0783c48eab8d9f53d07770a3df525df2ffdab8f36d3d7db2d22e2fc5b0d1fe904644b013a3d1a5ea3d967636d4ff91b3f208ea8f004adf310134b98ec5cdd0fd SHA512 be4b557066d8d2327724c8be440ebcedb01d0eadab7bfa0f9f230111cba76a2623bec0945fc887b91d6e5c73eec3eec4fa29b2e76606e7871e81a91fdc4b2bf9
DIST genpatches-5.15-83.base.tar.xz 3328188 BLAKE2B 5d8da81e1c5f936ce49589d1dd10f41246a6059c410c0215b495ca7401eb618aa6c87d2ae23b08f27e3be5dd6b7f88e5d4e90ec9950924db9a08375d45cb2da3 SHA512 fdcbf6bc1e17f04df9d8334c1c75f21e5ca60fb99157708a4c599e43ed20a58664fe54fe8467924623d612ba2ddd409af4840195369fe274a4f55a84fce12ade
DIST genpatches-5.15-83.extras.tar.xz 3932 BLAKE2B 42ba0ee79654687ad5c858344ef7a1787c23fdadcf312788b2f53e739bd6319b3771c89d93eef7f604bd4f9275777421fcac09f8030af81cff6b3d9482b8e804 SHA512 55873c4cac9a4c5bf030b562c927fcc663a9a092602366d170541050386d427fac2dd8ac013d13b700bd874e47655d10b2cedb5b4c1034f41819c675aea80506
+DIST genpatches-5.15-84.base.tar.xz 3361044 BLAKE2B 355479d56f6234f63cdf7acad501784edc72f3e55ff6ac0e09ac26004c38aa30fff62893036ab413d0e8f1334a41568c59e075452b5c3909f88b8f48f0104748 SHA512 7a7a3b03d5aa348c7e4c5d4d7e4972c8538778367a9eb1984c1f0b3ab202ad27b92d1fd7f29dbc3fbc17cd413d3c1a571f5201355b27c22bf0f55bf7f0d57206
+DIST genpatches-5.15-84.extras.tar.xz 3932 BLAKE2B 1729d46e8de60b40e69fdf7f63048d9c4142de4a4dfd75695f3303034b1b1732aee6c20a62a3f2d7b4b464e22babdd6261ae4249a79f79bcd7c817faef55ad5e SHA512 223124d0323024c383ca342969404fcc514596364a90cc98bf8a8e0105e5c2420973a2efb6a47c732775a4672fcba4d3d4386a8fa5350e8ce8a98dcb6f5718fe
DIST genpatches-5.4-228.base.tar.xz 5198204 BLAKE2B 35942e1ffbfd792f2479ce2b97c7f191cf5fc5712ccf101ee1f5f7f0486d53da2307237fc2d50fe0353c82557df03fbdfbc669949616dfeda69970628ad98ee5 SHA512 333dd865d3f10083566ddf43ff4d159a6842c3ed92c703dbcebd0832b0fdbc53c0025856eb1608ac485c805702608e52c600e08922fb831536bc6a099f74f1d8
DIST genpatches-5.4-228.extras.tar.xz 1812 BLAKE2B dc4f0815c8915ae371db4da0ecc1066a269547ba1a967a6067121de25c06445356b6f1339088d402e7f9ca5dbb91b49ab717dc3168760cb26ff3e279177e16e4 SHA512 7ab2f0466b677b3506c080bacae1217b54b35ccb45f65000757bfa09e3ca2834a3b78c4b03730f11c6948be3e3a04c1fe3bc562585248039185d94ba805adfe7
DIST genpatches-5.4-229.base.tar.xz 5214840 BLAKE2B ede38de7b09b59ab96596aa4e47f7d2dff06e8e3e403e0b3a15092991bd21504ccffdc21b8fc5857fbd21ee89842f7a6d74fd88b5c7426ae2a5dd3d50ce8db51 SHA512 ad086f2b00e870d54b1605eac7fe537654c09830b69c316cee71a7bb5e621e6ada37ef780c4d2c3ea9678e4a72c19355acac2648e16943ba0dde4e711909826b
@@ -36,6 +38,10 @@ DIST gentoo-kernel-5.15.79-1.amd64.gpkg.tar 69816320 BLAKE2B 6498a6008805dda5b3b
DIST gentoo-kernel-5.15.79-1.arm64.gpkg.tar 62883840 BLAKE2B efdd14f1514d2b5900d6c89a84302d86d6b55e025850ded55a1fbf984c0a206e3c587ec3659f8b7344709efb1ad7f394f5017c9c8cc121bd61f1de6fd424b311 SHA512 d34dea185efcac93c2ee13829f284fbbe85c5ddc96435f9e729135af53b052b75c56d8c61d8d2a1f2e84711e414d3d3bab8ec618a47a0263969fa8395ffbfa08
DIST gentoo-kernel-5.15.79-1.ppc64le.gpkg.tar 57241600 BLAKE2B 8d7b6af97f6c74264b08a00eec3acd6db1df92b19f4f18e181639e2b354d0626ec8e32f51e17966159f039d72dfba10d4bb535e1f966481d54c796f91921bcb8 SHA512 2e03c61a7eef436e2a75bf852beb02251f0f7c7ca24d4ec693430a8adcd812bfb3e0acf6cfd6a487b1b39c5ac4eaf4072a53d603e9a3a60a5c63ca7becc2db9a
DIST gentoo-kernel-5.15.79-1.x86.gpkg.tar 59146240 BLAKE2B 6e39b2a1a9f16f9488efa89989a7f1e65fcb37001b799d625d4fd050702eb036d397b5c0e5f283f38b453906a6584cd073c9364cd6edacb12774b940d3db763d SHA512 11ef510e14fb2ae39e8e6f1c4b24f44bf3294b6efda2781a5b1665e23ab7e0f57d6cf5b4e04ea34d050736a377cb37d5b069834c1cd6e47ecc97d43fd32bf611
+DIST gentoo-kernel-5.15.80-1.amd64.gpkg.tar 69795840 BLAKE2B 88aac1859dc18a35c93978cdfb8549083bade9251f8b86248ce88684512683490986431d46c6298282313adfe76754922510f037c0b3eddb989fa08c42ebfd3e SHA512 c661ac40bd9d8b70c1ac290be33398de0ebe70e3b22cafb6f26d0aaf977d5f81e66a23d4a70f1a5fa034f4c6e91874069a5f2b12ab4d38de77253495ef311f45
+DIST gentoo-kernel-5.15.80-1.arm64.gpkg.tar 62873600 BLAKE2B 4eff285c6caef0120a604bc83e1bb4e9faca4217b84ddafde768587cf17c642a86761bc803a528ed7a6edec7fc7d5d5c44f1c766233aa0597461aefdf114f894 SHA512 7cf1fdbe6de6a31165ed608b9041b00824935b09e72e36a3eab0be8763d1430c23842f23a99d764387c268f9a485635d346275f746ea8eba685e6f8abbb6b610
+DIST gentoo-kernel-5.15.80-1.ppc64le.gpkg.tar 57241600 BLAKE2B 7580860335c37f55ac3c676e784b84b02296324d07910d66a5a8974c2c4410e22f49c03c5ac1f20e7dc81b37922ab052cf3c918606197e51a38ab6e3cea88063 SHA512 aa9f22f64f2f652113d4d4f4ff56934c02ff32053293a05d9075052cf8151913101de38384037cffeacbc5b2f8863add45d18d1646b6bf57b49f46ca7eb23572
+DIST gentoo-kernel-5.15.80-1.x86.gpkg.tar 59136000 BLAKE2B 4a0733a6d3754b7fb1b158d8238673b0e380dff52366346a03de5608bdeb7edc2987560429382beb867869adf1f5c6d7bd1594ae4e1f60fb34fc05ec42f923dc SHA512 44b79d83902ba38cc62d972670c16f3cf22ee3a1bf09afb37aa9e174a8662925dbd62aaf9090eee0323e24106fa9aa6ba630fa22cfd7df08e2988c9d9b3fd7a6
DIST gentoo-kernel-5.4.223-1.amd64.gpkg.tar 60620800 BLAKE2B 1fbd9fdc06da23b51f136db8eb5d2db76110116c5f73868b07162d853c5ef95094f953bc02686f2855b9b5b0954792c4eac884f6f81c1dc524d8c14e4310849b SHA512 9ed74651baff980bc578eec8cc66486d5183a042943e77d6f11e37ae26f7b8892128b1886038ec4b683762a61bf1a35ba2cd571037118557f4dd4f4494b2c720
DIST gentoo-kernel-5.4.223-1.arm64.gpkg.tar 56821760 BLAKE2B fc2ce930c0bd6d3c3efd51057e40bd1c83db3a812c8aac5996d05978aae4dbe6163012699c72fec553d83e1397e6cd9601fefbfe3105c30523ba49f1daac4a52 SHA512 d4fa5d7570c6fc7534d92ff23fedb2349196d0b07b7a8ed8fef43b40cd6a63205ffb30378340f704652b4e3a16b45aec3ab6bca9ae308548197c5c9383a1f452
DIST gentoo-kernel-5.4.223-1.ppc64le.gpkg.tar 54343680 BLAKE2B dc69045d3281260f370a97e2f77315f8488fc730980e7b3a93cd85ef3fd3044e18a0f8a1bd81d48e33acab8eb41b07fedc3679e4b1a732146d13b3552febb753 SHA512 b0463414a8a1503d393d8446c399269167d871591da08258a258f280cddb81bf8a6f20f4e3a9699cb64f2d7118bd0347b77cdb52f7340486a41b8bcbee1f6ba3
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.80.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.80.ebuild
new file mode 100644
index 000000000000..9c843f83530a
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.80.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##*.} + 4 ))
+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
+}