summaryrefslogtreecommitdiff
path: root/sys-kernel/gentoo-kernel-bin
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel/gentoo-kernel-bin')
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest7
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.168.ebuild127
2 files changed, 134 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index 4a928617cfb6..146a6e86cd22 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -8,6 +8,8 @@ DIST genpatches-5.10-175.base.tar.xz 4909096 BLAKE2B cf9a0be14ec5a99f5a8ff6ba615
DIST genpatches-5.10-175.extras.tar.xz 3872 BLAKE2B 1371c40d2a9e15fb2297842c5aa7989772c3699d360dba1837df770d3e8c16fe48cfe6ade3a0832237dcf85722ef276ee80960072c47dd83d46018de44af4bbf SHA512 9c2c2349c1a88e916ddad9b67cddd0cc5c281ce1d85d29c56e308a52999b79c1c212c8caa3f829aa16e20b8ca4154ba8c66e6cc5d4ed1d4d07d3fe9c26f46ed5
DIST genpatches-5.10-176.base.tar.xz 4910744 BLAKE2B 119dfaaa5a2212f088f767e3600d748b2bc20a95c8e21b34bb81dc0a6ad6082769da9cc11a89b226c326c0326cb4c7da6fa0fcb1cb4c5e1f04fc353dab01a117 SHA512 60632369dc2066789ec8a144080127d7149d9deebb3c9764cd1a13fbe961dd5f88eaf345dbfeaa33c8c8b55d558511d2dafd4bfb631fac2db72110574ccf6c8f
DIST genpatches-5.10-176.extras.tar.xz 3868 BLAKE2B a0a3808562dba6540d632b25e3a417f9a2514dddb13cda9692002b253a4d033bb58ffa4d606fd57764024f21a0907a94d93c2130deb9bbe92a60f310179e761c SHA512 847fd0c0ce8bf3aaee9c6aacb527d8590439f44f5e1e19ffda883b5ea7d8bbc502cbe5e126fc181eaad9dfbced8ca664e459b70085bdc6d51e7f001bf4901f2a
+DIST genpatches-5.10-177.base.tar.xz 4940872 BLAKE2B b2a81aebd81bff1144ecb1732345cdef2a91abc5bff2aade07770cf11cbb5475c58ce2e4c2dc00a5b292948cbe9316d4812dcb534da90bf9361f18136bd67194 SHA512 b6c25015719ad70a3322d65a5f796ff075a38db7225d90b5bd18af22348e46adb547a374c0ab8fb6790f30d211570dc6742aa7abf0b24987fa4e6fc49b2a7c3d
+DIST genpatches-5.10-177.extras.tar.xz 3868 BLAKE2B bffc5ec0895066aa1e497ebf412a298f1dedd4ac86758f72c364fc7e56508aee3928725646742a66bb3979b8ed33afa7539e3ffa9c0f350c0f81139f69671287 SHA512 2c0b9273c933764c5c2fcbf6176b3fea06777aca18d823055cd69740519e1a37027a058238a0a9c15b39f1b29417fbdfd771fb7247663097fa717889b5492641
DIST genpatches-5.15-92.base.tar.xz 3843196 BLAKE2B 1a70c672f4ceda221611ba1bad20fc4e791a51e27f412995308cb7f39962c6e237efc1bb7912c67b8e3dabaffce3bb6ceb55d62f4f12b79671910b70c1e7a8dd SHA512 33390b3e24783405971f2eacb24e715faf841a66e477a03d4055d61694fa72694d7563d799b95d47037ad0d7e7c234e56c894ddd7cd1dba59077efb901bbba26
DIST genpatches-5.15-92.extras.tar.xz 3932 BLAKE2B 12936d0ac139d69f2e5947436ffd34add80625aa383aa23e51b4419a5e2ad3c38ace4d69c9e7066bfeae32ab727013e602c3a1c3424e128562597c517c7e5903 SHA512 6595eca7525db97672a15275228dbb9b14e7e234514b549e0fc17daeda4b48d298f6dbcde46e5862fe02bac9f50ffd7b05d82a174541469456289bdc6eb7f4b1
DIST genpatches-5.15-93.base.tar.xz 3874100 BLAKE2B 3f9bd1a90de22824db823bead22ae777ebea551ebd183184ecd039f33def8db603694acbe3757352cff228eb2a28a8c31d362f2185b32f88edd19c4de6eedad1 SHA512 1d5c83f5f44ccee701755dc7732f80baa00e5b3f4137c9da8d81cd7fad0055df6b09dddb1cdd6287db6a43cd1b673aef3a543086138af72cad5218d2fef31860
@@ -64,6 +66,10 @@ DIST gentoo-kernel-5.10.167-1.amd64.gpkg.tar 66293760 BLAKE2B 86933f7a1da3888fcc
DIST gentoo-kernel-5.10.167-1.arm64.gpkg.tar 59351040 BLAKE2B f8e0ba24eb686e38704fce1c296c978105f953b801ada73eb83f03f9dcee542d223e23e103281035e1e7f78be2bceba52616f84dbc998fc391e6ed136b6ea9ec SHA512 5d373fe35cee7142af63fac61282d2e71e5b9c80bac7c03ac3987a058aee7ac4915bebfab02cc995ff1344070d158a83d042dbb6573fe0bf5d13b9656e60f07d
DIST gentoo-kernel-5.10.167-1.ppc64le.gpkg.tar 54906880 BLAKE2B 85f324ca7221ba94b2fddf364b3e3b2f2e95549453f9b5d938ab6f711a4bc719559ef8f4e9b6adf259e7864877b888ddf09f5c22054164f098abfc0d2c71556b SHA512 b4cacbdeb21ba0d1f72afbbd321f696aab71c150fd936e0e365c45df2d4fb7bc35e397fb32c788dbed8f45275225560e0bc894c724afcf23ae5dcf9bd507f897
DIST gentoo-kernel-5.10.167-1.x86.gpkg.tar 56442880 BLAKE2B 5386059e894540767125e8a8ad9f6c7243d67eb75d80d26fa457ef591aef2cc03b4a7599545df8f7b3601045c8d304a07162f00c2dc668d33fb1d403c24bb12e SHA512 97dd05d6027c07b385617da4685d152c338d23c35b2947017ddfb6d61ff5daf2f117cbf089db608fb3137ebd21a4e7a14772cb8992b2faafb635fb268c9da740
+DIST gentoo-kernel-5.10.168-1.amd64.gpkg.tar 66314240 BLAKE2B 17cd291cb4bff82c4bd3a5b17a019c04087b77589ea1ddb983fc184e9e64009a4ae412d4d710bbe5d5c1efeafcaf7b66f48eabac19f85c9f851a0ab973481f40 SHA512 7890e5406dde1485e80a7f5c279355ed0370920ab6e23ad8d7521dd616de859ef37c1298e6326372038146e20924a4f158ce8009c75cc167c7637292e1867d9b
+DIST gentoo-kernel-5.10.168-1.arm64.gpkg.tar 59351040 BLAKE2B fab2fc6aa2b3d03adcc1a8a91b2cc477310360bc494fd6125a544033c0b387ef22f71fdc9c2a40f9cd8fa922bcb57b210d868496a2a396352ad104bd3b37ba5d SHA512 7679427a17a9e7f3a5453f41752c5bb60f3312c8363bd3490cf85edd3c3fb8719327fd542474979655f3b5dd63db3d9cdd337cf2d1e8a7771ab8ab956f272d99
+DIST gentoo-kernel-5.10.168-1.ppc64le.gpkg.tar 54927360 BLAKE2B daf08f4a7de35b30b94875a0e7c1d3a0003a0e8d0d952a6a5f5ab2915fd5121f6db7f8e787c8599a78b5b6b21d7b2201d2202a2b4534a3c2c20bf502384e6528 SHA512 b6da41e17bdb1043b462102a808ae164de4090339d36a6f0a18db6bfa91880e08b568109464aa7789fde4a2a0caeca3e225ad986bf8417b9ef341529eba4ade6
+DIST gentoo-kernel-5.10.168-1.x86.gpkg.tar 56442880 BLAKE2B 3f18046b4ae785d4ff09d8cb0f4a69ebd531e6900491cbb35858436684d21331b7ba8b93f1f4885bec5b71958601022b8bfbdbb393f251d4435665e3ff8fc6e9 SHA512 050bcbf0f021bebfba82563eeac279a22ee254108141e87ae1be9ad9a7cb2254181a5273d7514abe908c0df61c32e561e565aeeb4476a923be517674d1c5a4c7
DIST gentoo-kernel-5.15.88-1.amd64.gpkg.tar 69826560 BLAKE2B 9c32c9a590770f2b15e67e62066265cbbf82d09ce9daef7af5522be320eb98eb13714425f842c6de038fee83f7a2166c2113c77acfb6044c201b39e26d36f1e4 SHA512 9143d0393203eb00249916b84b0699aadbd8af5dd5e4376ce251ef77a1018ab647ccd7a370e2724b6b2f72d077ba9fc3f2000ecc8518295e975cfc8f464d9df2
DIST gentoo-kernel-5.15.88-1.arm64.gpkg.tar 62904320 BLAKE2B 8edaa87b1d574787913d9f0e935d3f79505aaa507069ba8bfdf4acd894582adecacbbd429554e02c569aeef975eabeb3285f9cabb1e9ca5aea4d32487a5f298a SHA512 6f41644cbc0442f39d79c54aef05d64fed2da2f8dff1f906cd109470a7c12d2b67732fb5b68959e3393db99972185fdb960dfc22c153992da3632ed2bf9f382e
DIST gentoo-kernel-5.15.88-1.ppc64le.gpkg.tar 57251840 BLAKE2B 361eb1433ee75820bdd85ed39960681b091c42d7cc7004540e4a6f60e8636569463e18d9de785f98d4015463f24dd58b1da368ad97a431e9fc5f13e9d2a98194 SHA512 c9ebe0f7a184a7fba4bc8532e7b66ad652b2cf9f1754d6267c9534673a62940c8adefbd50184655920a6518634bee9b97f1ae3037b39862ada64344ef62f090d
@@ -145,6 +151,7 @@ EBUILD gentoo-kernel-bin-5.10.164.ebuild 3028 BLAKE2B f09e5f0570fd0166abc54b10b9
EBUILD gentoo-kernel-bin-5.10.165.ebuild 3026 BLAKE2B 6c177f2c23f69572f5624d77f8b5270c7acc98313a384ef44db2ab40dc279873908a69909d500d947d14ef0aa80307ff2026c4601a0f52aa946f1f728d979060 SHA512 4042a43b0f241cac838f42c679f7703d7376474eadd036edd75b6e88b381a3a8d40df3a0610c5720ca2929f55a781257a54be8016ee50fe958801f10828c1629
EBUILD gentoo-kernel-bin-5.10.166.ebuild 3026 BLAKE2B 6c177f2c23f69572f5624d77f8b5270c7acc98313a384ef44db2ab40dc279873908a69909d500d947d14ef0aa80307ff2026c4601a0f52aa946f1f728d979060 SHA512 4042a43b0f241cac838f42c679f7703d7376474eadd036edd75b6e88b381a3a8d40df3a0610c5720ca2929f55a781257a54be8016ee50fe958801f10828c1629
EBUILD gentoo-kernel-bin-5.10.167.ebuild 3027 BLAKE2B 11b9acf8ecb0b8aceebe698f6512b658b4f3b9e4dfe398cb8f18d85e1e425f3b911eed7918fa1e6aac319847090a45c8a24cd17efd685a7860db4c29d9c712df SHA512 f3c8e2aaff6cb3ea177cd05d65f312dea573c81875a46bf9f3e1cd0627fdca5c32fde1acf819dde9eb6ca6da32abc9550fbba4b127c4d6ba829c045b40fd19e8
+EBUILD gentoo-kernel-bin-5.10.168.ebuild 3028 BLAKE2B f09e5f0570fd0166abc54b10b93433d1068d4f3a4713cfb6857697532f30b6e2a1df8d4afd66eaa665f4bd2023205334900392f020c62b0574c87a119479bc1a SHA512 e6a6510263e9cf194b9336e26cade4b76f190e1765b7000be003203f4e23fd2b2d64b645e37c0c69a35ba93c3a2e9c5e6f6b9d14eedc1b506b3b68debcf95911
EBUILD gentoo-kernel-bin-5.15.88.ebuild 3024 BLAKE2B 900a5622d9b0ecfbdd3d51d3b7673332107be5af36e211db5663e8edc6dcc97b96648b06cbaeb3cf5ca2e467e4da30748eec6ce67ae3367328ceff7f207adadb SHA512 8a95fbd8ee9d36da9bbbe28823d035eb6bce287aba95602c75c0dee5ee2d92a765c547f9f661f4eb7b331ffe0012beedd42769eaa02340e5b376b3e8f3305d3c
EBUILD gentoo-kernel-bin-5.15.89.ebuild 3028 BLAKE2B c8314539c6ea447c8645bc304bfcf6cfa99398ad38f6106dc2fa6c9a9a759ccd288646b95f77a2e9a3e9ec2ab045ffd1544a70d9060096a0e04a91ecff46ad42 SHA512 22fbd6a7597f0a6b489e6e6cace828fa7df95cbffe48a6c79b7a4d568c2e79f7ffa7d8bc717fa2746015b0e4da295f446c6d7f20bc679fadf7d9ee6574921e2d
EBUILD gentoo-kernel-bin-5.15.90.ebuild 3026 BLAKE2B a9dc3db24e35841fbd584d8bff4a61be0f104f6d0eac7ca7d2e5aa26c6d78312c794b1a23e14ee109302d0cada226fef2892953370450e04ee33f3f992121351 SHA512 c9f3722f7bbd7e9e1b11da56166918ad0bc333d41eac75d645e2417e7144c4cc4410717bb663e6e0e1c1b16d5d9b25ac0a743cb0864d16378821638aa47c572e
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.168.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.168.ebuild
new file mode 100644
index 000000000000..8f6c357c55e5
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.168.ebuild
@@ -0,0 +1,127 @@
+# Copyright 2020-2023 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
+ app-alternatives/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 ${BINPKG}/image/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
+}