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-6.0.15.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 740eeb339693..b6a1771f1b71 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -14,6 +14,8 @@ DIST genpatches-6.0-13.base.tar.xz 698372 BLAKE2B 3069effafcb526cc4d2735e2bde48c
DIST genpatches-6.0-13.extras.tar.xz 3808 BLAKE2B 6edfc9b381253851e8e2c976b6376aff9bf98648faa49396ec81389315694afda7465702fe99f54b1a33249deabb29ed81a6d1651320dbaebd4eea92ed5f3a21 SHA512 216098565a5eb046788413da37a7ea933f35c990f3c7f3726004470509929a9717158bd778d321333839490e2dfc1b733fe3c016bc3d06804bfd34dbdc4bec93
DIST genpatches-6.0-14.base.tar.xz 701288 BLAKE2B ae3560178c3b887050f51e7bafd837ffa7755567c0748e4680c230329f52e8009e6f8da59e8f285bc802e318b65777b06f3db7f0d795584eba448b716ed20014 SHA512 43dbb5cf7b0ed9a4a03d484a58aaf94243902b8ab31b6b33de3826cd172f0978b08bac8e4d56f7ad2450e288fc66c6e23c9458c29e1f2a6fd3e1f015a4cdc07c
DIST genpatches-6.0-14.extras.tar.xz 3804 BLAKE2B c12099272fc09f02aae38288969f12057092c6867728080744914ea7c9f41bcc0f80154afd7de2f68180e2d3f7f66899d2a8523ea0bc9850516110781339ec2f SHA512 a639231941c13bea32e4c5ce4f56d6dff2b56a164af8481861f4ed3bbe90d406e2d1eb4242b4ae5db9ff735924e75c2241edb372ec9e6a9a3a0df7a99fca2e4d
+DIST genpatches-6.0-15.base.tar.xz 709204 BLAKE2B cba74ce5f9a6d8a00991f87fe33771f615640c8c3adaee94432580f5df51cb2a488794a376c9355d568ab4b3014fe23e4c9fb000bb9ed6948b4225211df862d6 SHA512 64d5d04b8c1b3c3967fd22cfd975b7f9bbf37e7d7d4e966c7017b589837cfa02200a80880f13ac52942fd845c9835143d809817f5517c91992e30e101b15c775
+DIST genpatches-6.0-15.extras.tar.xz 3804 BLAKE2B 84856863ba0897a7ac9238094fec3d46a39cfed7db81d1021b236fcf0bbd4bd893ba44af4ddcc9ae955ab66424afd70ead4fa714a1b68e11d7e66539f94a6cf5 SHA512 7e49da632e9bf5a78c80a0817708e571452f92a99fa91daca8495282fd0ed955bb16a5fb57ebbfff68e9fe6733655c4d04967c6931d1acf6dc6102a44bd9b04f
DIST gentoo-kernel-5.10.159-1.amd64.gpkg.tar 66498560 BLAKE2B 5efc48f3421b994563e3ce18b030f3efa35cacd2bde2387b533b79c46ca94bd23d8bb60df76f7692457a5a5ec6e550dc68182059dd98758953fe28a0a76e6cb2 SHA512 ca0377adad52d0c64f3762bdc7dd749cb1733221fd0b711397dfc1323d307e216dcf0ab66053fd58c0b70a6696f2b1bab47b220670cc3268625d609da0bf233b
DIST gentoo-kernel-5.10.159-1.arm64.gpkg.tar 59658240 BLAKE2B d827003d70911c5517bd4f95cab3db91933dabc4d6361daadab7e4ed394b43d7eafbe3934e641d89321b28eb6fa15ba162eff6100f9a8f1c12951a6ac331b35b SHA512 2584f568f0191d417e1366b815ac57e2e35636fdaf50e6bc1281552e1cf1c61d1efdd31f3f2c3e00f6ec062a97b940c2421eff51ab948e8f73134fbd03f5f926
DIST gentoo-kernel-5.10.159-1.ppc64le.gpkg.tar 55019520 BLAKE2B 77d2850555df170f737d23fd5ea09ee6782be404d25c69fe52ab8dcecb26ce2be96c8d43bba5e70e666fbe103a23b209b355601410cdeb12d688698a22c6d259 SHA512 15c4a7281db9f86ea4bcfdf734429b5a182db1381fd1df75799140f4a2d341888cd9fe0ba1507b2810a329f1ed2c8f659264d25920628cbe5c8674adc87c2369
@@ -46,6 +48,10 @@ DIST gentoo-kernel-6.0.14-1.amd64.gpkg.tar 75919360 BLAKE2B 69629573e7a19f1aad8a
DIST gentoo-kernel-6.0.14-1.arm64.gpkg.tar 68843520 BLAKE2B 2f64c09d962c320f80f02320e18a41a9010eb1a417e70a418f5d24206046a61e7c9ba09b49bd26f472fbc9ed65e637c5307ddb36f8b9705b7e488660a0766e26 SHA512 d7bd06b5290a588c49aae1cea08adc6490b099d866e40aa7153ef2ef18250c4a2a7a084fbcd95fdbd2294ae0dd587ddb6f6715ecc0bdd6704c7ebd066816e71d
DIST gentoo-kernel-6.0.14-1.ppc64le.gpkg.tar 62167040 BLAKE2B bc9ae378b13395f0b3e515b55ac9ae236d9e413fa3b15e393a7b1e1f1334e7230a359db7b47b2e46bec5f12a5219bd424fa0828fe9bd812ec15fa4eb5cc40d5d SHA512 96c1e5d55702ee2947249753667a5e402f4cdae5bd31b5987b84d1fb6a5e7da2cdd8ba82c2899b60206ec5677824ecc1ed068e540b77c00d63b10282cc1adea1
DIST gentoo-kernel-6.0.14-1.x86.gpkg.tar 65320960 BLAKE2B 9e33b42ca016ed62a53841cc6b6dfcf65483ec36495f91c83e7c90a9fd959fc4a86f96f44b5a81a5452cc1a0ea30f81901656953894b2c515c03ce4793998a1a SHA512 facb0d77945654420fa70d70777115f88220c811ef15d43f20b5b48a2b1116f45b91ba16880ff66340d658f29b5c8406b60f959e913ae79361732af304d72117
+DIST gentoo-kernel-6.0.15-1.amd64.gpkg.tar 75919360 BLAKE2B f48ea878985b13fdf57e123d8bda9d594f51187a53a24b2b62dcff44c9b90283c731a2e912778da9fa493303ae03602306096bcda89c193f78cb260c7c563743 SHA512 56da6853b0b66d9ba2586db115873af0b4dd1bacfef28af0c995d45f1dc217dfa36950ee15b29b4c9c79b5371018a981fde7a8a1c5870a5a9f50e2e0e6face4e
+DIST gentoo-kernel-6.0.15-1.arm64.gpkg.tar 68833280 BLAKE2B 770752caf91164ce5a84c146de9756150b64459c0ab13801bf540be80857c5b181d1f2438812e7063c4f8b65dbcd795d12ef9f521a679f56e96233ad90d2c20f SHA512 2641b8f0793f710cb08ff3b1076c7fc68e83720a80dd84ab2ab8744d5c47ef0218cf8f4f01411eb6f2379177b798e59708e5e726d4cb345894bbb1fa7d248aa8
+DIST gentoo-kernel-6.0.15-1.ppc64le.gpkg.tar 62156800 BLAKE2B e9e0e2f559ca57a51d0cc4f17278fdb70415e514eb7e816c351736bfc4e65f5212245cd3547c0dc2195419441484e4c2f35ece975472a28b569b880d9e41a679 SHA512 4af5fdd89ad8171990f4b7c0b6dfddea43a5e021a26f93058760c631f6ded682572482265f12c42be23fb389cc88215ac7b2d34e2278df86ffa86487528f258c
+DIST gentoo-kernel-6.0.15-1.x86.gpkg.tar 65320960 BLAKE2B aca1cb512c6445572b844e7c02243275e5bd8863d62b1b42dc2d7ffdd0197fe24c05e6319aec18e591ed7e99cfae7aecd4b76b54ce76ed4879c5eb05d8ca7c1c SHA512 9230759155e81b24dc8f2cb47ea7a6524a6598276c1b9f53509a83385d687c321b8eb5116fc4334f36dc8d20ef491c7b3e93454bf3b6e7df711be5a3947f9bc5
DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e
DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a
DIST linux-5.4.tar.xz 109441440 BLAKE2B 193bc4a3147e147d5529956164ec4912fad5d5c6fb07f909ff1056e57235834173194afc686993ccd785c1ff15804de0961b625f3008cca0e27493efc8f27b13 SHA512 9f60f77e8ab972b9438ac648bed17551c8491d6585a5e85f694b2eaa4c623fbc61eb18419b2656b6795eac5deec0edaa04547fc6723fbda52256bd7f3486898f
@@ -58,4 +64,5 @@ EBUILD gentoo-kernel-bin-5.4.227.ebuild 3008 BLAKE2B 44a7d00adfd07a697f713774eee
EBUILD gentoo-kernel-bin-5.4.228.ebuild 3010 BLAKE2B e644f92f4a9bfc7ede732067fce9b5bdf5bf8834810cbaeb923e399fd381bff9bdb63ad8bd99bb4001dfe1c01eb8d7dea256f746cf1edddc57c491aa1943a7f8 SHA512 3dde640fe28824edef64df91f6db07ffa71a966bc8b7935f097f0997882724fe8d4a9dc86fd9889c4d4026f0de23eb8f871189d21dfdddb5d0a96b3779206469
EBUILD gentoo-kernel-bin-6.0.13.ebuild 3012 BLAKE2B 358c87191068547f5246083a25f1b187b3efa9068f9715e060677446937641f0c7b84017d26e5d0e316e7dd5f22901df313b781284308d8f8781a190e7b4b9d9 SHA512 3757c8df44562373ea4b62cc6428753ac879baa9166b9dc735dab83e66c3026806b49539a9776b7a8d1fd923c2736ea44e9c63466064a03ac1a478eb4cdc10fc
EBUILD gentoo-kernel-bin-6.0.14.ebuild 3010 BLAKE2B dd1c4ce7874a860abc8ea846ccf014adc88726de2b3c7c86c9ae445ca758fc45e034082c862adb879e54452e43d9a2c2b4c08cd771aefd9cffab573889c2d63e SHA512 2e4ec90133896dd91a50bbca9c7434cb012b67e35d49cf399f31ed833cf41274317f6130199417e4247043f1580a050bf6993d7e2e17ea4e2c7363fb40038eed
+EBUILD gentoo-kernel-bin-6.0.15.ebuild 3010 BLAKE2B dd1c4ce7874a860abc8ea846ccf014adc88726de2b3c7c86c9ae445ca758fc45e034082c862adb879e54452e43d9a2c2b4c08cd771aefd9cffab573889c2d63e SHA512 2e4ec90133896dd91a50bbca9c7434cb012b67e35d49cf399f31ed833cf41274317f6130199417e4247043f1580a050bf6993d7e2e17ea4e2c7363fb40038eed
MISC metadata.xml 353 BLAKE2B cd022bd01b289ae703ae6ef6c2539fcfce833206c55e328ba02fc42b360d60f76b1920927b259dbb199724e6d3e7b0f68ba2044680d962d3cd03a973475582ff SHA512 10b10fd24801843108a71ca7d0c27514965b0a15a60da4d9b521fc41493448a1b1685ae3278dbd46cede0d069e51dede402d2c1448c8ae6a7fcfce8acf415bf3
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.0.15.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.0.15.ebuild
new file mode 100644
index 000000000000..480f0764cb5f
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.0.15.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##*.} + 0 ))
+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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz
+ https://dev.gentoo.org/~alicef/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 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
+}