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.196.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 e95202e3e63c..8e110839d548 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -4,6 +4,8 @@ DIST genpatches-5.10-204.base.tar.xz 5899804 BLAKE2B 5bf19ded87f3178252259d863bf
DIST genpatches-5.10-204.extras.tar.xz 3868 BLAKE2B 150f953d75e2e051124f44253272a5b62822a19cc9226d82d44439595a4b0f5eb0b1a97f92a07f5d766f0cd5458ded1833ed878e03023f1a74d45162d24cdf51 SHA512 812e6d24f19c3df5998a921261c60e2515811bcf4b4295c16a2fea02fc535d6e944b7a498b142ec65bdbf75d8dd585adbbffe8b80d373c4094ea0a7f1c6d5eaa
DIST genpatches-5.10-205.base.tar.xz 6004340 BLAKE2B da00636c3e77eeaa5ac26bcbd97329797a11032bfb4f1ebecb91efa5c8fd935b3031e4a59d871ee84a7af039725b3ed9b84dcc677071cb25349b01379d6e100c SHA512 93e4f76c75208deb001d4fec6a1206e8c8233b26f8977fbd638a76758f569de7a997e11f110d8f2f431cc65b5915beab3a89bd893812b661f5d1a8da5fd3edfd
DIST genpatches-5.10-205.extras.tar.xz 3868 BLAKE2B ae605d0161ede2f929d907fcf91e39045882d409b223dda879ababc6096659687ddd4f8aa056c789a2da282fd7d5f8e0bed5d85807bbfae1b2731d6b947e6a86 SHA512 f3d23e42e2f11b6d59be715e0308030b71a2391ad3a4123ce219bd976561e3215693b30448ab7e0414f8864c4e6de67666dfebda07e55a01c5307e639c38284c
+DIST genpatches-5.10-206.base.tar.xz 6004212 BLAKE2B 2df3791b040648ff3745aa0f6d01d979ee7024ffc70cd540e68a07d2615cce17c15b8f21b9be4ed12a55e31a0c822c3ee1a13756fa4df52e46bce43f2f07eca8 SHA512 2f147b339762ddfae652ea2ef06a4657e480e321f15a706a69082c5291d020122d4a34ab1863bee349a8f37c855cb6feb4ceb7085a385cdf1b14ec65d66dea85
+DIST genpatches-5.10-206.extras.tar.xz 3868 BLAKE2B 6af1a2e8a93e7102f15adb8ad44d0d9ccbc46ccab0c70c0633ddba9113c41ba70c40cf1bdf86e7b165f2e151290032551f3932b9ec28b534874fe0bc962c304b SHA512 7e64ba41b4c85fb92002867c638cc6a6b109fbdbdce0486e1898e64fda7051b28a7943a08147631e850a913c9311125c9e4e29a317acebc2298f667686bf3bab
DIST genpatches-5.15-133.base.tar.xz 5249652 BLAKE2B 309acc807e07bfcbb34e0ae87618d6dbb76e6481699fc017f449e61a2518e96e1abaf43ffe32bb9f76786fbe8bad5607407be4a40dd8d26be484943d5b4afee1 SHA512 f0c689a808a7724cb4f30d697c22a0a089df3e0f837440b22b6c32672355b79898c8097810fa1e420e0f8c364f5a33b6c373db58b7c8caac8b67be763a820cea
DIST genpatches-5.15-133.extras.tar.xz 3932 BLAKE2B b99e279af41ad1d19a58e8f9b1bbf392c805a46c371d7a022a65c0090b5824c6ce26280525a0c21feda2a5a5cfffcafc690a2194d29af6a44e10a9d4c923db8b SHA512 7cd772a6feed01543305417ff03b834bb002821ccf254e7f5481623a7f16b0b54da5fc72c21f4ae3481308eaab08fcca8fc5103ffbed58dc4355cfb661f04f8e
DIST genpatches-5.15-137.base.tar.xz 5320152 BLAKE2B 9c2376c4aafdeb6f49b490ffbd15b70edc3c76dde6fd5eb863912b685d0393fc4579d6a402b5aed7c8081b4ae6c0bd5a8bcbf2fc3b92301f1ba1f582dffc5176 SHA512 d156b00a395c0d6fa623f84c4cdcc8266119703aa03aed96dee78f799535f79ce01cfd603c0935b4c0d2a793031cda5635c034358d9eedb0dd7b1fa307ebccb9
@@ -36,6 +38,10 @@ DIST gentoo-kernel-5.10.195-1.amd64.gpkg.tar 63232000 BLAKE2B 59c173092e5a2c8d88
DIST gentoo-kernel-5.10.195-1.arm64.gpkg.tar 56412160 BLAKE2B 1ddc0e2b809bb6c62d8b110857722e83090b054cc2bdc2400eaa4970112ca15f94ebe0c12b5c4bbe7f8808e6e3a657d1387cac36bf22f37656cb83eaaa4e1bae SHA512 f550151c18cf844cbaf282d97fc1e071761c7212ee0dd7929af42e3f49d9d3b4b741aa6687e50fcc6c01c1fc91d2d9c20ab05c3ef6a7e341f4e45272592f5a3f
DIST gentoo-kernel-5.10.195-1.ppc64le.gpkg.tar 52848640 BLAKE2B cf3cdacc9ded8e4b2893625b2f7e43f80d8cfdcd521911babb139afc95408ad77467a37370e0dc10aef6b7410bed7f02a9cc9db0f6e9ec0053de3186d61b6f63 SHA512 8dc2409af01fb03ccaf8eb07ce0191f87fc32009597b766204013e571da2076eef85b9ee4caf8856620aa29bee401d66c59a0b6b9861c0f4653ef9b215d822f6
DIST gentoo-kernel-5.10.195-1.x86.gpkg.tar 53463040 BLAKE2B 3578e8ac712653e6e30f23325807f04a11b7dd53dfa1b0f63e3c62cd448427dec037e17b9e5b31ed67b2dae837a24243b1f5479fd681dce5f4207514915df7e7 SHA512 d8004d705c30748e4d541c483df0d2cb1fcd328b5374fb3d24c56cba5bef7a704610877a2054e6d6e1cf1f7b2e2aea8759e4e662aa5d2614baf429ccf9c1ed91
+DIST gentoo-kernel-5.10.196-1.amd64.gpkg.tar 63201280 BLAKE2B 42650c45572e18525bb00e661ad190d87096832145b397c01db23a6de5c3696f08a693dba5ec8dd581dcb21a8d0f39017672f02e21f078521401672bcbe09367 SHA512 ac3df47b5f0c440bc33ee4338f0e3ca2cad2b5aab510f292e298bab4e054b4bcca30f8e03faa4b012301c25dff2b8cb180a4dda0e0419c5ea6bca22aac1a402f
+DIST gentoo-kernel-5.10.196-1.arm64.gpkg.tar 56412160 BLAKE2B edf550ec8a85dabc2bba2f193b90f5a7f968f66dc0ba2c61c826c65b71c1a1ac4340cb8a2607e88b712b9ab59904d86c34dc2fa378ba4020d1e79936eee65ca0 SHA512 9da8e37394c3131a1d32ce2d15f27ab9fc26c6afa9e5cb91dbc53fd6229e20c255e90988d3fe99b3f5e13747e7c0a14b17e5820aaaeadd371dcd354b0f7301be
+DIST gentoo-kernel-5.10.196-1.ppc64le.gpkg.tar 52838400 BLAKE2B 0cd23358230412ecb411d85b11a6a5862c500956dbbd7d6f8df6480c31707ee9b58b42fd5cf96024e5d18add2da544eff6dcb442b52067da77098384ddb59bdf SHA512 af879412dbb16229d95b62c2029ce4f629cc047f8627ea6b8528e17bf37fc83c8608ca03c537e152d3d995935ba59df23475111042440929882568c16c93a1b9
+DIST gentoo-kernel-5.10.196-1.x86.gpkg.tar 53463040 BLAKE2B 7a918a2016576467bcbba65dad2752ab305f511cfba9a9002779aa7feb860c131e45b64ef7a9f6bfc53d26dbdb522c451eb347421b386bad131e0876f5501194 SHA512 d6a77a441a65a7420f390fba98d594f6d1117c2c294e6add58cf7060bd231c136ce264c6b03ed2219baf805fc50963566c9ee9db4f43d20a6681dc838244534a
DIST gentoo-kernel-5.15.127-1.amd64.gpkg.tar 69560320 BLAKE2B 3d7cd889e605f383667d3b121f50fa7a80ec7924cc07d6c5e23cc703d485f6be5d1bf79f245f4804de95c9603932e2c6bb575a7f98b6ad2573688961b75e2391 SHA512 2e1ddc7e3dc121534f6e11732bd570e0cf92580deeaf78aacd715e266e0b3dddd62494540582441376d7e037d6b8d735c7ece915aa5d112812c668ef3c4b28c3
DIST gentoo-kernel-5.15.127-1.arm64.gpkg.tar 62525440 BLAKE2B d98dad69fbb250ee49a5f41f69cc091c3fa1fa6968f7575e9b381a9437b98f09bcbe3f28b1497575aa9b0416bbcc2740c5b030582203cecf1e84d72658022dc0 SHA512 815c53bca0542e04436166fcd33e202a4edcf35d85add66d2ffb435918623c6b4e17b2ebd3bef302b7509c2c1ac71cf89f81408b52b722ce16e9c445fbd747c1
DIST gentoo-kernel-5.15.127-1.ppc64le.gpkg.tar 57108480 BLAKE2B b8dc7368a0599f1f20c177bc6a9d4df2f3f0989cec52ae00212abd9cab7582f1530be1760e25590b8670e4fc12454b19e24d2edf3cbe855ae812b6ad932a443e SHA512 36fd01948f6004817d83661a9bb39139945118c31668fa8aaa4fe2474dde588983b3f3a401a66025a91ca811cc1bc33c15b947d61e6b6c41189c18b4bf76a08b
@@ -93,6 +99,7 @@ DIST linux-6.5.tar.xz 138898084 BLAKE2B 2e641b79a080e8f4ce283bcf6b74e2c6f15a3743
EBUILD gentoo-kernel-bin-5.10.191.ebuild 3025 BLAKE2B 7fafb438db9b4e8c5d06545a3cf531eeff6d199652887b548a752544c838c6c36912188e06697e6b6acfd7442ac5e68aa0784fedfcf722eb0e3a03f1d87167d0 SHA512 b4438f05abc23c66bdeffddc232d29eac0ba50d779d29545751bd366190d8971b06854e918e4040048c173877893d6e2375fb0a7ed1e1066092e77456d371836
EBUILD gentoo-kernel-bin-5.10.194.ebuild 3029 BLAKE2B c3a524d4667afa41876e5698e892b6d9c9aa242270faa317ad56c3a64fc9d7f70466d3ce4d068e331090cb1f9d715a8ee1405cca0537d51bba07a0169d404f73 SHA512 45fb0604257313c172f0239361fc72b51f98ed5019f3d85fb6a43c31b48d51be809643cb277b9bd557dd63202566b280ebe070fff46f6639f6a6d063d55cdf24
EBUILD gentoo-kernel-bin-5.10.195.ebuild 3029 BLAKE2B c3a524d4667afa41876e5698e892b6d9c9aa242270faa317ad56c3a64fc9d7f70466d3ce4d068e331090cb1f9d715a8ee1405cca0537d51bba07a0169d404f73 SHA512 45fb0604257313c172f0239361fc72b51f98ed5019f3d85fb6a43c31b48d51be809643cb277b9bd557dd63202566b280ebe070fff46f6639f6a6d063d55cdf24
+EBUILD gentoo-kernel-bin-5.10.196.ebuild 3029 BLAKE2B c3a524d4667afa41876e5698e892b6d9c9aa242270faa317ad56c3a64fc9d7f70466d3ce4d068e331090cb1f9d715a8ee1405cca0537d51bba07a0169d404f73 SHA512 45fb0604257313c172f0239361fc72b51f98ed5019f3d85fb6a43c31b48d51be809643cb277b9bd557dd63202566b280ebe070fff46f6639f6a6d063d55cdf24
EBUILD gentoo-kernel-bin-5.15.127.ebuild 3025 BLAKE2B 95e4eb0f4309e4141a863875ec46ea241e6e9e96260bdd3804400e11d32dd2b12bce79c1c66e0abbe6533cc9c9abf0f19eceabe46885b6feeac986287fec0070 SHA512 1f22d7d6843659d872c9ea6bd6eda48f99841e95c12aa723020633cdf30564f43e4aa63e3433f0598930230a03d2c27a1714d2b865a548edfc5725cf9f99176f
EBUILD gentoo-kernel-bin-5.15.131.ebuild 3029 BLAKE2B 7e344f2c9619826058ab1e7437837bb2307480c9b5be1e52638b4d30cd458ed59f7053e896ab8fb7c02965a1df0f10f2d67fda031e2ee8764460134592585a2b SHA512 eb0c10f46c137cf2a98f606b0bd49fbd43920136bde57d445bc2feefd1d1ec57212b651510b9ad6a7ea37cef2d02e004217e136ed10ca23b39c3791162e5d8f6
EBUILD gentoo-kernel-bin-5.15.132.ebuild 3029 BLAKE2B 7e344f2c9619826058ab1e7437837bb2307480c9b5be1e52638b4d30cd458ed59f7053e896ab8fb7c02965a1df0f10f2d67fda031e2ee8764460134592585a2b SHA512 eb0c10f46c137cf2a98f606b0bd49fbd43920136bde57d445bc2feefd1d1ec57212b651510b9ad6a7ea37cef2d02e004217e136ed10ca23b39c3791162e5d8f6
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.196.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.196.ebuild
new file mode 100644
index 000000000000..fb165f3f0e91
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.196.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##*.} + 10 ))
+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
+}