summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-05-25 21:19:04 +0200
committerMichał Górny <mgorny@gentoo.org>2022-05-25 21:24:13 +0200
commit9acf3241b66579011e731726a77581712de4a04d (patch)
tree01eca60f3378f39131c2c76804651596ac2fabf6 /sys-kernel
parentsys-kernel/gentoo-kernel-bin: Bump to 5.10.118 (diff)
downloadgentoo-9acf3241b66579011e731726a77581712de4a04d.tar.gz
gentoo-9acf3241b66579011e731726a77581712de4a04d.tar.bz2
gentoo-9acf3241b66579011e731726a77581712de4a04d.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.15.43
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest6
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.43.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 51f9974020ba..1e5aa433c2df 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -4,6 +4,8 @@ DIST genpatches-5.10-127.base.tar.xz 3469464 BLAKE2B e14c637285530bec0187c71aedb
DIST genpatches-5.10-127.extras.tar.xz 3868 BLAKE2B 6a7c16cab44182ebb5262a7e419d68daa265a55ee51b3ad6a8d30ce20299090250e00bf295c30551d07bdd935acfad6753128cb0dd5f975b11fc3c31b1537689 SHA512 8bddbd6ac07595d76efce9ec9595b0da1ea1cf49735ab22ceac6d312d59a72304ea7557eca349896c6936dec060dcac3cf2a877e213e4d4d5964e330f37a05f1
DIST genpatches-5.15-45.base.tar.xz 1826632 BLAKE2B 77bb4d997b63723f677f82b91b33afd0f35367d9304051999a0daa84da26feb99fc76a61af77a5e477a5a8ded1a5c12316450563cd56b6c93a93e6df6421b107 SHA512 9435803d4dd65fa78d8e14e992681aeb016d3672b81d589b293d1cbacc024605e18429529803ba344ecae1610bb77150a7b2405cd43f00fc905e9c6babef04c1
DIST genpatches-5.15-45.extras.tar.xz 3932 BLAKE2B e2c4132995b7b39c9d135e17cd21315013cfa8b9de9b222206d9ff9a5780c4f35be294eb6d71130a9f4b9fbd9c2f31ded41c1c6dfecb2fdc4401118411a7485a SHA512 5b1cf3281df2fe24eac3827b0753c83305dd956b23351899be1dd37a89d00917c771475e3df3f9980f6b0fd210420b479c6196c7d1ea2ea9a0d711fab50cfb64
+DIST genpatches-5.15-47.base.tar.xz 1869424 BLAKE2B 461735737047406f44d86088681cf3fbd591278c1878e7f1aebdfbdb726b5c8ccbffe43bf2c34e5baa57c04eb5fb08a723b9473b843639835383bbde464c1ade SHA512 e6ec4a4ab7abf3b91face2df9f8fa7089c054a7c5e44d8404742d05dac9bf7940e6c0f97f219519f8bce22f3cd3e40fd98c856da866b5cbd637094aee1bd884e
+DIST genpatches-5.15-47.extras.tar.xz 3932 BLAKE2B 37fad5be81ce4ff7e0ddb17772893055c06789e02e7b5043c205bb94c483704aea802822964f89d0f90deb4a02070d9e6c1f9924059a8ff2920367cc9fb5e007 SHA512 0a680400cfa7043efb47dac7642675f327ebae2409da95468c1fa2b70ea0de6ec50c1e1325aea7796a1cce641994b29d209cf69e9ae4e8df7f228b38e6e302d5
DIST genpatches-5.17-13.base.tar.xz 713196 BLAKE2B ecba47430d0aeaae2d09d586a9ea016b0b602e2005ae7bf04ffaea7967a7542660dd4bed6cbd5268f187416896c046fdcb7e1aeeccbf293012d11c7473c4d6aa SHA512 fad3e0c53a5bf450dd9dec4146233e322553e110c8b3bd93c53cdb664859aeeb3e5c861f5e04cfbd550014288b7dda9b5740e5d970c443c140c8bfe0559ab82c
DIST genpatches-5.17-13.extras.tar.xz 3932 BLAKE2B 9aa42ee7af3c16e41f6bfffa91855a8f1949d795fd435f0334d89de5240238cdf5fd14b964236973d3178172db2aff98989bc3626f9ca6d9f9878711fc6bc581 SHA512 1cea0fe9035f02f8099768608bcc1d896234058af984db268bd03cd27e3f12c2ad108b3f6d90be11b7edd53983d19d7ae3a00de87f62c3e80f1eace1cb5660d7
DIST genpatches-5.4-199.base.tar.xz 4683396 BLAKE2B e1e66ce10c436bb196a5890e08d5beb8d0a1ece7f19f8fb3b1027747509cc7b6102ace634abdbd299dd48fbc8750f3bc127abe55014410b1d558b4aec497f475 SHA512 8a16d67794e864749fdcdbf413ec0fe996d3c4fb5f04f8c8a2d3001377c8b5d4d7007a96efaa3590fd4b595cccdea36d83c6dc292629566e5398f322658d80f4
@@ -22,6 +24,10 @@ DIST gentoo-kernel-5.15.41-1.amd64.xpak 69349403 BLAKE2B 37462257c705fdf3600bc45
DIST gentoo-kernel-5.15.41-1.arm64.xpak 64219270 BLAKE2B 0daf5fb63aabd71a4e37c1c8ac0f101957366ada93143355fbc4924bd67611f6c6c02cbf37eefa4524f5957c5374ce548bf754f701bdd8543112e3ae25a58c90 SHA512 d1cd5f83f7a759dc4263f3fc524e1cb01f2ac025eaa22c18ff803491a5a599c3f67ca8e06610fe1d7dff11b48f95abd599d729f53f77107b7560b2a1b4d67221
DIST gentoo-kernel-5.15.41-1.ppc64le.xpak 57887862 BLAKE2B 6311a4bcb222baeb0a9d0a4d52ee33c6b06098119e0b154ba2829fb88fe12a1085b753738ff0adaf7b4d4bda9aa119e3fa599eb2be85d3a8a3ae6da2bdf29b4d SHA512 fb2a8e31f39c7282b7b01161ba6823ed96a8662bd741e8960bdef2940302bd8354973185406f10d20df3f3a9dbb1b8b04e44d6d6ae3cf85351654c34fda3d273
DIST gentoo-kernel-5.15.41-1.x86.xpak 60031358 BLAKE2B d2647e285b26f5a12c1d1e65c1dbdf482e44bb3ccfe3706d552d5af89799b66b7dd2dff28ddbd569a66161598c7771b4a8829fcb528b8deb4598099aa22f3b79 SHA512 f05d47d3365ad711e18708324200bff58b300c81a2f334ee80767358c3f7b8fd4dfa6649897fa02657d16bbe93a242f4ae60ffd88905b99405bf958cb1386e95
+DIST gentoo-kernel-5.15.43-1.amd64.xpak 69301097 BLAKE2B 5d56815f4421afb75974c36c3dbfccf36231cacadc4941c5a7baf1b7c51e9c2089aa1349953820675d47783a59d92067c7d5045cfec5a8684a1b26d535a8a6a3 SHA512 f903beaeb5aaba8e5e18b6d75edc5b7d0a57a6fe8c02bc8ce4b8a3e3b545832aba886408408bca2b9bc26d3387b375ff9f7fcb8e90e379b7d62f9481fcf24bff
+DIST gentoo-kernel-5.15.43-1.arm64.xpak 64221919 BLAKE2B cbb29dc2ae0817402dd8b06350fe5161a275e2203d2c92cc9c7863149405186294a44d4a03fd4d259d38be86cf6b4db31d9d5906d8aac1c60eee88e88da3a801 SHA512 f693a453ef90394c7e6af1ba10803e93d72d4675a16db4acf31296552f113bdfe9deb3d4729104668af6c58e5913a11f2635e054fc68e1e9a087152064ada3ca
+DIST gentoo-kernel-5.15.43-1.ppc64le.xpak 57921217 BLAKE2B 82314b6dbb017fbcdc54d39993faec8a9153b2506e505cf8df61e78a4495da7070eba069a9e4b63f24624473e4122ac3e1491fb9599d28f29f491840833875d5 SHA512 917f672fa2421a0ed6fee93e41670233bc2f324b4c146b1e0e21bf57bb404a37fa4f67d6b9d8319d8036b98c01ddd28ed94bec3a4c3dbd8027a212f34c0ac743
+DIST gentoo-kernel-5.15.43-1.x86.xpak 60028294 BLAKE2B e08cd541fc79f2d59ec814a769483103c64dbdd88f093febbd18cef3be9d8fde97e757c880069929d2b4def0a7a763a17a01fc9cded297a2f82ef97f455a295b SHA512 b7d44cf33050c250989baeed7d83b88fd65e62680fe90388589c66464cd285417014331327e53e6995fee8736e87205633252c818c4adbfd5df170cbe149a3ce
DIST gentoo-kernel-5.17.9-1.amd64.xpak 70359753 BLAKE2B 42994479de1aa72a97f73207406cd47986c7d0c545d681b00ab3edb380fda1d34fe032360868dea6099eb69507ea4ee9a4401e37139460ce4859359372627c62 SHA512 3521ee3fc95d7ce6e6cfc1f68bd46956df598b416be176d97b01f914843f9071635e21cb7e7b3d29fe29426aa5ee50ee124430830e64b6f670ecadaf8f58b957
DIST gentoo-kernel-5.17.9-1.arm64.xpak 65823951 BLAKE2B 648ca1341d90acecc50e1d021df9665a8ade52e6f77e8480638c9b411e835f3a2c5c50089d42cb560a19e2c3f0777097330867a6f15e21aa8a282669895e8ad9 SHA512 d36d663220171939fbc6eb25b99375c2ae8bfeb06ab3dd8f61ad864591a555f287e687261e9b31c6d180399ea5fbec6ca5690f8d894bc0f8266ed7cfc9b192e2
DIST gentoo-kernel-5.17.9-1.ppc64le.xpak 58892612 BLAKE2B 0d64511f201af38dea549e22526f9cc87069dd6e2d32be5153bb258cbc3d71bdc8b399e73367070c046c33a6ed6636ff89822b0e7ecbb2f97a7541370a7eb4c3 SHA512 4e8e1f35828d44dea9bd93b46b923137bf61049454720f8778ccb9d0d8495f14806738591b7765ff4c0b033f94e9b866ab91f845c91cfe9c414d235eae306b99
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.43.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.43.ebuild
new file mode 100644
index 000000000000..0787e9b25ee5
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.43.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 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}.xpak
+ -> ${BINPKG}.amd64.xpak
+ )
+ arm64? (
+ https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak
+ -> ${BINPKG}.arm64.xpak
+ )
+ ppc64? (
+ https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak
+ -> ${BINPKG}.ppc64le.xpak
+ )
+ x86? (
+ https://dev.gentoo.org/~mgorny/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
+}