summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-03-12 16:29:37 +0000
committerSam James <sam@gentoo.org>2022-03-12 16:50:23 +0000
commitf99c6ee33dfe7370646ba8041c3be0757884ea96 (patch)
tree8595087693cd20e6aed7ae9c420c465f2fb63714
parentmedia-libs/libaom: Stabilize 3.3.0 ppc64, #834977 (diff)
downloadgentoo-f99c6ee33dfe7370646ba8041c3be0757884ea96.tar.gz
gentoo-f99c6ee33dfe7370646ba8041c3be0757884ea96.tar.bz2
gentoo-f99c6ee33dfe7370646ba8041c3be0757884ea96.zip
sys-kernel/gentoo-kernel-bin: add 5.4.184
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest6
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.184.ebuild135
2 files changed, 141 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index be0c72c9dd41..0e9005acefcb 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -30,6 +30,8 @@ DIST genpatches-5.4-185.base.tar.xz 4446400 BLAKE2B 543f3c223d01c6a42fd2a5a8c2d3
DIST genpatches-5.4-185.extras.tar.xz 1816 BLAKE2B 20364d1e6bca36b5335f6c0e0f63780b939668159207be2f4211da56525720963d432e90930151491962dc0353e48dca713a80e498f2da69912b709efca5bf6a SHA512 c80111e1c03629106a3f0839df80c12bb8cb6027d21cd98e7ce023f1d0eb8f188adb319d2c25cee9e2ca8c1b03f92bc0f69d02b23ad56c4eace4b5d5fd87927e
DIST genpatches-5.4-187.base.tar.xz 4470704 BLAKE2B e2f4b367d5f0e1987f8b1f5bc19756f8170a998d428d6f47b43282058e6378cb76688b20791f3aa970fd488fec62c06cb432f43fd5a287e83f0d55e6e04816b3 SHA512 ae7cde7aa973b4237961114501014983636c6e340a7b624c6a963a45e21cd99ee91b637e796d203485f88fa7e028ed939779e83975b60a55ef9bf5b8a0b5495d
DIST genpatches-5.4-187.extras.tar.xz 1816 BLAKE2B 692938afa4bf40af4bb53d08aeae6aaa4315bf854ac64d411ec49e39aa88abebc369168860223b319e04a9f59c1883b3a66199892d41d736fd2fd474f1b7ad29 SHA512 c0443e129d01f4a2fea8bc27f6898afa2b851d4b198f03cdbfdf921a11574187b4db08696fdf7288d7a859748921216f0abf30944770d7b6b3f6ddba2d091699
+DIST genpatches-5.4-188.base.tar.xz 4484468 BLAKE2B 9e6b7cc45fb779ebefc977bc3db886ab6f5e6d4e1e6d331c251a9ba65d0aa90756e9ad4c483e68e29e4655c43563b0347c23944966df7e14ea33318c64fd73ee SHA512 0a4d913c09714486f6f3ecd7bbedf06d4ba82d3de9e768c13b176bdf9a1546652f727c5b331f7cc56df2647d23b89cf91339cba306b6d9ac14f752dcce994d29
+DIST genpatches-5.4-188.extras.tar.xz 1812 BLAKE2B 1260faeb54391bf0fbd3aeb54bc6e551105e13c8d8ef4bc67d385e6340feb5fcdd3fc4ee90e217beb4799c04648dff1e09a311e364e47d58d8f10bf51bd66278 SHA512 5ac560ce4935e7afec19e24fd97d51b9f8574670b9a59254ddb0593234e675bf8ea858813155700599385d91a4e2fc4e5668439f1bbce3d0e35be32d6987a44f
DIST gentoo-kernel-5.10.100-1.amd64.xpak 65628548 BLAKE2B edb42e3b5bc34349dd997081365aa7c1c359d09082cc9feaeb7978325a214ce748583a701496848592812294ef7072aede0118cfbb3a5cf371371da2656bc2a3 SHA512 2d7277e6ffd0e461bdb7391cef3742d4ccdd90a0ab89e131666b7e1c7abb003d4cf4100c5936cde2676e3b25cfda42b799d7bebfc42ef74d3da06d1cdd191c53
DIST gentoo-kernel-5.10.100-1.arm64.xpak 60932203 BLAKE2B 395d967eda0922328b1ecd3cf1ca21574db76d7a39f89700fd1c1b30fd7c06449541d38581ca5ca5cb85af94c819b181f31872e58f567a630350953939f3966f SHA512 10f980f0e565390bdc86512ff5979763180e2f1289d8436ea8bee2427aff3df9451d082566d3851dbc84af722ed23e894c262af70ff59c72014e4929cbcef801
DIST gentoo-kernel-5.10.100-1.ppc64le.xpak 55823761 BLAKE2B e0be918a29ba69deca2ac884b2b2b71f589f9b103fa485db06531f37e1421dc936352c2be0f736a90eb2a0ca48885207762a68d6d7b9b23e20b1e360b94ac3e9 SHA512 3ba76dc3eb17c2580f13aca9260092dc70d659cdbb52bb3efc7f7c9930df210891a39d91eb7ecfe7fa1d7f5ce7e8be03ecb924430c9d2df7b7d45f657c676250
@@ -94,6 +96,10 @@ DIST gentoo-kernel-5.4.183-1.amd64.xpak 61526998 BLAKE2B 34c9b97153ba886734bb38e
DIST gentoo-kernel-5.4.183-1.arm64.xpak 57666423 BLAKE2B 0ab6eae874b621266139f02eabc05174334818d4a35317a268651ea42f26a4a1150a29af729a9cf987f8dec3017d9397450a8fcb7102efe901a8a81f9c6a72a3 SHA512 314324291dd211b74eaabbdaa66170519604e37bc17bbd844318aa402e928ed4c8f019b116a33d82bbd1a83704a322447db95e1b5fa849a87bfaa28b7a9eefc3
DIST gentoo-kernel-5.4.183-1.ppc64le.xpak 54956073 BLAKE2B 65d475601e972cfbb32c88f3b3a95c692f7efab8b51d121faebe896b6c0ef19372c2443ccd0dd28df0d30a114768db2165557c102a3743cbd222009621599760 SHA512 306f4b26c7acc85109efbe78e0301b75648aaef6d63cdc11670cb0b02653195defc5f6e42b285d59645877b4ff81cfb2803438dfb5a4d709597be8e72dc03cb7
DIST gentoo-kernel-5.4.183-1.x86.xpak 53237972 BLAKE2B 35f8bdc72ec3d74230a78bc2fbcb07e276268c972be8eec8c45401577453eac193fe1e0591dd8acdda5b1aedd490228240dd2430f02b2db1f1df0928731253cf SHA512 c2e976d4035dfaa42e14aa845c21be238e8a2e916a4f5059731ff6877319d13cb97dd87a041c2d4da3c4c50c235405c4208184e16206b1b84885a9f8663309e7
+DIST gentoo-kernel-5.4.184-1.amd64.xpak 61563506 BLAKE2B 93ceec671840b5ac5903ab6cedecee0af8505becfdb4d6cb10714fc9a981b2c549d42d8d3317b4c7cc55b0bb79310d69520dc5093f4beb765612ccd4022ddb27 SHA512 ecbd53d708a98b4061dcef27febb9fe0f40f6341d782892c8fbf0e3218c69327b2a950e4b10dacafe7609985197d6709b5c92690ec741212ea66f010fac656f7
+DIST gentoo-kernel-5.4.184-1.arm64.xpak 57654727 BLAKE2B 9f3e4e681971897b51ca3f110bde11439a747645fa5b0b624e5977e6d55bc2fab7213b93c518a7beaa5a91d046854bf9282ac07c6dd34269ab3b32b228fdb63e SHA512 e3a301ab2fcd2ba442faa77150ba0c0f06f95a5bf4ab5e7b41c53cf9ecc8c39c096064b5ba2beb1806bb74475a31d4a5d158e20e070c35d8882cc280c5d89ff3
+DIST gentoo-kernel-5.4.184-1.ppc64le.xpak 54937428 BLAKE2B b90583b2416730b624dfa88957aeed47e0734aed48dfd01893e42901fa7aa881e2853bf6354e9de4066b5bbfa39a563fe111c042e4403e8bf5232cf89c88121c SHA512 665284b1e080e8c77cda96fbf51c66977e70ab0e5328de7fbd04e59112929e6ad62f1134d44bc074ba7e825eded5f8a0b02414fb7990520a66f0ca562230dab3
+DIST gentoo-kernel-5.4.184-1.x86.xpak 53238074 BLAKE2B 0ef6f0088d1661bb2af42d3595b9d618e6119438a1dcec17c6442af83f91650da414e631c1523a55027604d8c03f0ed700124dad85e27f2213c9db24df1994fa SHA512 78c7af4f0f9b8be5af96cd3541a8580a7720dd10f793cd1f5763113d35dc36470d1edddc45387068453a9c49fcb474f8830bd1d4e24a0441cbfd0a65fde637ca
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.16.tar.xz 123114100 BLAKE2B 07a90cc640ff89e1359c06cee8c38abd33e51f9b9a89833e31a1d2750526fda4a59e8884db3c1ea63df0a37f0d3de6b5a922b014b7313d8abce20d90ac08adcb SHA512 7a257dd576bc8493595ec7d6f3c9cb6e22c772a8b2dbe735d2485c4f5c56e26a08695546e7e0f1f1cd04a533f25e829361958d4da0b98bf0ba8094dd57a85aaf
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.184.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.184.ebuild
new file mode 100644
index 000000000000..6b4ba462aa55
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.184.ebuild
@@ -0,0 +1,135 @@
+# Copyright 2020-2022 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/~sam/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak
+ -> ${BINPKG}.amd64.xpak
+ )
+ arm64? (
+ https://dev.gentoo.org/~sam/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak
+ -> ${BINPKG}.arm64.xpak
+ )
+ ppc64? (
+ https://dev.gentoo.org/~sam/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak
+ -> ${BINPKG}.ppc64le.xpak
+ )
+ x86? (
+ https://dev.gentoo.org/~sam/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak
+ -> ${BINPKG}.x86.xpak
+ )
+"
+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_unpack() {
+ default
+ # ARCH=ppc64, but tarball is ppc64le. Update if we ever introduce ppc64be binpkg.
+ ebegin "Unpacking ${BINPKG}.${ARCH/%ppc64/ppc64le}.xpak"
+ tar -x < <(xz -c -d --single-stream "${DISTDIR}/${BINPKG}.${ARCH/%ppc64/ppc64le}.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
+
+ # FIXME: requires proper mount-boot
+ if [[ -d boot/dtbs ]]; then
+ mv 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
+}